qanswer-sdk 0.46.0.dev0__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.
- qanswer_sdk/__init__.py +1268 -0
- qanswer_sdk/api/__init__.py +64 -0
- qanswer_sdk/api/admin_api.py +7383 -0
- qanswer_sdk/api/ai_assistant_access_rights_api.py +5879 -0
- qanswer_sdk/api/ai_assistant_api.py +8960 -0
- qanswer_sdk/api/auto_complete_api.py +612 -0
- qanswer_sdk/api/bot_slack_api.py +1069 -0
- qanswer_sdk/api/branding_api.py +5723 -0
- qanswer_sdk/api/chatbot_api.py +1102 -0
- qanswer_sdk/api/connector_audio_api.py +3264 -0
- qanswer_sdk/api/connector_document_api.py +1990 -0
- qanswer_sdk/api/connector_e_consilium_api.py +313 -0
- qanswer_sdk/api/connector_e_consilium_search_index_api_api.py +1164 -0
- qanswer_sdk/api/connector_google_drive_api.py +1896 -0
- qanswer_sdk/api/connector_imapapi_api.py +1775 -0
- qanswer_sdk/api/connector_one_drive_api.py +1579 -0
- qanswer_sdk/api/connector_onenote_api.py +1596 -0
- qanswer_sdk/api/connector_pinecone_api.py +893 -0
- qanswer_sdk/api/connector_publication_office_api_api.py +1230 -0
- qanswer_sdk/api/connector_qn_a_api.py +1521 -0
- qanswer_sdk/api/connector_rdf_answer_api.py +1393 -0
- qanswer_sdk/api/connector_rdf_api.py +5093 -0
- qanswer_sdk/api/connector_sharepoint_api.py +3445 -0
- qanswer_sdk/api/connector_websearch_api.py +332 -0
- qanswer_sdk/api/connector_website_api.py +2829 -0
- qanswer_sdk/api/connectors_api.py +6824 -0
- qanswer_sdk/api/connectors_data_api.py +5415 -0
- qanswer_sdk/api/conversation_logs_api.py +13159 -0
- qanswer_sdk/api/dataset_api.py +6487 -0
- qanswer_sdk/api/dataset_config_api.py +4643 -0
- qanswer_sdk/api/debug_api.py +278 -0
- qanswer_sdk/api/default_api.py +763 -0
- qanswer_sdk/api/embedder_endpoint_api.py +3330 -0
- qanswer_sdk/api/frontend_config_api.py +270 -0
- qanswer_sdk/api/health_check_api_api.py +278 -0
- qanswer_sdk/api/llm_endpoint_api.py +4660 -0
- qanswer_sdk/api/mcp_api.py +11201 -0
- qanswer_sdk/api/metadata_api.py +2070 -0
- qanswer_sdk/api/notifications_api.py +1841 -0
- qanswer_sdk/api/o_auth2_api.py +648 -0
- qanswer_sdk/api/payment_api.py +1852 -0
- qanswer_sdk/api/socket_api.py +4220 -0
- qanswer_sdk/api/speech_to_text_api.py +919 -0
- qanswer_sdk/api/task_ai_excel_api.py +7541 -0
- qanswer_sdk/api/task_chat_api.py +2598 -0
- qanswer_sdk/api/task_document_parsing_api.py +619 -0
- qanswer_sdk/api/task_entity_linking_api.py +315 -0
- qanswer_sdk/api/task_rdf_linker_api.py +4408 -0
- qanswer_sdk/api/task_rdf_sparql_endpoint_api.py +3189 -0
- qanswer_sdk/api/task_rdf_text_linker_api.py +1452 -0
- qanswer_sdk/api/task_report_copilot_api.py +7010 -0
- qanswer_sdk/api/task_search_api.py +2012 -0
- qanswer_sdk/api/task_text2sparql_api.py +902 -0
- qanswer_sdk/api/task_text_classification_api.py +592 -0
- qanswer_sdk/api/tasks_api.py +318 -0
- qanswer_sdk/api/tool_embedder_api.py +5208 -0
- qanswer_sdk/api/tool_llm_api.py +6518 -0
- qanswer_sdk/api/unit_organizations_api.py +7086 -0
- qanswer_sdk/api/unit_teams_api.py +4255 -0
- qanswer_sdk/api/unit_user_api.py +11948 -0
- qanswer_sdk/api/v1_chat_completion_api.py +330 -0
- qanswer_sdk/api/v1_embeddings_api.py +297 -0
- qanswer_sdk/api_client.py +804 -0
- qanswer_sdk/api_response.py +21 -0
- qanswer_sdk/configuration.py +614 -0
- qanswer_sdk/exceptions.py +216 -0
- qanswer_sdk/models/__init__.py +567 -0
- qanswer_sdk/models/access_audio_spans_response_model.py +91 -0
- qanswer_sdk/models/access_pdf_payload_model.py +111 -0
- qanswer_sdk/models/access_type.py +42 -0
- qanswer_sdk/models/access_type_shared.py +38 -0
- qanswer_sdk/models/add_qn_a_request.py +103 -0
- qanswer_sdk/models/add_synonyms.py +93 -0
- qanswer_sdk/models/add_synonyms_resp.py +89 -0
- qanswer_sdk/models/admin_overall_stats_response.py +105 -0
- qanswer_sdk/models/admin_user_overall_stats.py +99 -0
- qanswer_sdk/models/advanced_o_auth2_mcp_authentication_config.py +95 -0
- qanswer_sdk/models/aggregate.py +93 -0
- qanswer_sdk/models/aggregation.py +116 -0
- qanswer_sdk/models/aggregation_type.py +41 -0
- qanswer_sdk/models/aggregations_group.py +102 -0
- qanswer_sdk/models/ai_assistant_clone_response.py +91 -0
- qanswer_sdk/models/ai_assistant_dto.py +122 -0
- qanswer_sdk/models/ai_assistant_filter_dto.py +113 -0
- qanswer_sdk/models/ai_assistant_list.py +101 -0
- qanswer_sdk/models/ai_assistant_share_response.py +93 -0
- qanswer_sdk/models/ai_assistant_shared_access.py +113 -0
- qanswer_sdk/models/ai_excel_task_settings.py +125 -0
- qanswer_sdk/models/ai_excel_task_update.py +125 -0
- qanswer_sdk/models/ai_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/ai_template_base_with_id.py +95 -0
- qanswer_sdk/models/ai_template_cell.py +113 -0
- qanswer_sdk/models/ai_template_cell_base.py +87 -0
- qanswer_sdk/models/ai_template_cell_update_payload.py +95 -0
- qanswer_sdk/models/ai_template_column.py +99 -0
- qanswer_sdk/models/ai_template_column_base.py +93 -0
- qanswer_sdk/models/ai_template_column_update_payload.py +109 -0
- qanswer_sdk/models/ai_template_column_with_cells.py +109 -0
- qanswer_sdk/models/ai_template_create_payload.py +128 -0
- qanswer_sdk/models/ai_template_row.py +93 -0
- qanswer_sdk/models/ai_template_row_base.py +87 -0
- qanswer_sdk/models/ai_template_row_update_payload.py +103 -0
- qanswer_sdk/models/ai_template_row_with_cells.py +103 -0
- qanswer_sdk/models/ai_template_with_cells.py +134 -0
- qanswer_sdk/models/ai_template_with_cells_new_column_id.py +136 -0
- qanswer_sdk/models/allowed_extension.py +53 -0
- qanswer_sdk/models/allowed_file_extensions.py +98 -0
- qanswer_sdk/models/api_key_header_type.py +38 -0
- qanswer_sdk/models/api_key_mcp_authentication_config.py +94 -0
- qanswer_sdk/models/applied_filter_type.py +37 -0
- qanswer_sdk/models/applied_metadata_filter.py +103 -0
- qanswer_sdk/models/apply_template_task_settings_to_slots_response.py +89 -0
- qanswer_sdk/models/assistant_category_color_definition.py +89 -0
- qanswer_sdk/models/assistant_category_color_item.py +89 -0
- qanswer_sdk/models/assistant_category_colors_update_payload.py +95 -0
- qanswer_sdk/models/assistant_category_count.py +91 -0
- qanswer_sdk/models/assistant_message_stop.py +93 -0
- qanswer_sdk/models/assistant_task.py +43 -0
- qanswer_sdk/models/assistant_template.py +111 -0
- qanswer_sdk/models/assistant_template_filter_dto.py +120 -0
- qanswer_sdk/models/assistant_template_with_tools_selection_dto.py +121 -0
- qanswer_sdk/models/audio_allowed_file_extensions.py +87 -0
- qanswer_sdk/models/audio_file_upload_payload.py +107 -0
- qanswer_sdk/models/audio_format.py +37 -0
- qanswer_sdk/models/audio_segment.py +95 -0
- qanswer_sdk/models/audio_segment_update_payload.py +97 -0
- qanswer_sdk/models/audio_segment_update_response.py +91 -0
- qanswer_sdk/models/audio_speaker_update_payload.py +99 -0
- qanswer_sdk/models/audio_speaker_update_response.py +91 -0
- qanswer_sdk/models/audio_transcription_list_response.py +101 -0
- qanswer_sdk/models/audio_transcription_mode.py +37 -0
- qanswer_sdk/models/audio_transcription_record.py +101 -0
- qanswer_sdk/models/audio_upload_response.py +99 -0
- qanswer_sdk/models/audio_upload_transcription.py +99 -0
- qanswer_sdk/models/audio_word_segment.py +93 -0
- qanswer_sdk/models/audio_word_span_change.py +94 -0
- qanswer_sdk/models/audio_word_span_update_payload.py +104 -0
- qanswer_sdk/models/audio_word_span_update_response.py +91 -0
- qanswer_sdk/models/audio_word_update_payload.py +100 -0
- qanswer_sdk/models/audio_word_update_response.py +91 -0
- qanswer_sdk/models/auth_link_response.py +91 -0
- qanswer_sdk/models/auto_bot_description_request.py +89 -0
- qanswer_sdk/models/auto_bot_description_response.py +87 -0
- qanswer_sdk/models/available_aggregation.py +98 -0
- qanswer_sdk/models/available_connectors_response.py +99 -0
- qanswer_sdk/models/available_embedding_models_response.py +95 -0
- qanswer_sdk/models/available_endpoints_response.py +95 -0
- qanswer_sdk/models/available_logs_visibility_policy.py +103 -0
- qanswer_sdk/models/available_space_quota_for_dataset.py +95 -0
- qanswer_sdk/models/available_storage_preference.py +103 -0
- qanswer_sdk/models/base_connectors_response.py +89 -0
- qanswer_sdk/models/base_conversation_response.py +89 -0
- qanswer_sdk/models/base_feedback_response.py +89 -0
- qanswer_sdk/models/bot_answer_length.py +38 -0
- qanswer_sdk/models/branding_app_title.py +87 -0
- qanswer_sdk/models/branding_system_message.py +87 -0
- qanswer_sdk/models/bulk_update_tool_selections_request.py +87 -0
- qanswer_sdk/models/capability_type.py +37 -0
- qanswer_sdk/models/cell.py +89 -0
- qanswer_sdk/models/change_password.py +89 -0
- qanswer_sdk/models/change_password_admin.py +89 -0
- qanswer_sdk/models/change_role.py +96 -0
- qanswer_sdk/models/chat_task_settings.py +141 -0
- qanswer_sdk/models/chat_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/chat_task_update.py +139 -0
- qanswer_sdk/models/chatbot_chat_payload.py +148 -0
- qanswer_sdk/models/chatbot_default_settings_response.py +95 -0
- qanswer_sdk/models/chatbot_llm_dto.py +147 -0
- qanswer_sdk/models/chatbot_response.py +151 -0
- qanswer_sdk/models/chatbot_setting_dto.py +99 -0
- qanswer_sdk/models/chatbot_setting_request.py +91 -0
- qanswer_sdk/models/class_info.py +89 -0
- qanswer_sdk/models/clone_dataset_request.py +104 -0
- qanswer_sdk/models/clone_dataset_response.py +91 -0
- qanswer_sdk/models/config.py +228 -0
- qanswer_sdk/models/config1.py +138 -0
- qanswer_sdk/models/connector_config_list_response.py +99 -0
- qanswer_sdk/models/connector_config_model.py +102 -0
- qanswer_sdk/models/connector_config_patch_payload.py +93 -0
- qanswer_sdk/models/connector_config_response.py +95 -0
- qanswer_sdk/models/connector_config_sync_response.py +93 -0
- qanswer_sdk/models/connector_config_type.py +37 -0
- qanswer_sdk/models/connector_model.py +118 -0
- qanswer_sdk/models/connector_type.py +50 -0
- qanswer_sdk/models/connector_type_dto.py +98 -0
- qanswer_sdk/models/connector_type_list_dto.py +95 -0
- qanswer_sdk/models/content_item.py +130 -0
- qanswer_sdk/models/content_item_type.py +39 -0
- qanswer_sdk/models/conversation_message.py +259 -0
- qanswer_sdk/models/conversation_message_error_key.py +52 -0
- qanswer_sdk/models/conversation_message_search_result.py +121 -0
- qanswer_sdk/models/conversation_model.py +169 -0
- qanswer_sdk/models/conversation_overall_stats.py +97 -0
- qanswer_sdk/models/conversation_overall_stats_response.py +95 -0
- qanswer_sdk/models/conversation_retention_response.py +91 -0
- qanswer_sdk/models/conversation_statistics.py +95 -0
- qanswer_sdk/models/conversation_update.py +93 -0
- qanswer_sdk/models/conversation_users_stats.py +99 -0
- qanswer_sdk/models/conversation_users_stats_response.py +99 -0
- qanswer_sdk/models/coordinates.py +89 -0
- qanswer_sdk/models/cost_summary_dto.py +99 -0
- qanswer_sdk/models/create_connector_request.py +95 -0
- qanswer_sdk/models/create_connector_response.py +95 -0
- qanswer_sdk/models/create_dataset_request.py +145 -0
- qanswer_sdk/models/create_imap_connector_request.py +105 -0
- qanswer_sdk/models/create_pinecone_connector_request.py +97 -0
- qanswer_sdk/models/create_sharepoint_connector_from_certificate_request.py +105 -0
- qanswer_sdk/models/create_sharepoint_connector_request.py +103 -0
- qanswer_sdk/models/credits_info_global_dto.py +97 -0
- qanswer_sdk/models/credits_info_organization_dto.py +95 -0
- qanswer_sdk/models/currency.py +38 -0
- qanswer_sdk/models/data_filling_mode.py +39 -0
- qanswer_sdk/models/data_storage_preference.py +38 -0
- qanswer_sdk/models/dataset_config_request.py +138 -0
- qanswer_sdk/models/dataset_default_values_model.py +138 -0
- qanswer_sdk/models/dataset_detail.py +137 -0
- qanswer_sdk/models/dataset_detail_kg.py +97 -0
- qanswer_sdk/models/dataset_schema.py +242 -0
- qanswer_sdk/models/dataset_size_response.py +91 -0
- qanswer_sdk/models/dataset_type.py +38 -0
- qanswer_sdk/models/dataset_update_object.py +216 -0
- qanswer_sdk/models/dataset_users_response.py +87 -0
- qanswer_sdk/models/default_prompt.py +106 -0
- qanswer_sdk/models/delete_connector_model.py +96 -0
- qanswer_sdk/models/delete_connector_request.py +99 -0
- qanswer_sdk/models/delete_connectors_response.py +89 -0
- qanswer_sdk/models/delete_files_status_response.py +91 -0
- qanswer_sdk/models/delete_index.py +91 -0
- qanswer_sdk/models/delete_index_resp.py +89 -0
- qanswer_sdk/models/delete_qn_a_pair_request.py +95 -0
- qanswer_sdk/models/delete_qn_a_pair_response.py +89 -0
- qanswer_sdk/models/delete_synonym.py +93 -0
- qanswer_sdk/models/delete_synonym_resp.py +89 -0
- qanswer_sdk/models/delete_synonyms.py +91 -0
- qanswer_sdk/models/delete_user_response.py +89 -0
- qanswer_sdk/models/diarization_queue_status.py +99 -0
- qanswer_sdk/models/document_content_response.py +91 -0
- qanswer_sdk/models/document_content_update_model.py +99 -0
- qanswer_sdk/models/document_file_delete_by_connector_model.py +101 -0
- qanswer_sdk/models/document_file_delete_by_id_model.py +91 -0
- qanswer_sdk/models/document_metadata.py +173 -0
- qanswer_sdk/models/document_metadata_list_wrapper.py +100 -0
- qanswer_sdk/models/document_parsing_task_settings.py +130 -0
- qanswer_sdk/models/document_parsing_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/document_parsing_task_update.py +127 -0
- qanswer_sdk/models/document_status_response.py +89 -0
- qanswer_sdk/models/dummy_error.py +89 -0
- qanswer_sdk/models/duplicate_report_template_payload.py +97 -0
- qanswer_sdk/models/duplicate_report_template_response.py +87 -0
- qanswer_sdk/models/e_consilium_connector_config.py +108 -0
- qanswer_sdk/models/e_consilium_search_index_search_response.py +113 -0
- qanswer_sdk/models/econsilium_file_metadata.py +105 -0
- qanswer_sdk/models/econsilium_search_index_add_payload.py +107 -0
- qanswer_sdk/models/econsilium_search_index_additional_fields.py +103 -0
- qanswer_sdk/models/email_folder.py +91 -0
- qanswer_sdk/models/email_request.py +87 -0
- qanswer_sdk/models/embedder_cost_entry.py +91 -0
- qanswer_sdk/models/embedder_cost_filter.py +112 -0
- qanswer_sdk/models/embedder_cost_list.py +111 -0
- qanswer_sdk/models/embedder_create_dto.py +149 -0
- qanswer_sdk/models/embedder_detailed_dto.py +171 -0
- qanswer_sdk/models/embedder_dto.py +101 -0
- qanswer_sdk/models/embedder_list_dto.py +101 -0
- qanswer_sdk/models/embedder_update_dto.py +143 -0
- qanswer_sdk/models/embedding_endpoint.py +149 -0
- qanswer_sdk/models/embedding_endpoint_create.py +147 -0
- qanswer_sdk/models/embedding_endpoint_export_payload.py +87 -0
- qanswer_sdk/models/embedding_endpoint_import_failure.py +89 -0
- qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
- qanswer_sdk/models/embedding_endpoint_modality.py +37 -0
- qanswer_sdk/models/embedding_endpoint_names_validation_payload.py +87 -0
- qanswer_sdk/models/embedding_endpoint_update.py +141 -0
- qanswer_sdk/models/embedding_endpoint_validation_response.py +96 -0
- qanswer_sdk/models/embedding_model.py +96 -0
- qanswer_sdk/models/embedding_provider.py +44 -0
- qanswer_sdk/models/enable_enhanced_context_payload.py +91 -0
- qanswer_sdk/models/enable_enhanced_context_response.py +87 -0
- qanswer_sdk/models/endpoint_status.py +38 -0
- qanswer_sdk/models/entity_description.py +93 -0
- qanswer_sdk/models/entity_description_dto.py +93 -0
- qanswer_sdk/models/entity_linking_payload.py +97 -0
- qanswer_sdk/models/entity_linking_response.py +97 -0
- qanswer_sdk/models/entity_model_in_linking.py +95 -0
- qanswer_sdk/models/es_meta_data.py +98 -0
- qanswer_sdk/models/es_meta_data_value.py +87 -0
- qanswer_sdk/models/evaluate_feedback_response.py +109 -0
- qanswer_sdk/models/evaluate_single_feedback_response.py +97 -0
- qanswer_sdk/models/external_sources_quota_request.py +91 -0
- qanswer_sdk/models/external_sources_quota_response.py +89 -0
- qanswer_sdk/models/extra_body.py +91 -0
- qanswer_sdk/models/extract_hyper_links_payload.py +100 -0
- qanswer_sdk/models/extract_robot_links_payload.py +88 -0
- qanswer_sdk/models/extract_robot_links_response.py +88 -0
- qanswer_sdk/models/fact.py +96 -0
- qanswer_sdk/models/feedback_evaluation_history_entries_response.py +101 -0
- qanswer_sdk/models/feedback_evaluation_history_entry_model.py +105 -0
- qanswer_sdk/models/feedback_model.py +141 -0
- qanswer_sdk/models/feedback_response.py +95 -0
- qanswer_sdk/models/feedback_update.py +105 -0
- qanswer_sdk/models/file_es_meta_data.py +116 -0
- qanswer_sdk/models/file_failure_reason.py +48 -0
- qanswer_sdk/models/file_folder_model.py +115 -0
- qanswer_sdk/models/file_model.py +130 -0
- qanswer_sdk/models/file_status.py +43 -0
- qanswer_sdk/models/file_type.py +37 -0
- qanswer_sdk/models/file_upload_payload.py +107 -0
- qanswer_sdk/models/files_by_connector_model.py +89 -0
- qanswer_sdk/models/g_drive_connector_info.py +96 -0
- qanswer_sdk/models/g_drive_download_by_ids.py +89 -0
- qanswer_sdk/models/g_drive_download_request.py +103 -0
- qanswer_sdk/models/generate_ai_cells_by_dimension_payload.py +91 -0
- qanswer_sdk/models/generate_ai_cells_payload.py +95 -0
- qanswer_sdk/models/generation_params.py +89 -0
- qanswer_sdk/models/get_aggregations_payload.py +104 -0
- qanswer_sdk/models/get_connector_by_id_response.py +91 -0
- qanswer_sdk/models/get_conversation_response.py +95 -0
- qanswer_sdk/models/global_config_dto.py +135 -0
- qanswer_sdk/models/google_drive_connector_config.py +110 -0
- qanswer_sdk/models/guardrail_endpoint.py +121 -0
- qanswer_sdk/models/guardrail_mode.py +38 -0
- qanswer_sdk/models/highlight_audio_payload_model.py +109 -0
- qanswer_sdk/models/http_validation_error.py +95 -0
- qanswer_sdk/models/iframe_strategy.py +38 -0
- qanswer_sdk/models/image_url_detail.py +38 -0
- qanswer_sdk/models/imap_add_payload.py +105 -0
- qanswer_sdk/models/imap_additional_fields.py +101 -0
- qanswer_sdk/models/imap_file_metadata.py +114 -0
- qanswer_sdk/models/imap_search_response.py +113 -0
- qanswer_sdk/models/index_config.py +89 -0
- qanswer_sdk/models/install_response.py +89 -0
- qanswer_sdk/models/interface_origin.py +48 -0
- qanswer_sdk/models/ip2_geo_response.py +91 -0
- qanswer_sdk/models/is_enabled_response.py +87 -0
- qanswer_sdk/models/jwt_authentication_response.py +93 -0
- qanswer_sdk/models/label.py +89 -0
- qanswer_sdk/models/labeled_node.py +89 -0
- qanswer_sdk/models/language.py +42 -0
- qanswer_sdk/models/last_updated_template_conversation_id_response.py +87 -0
- qanswer_sdk/models/link.py +99 -0
- qanswer_sdk/models/link_extraction_response.py +97 -0
- qanswer_sdk/models/link_result_paginated.py +97 -0
- qanswer_sdk/models/linked_entity_model_in_linking.py +99 -0
- qanswer_sdk/models/linker.py +103 -0
- qanswer_sdk/models/linking_result_input.py +95 -0
- qanswer_sdk/models/linking_result_output.py +95 -0
- qanswer_sdk/models/links.py +99 -0
- qanswer_sdk/models/list_ai_templates_response.py +101 -0
- qanswer_sdk/models/list_connectors_response.py +95 -0
- qanswer_sdk/models/list_conversation_response.py +105 -0
- qanswer_sdk/models/list_feedback_response.py +105 -0
- qanswer_sdk/models/list_files_connector_response.py +107 -0
- qanswer_sdk/models/list_published_assistants_payload.py +115 -0
- qanswer_sdk/models/list_socket_events.py +95 -0
- qanswer_sdk/models/list_synonyms_model.py +95 -0
- qanswer_sdk/models/llm_context_ranges.py +93 -0
- qanswer_sdk/models/llm_context_ranges_response.py +93 -0
- qanswer_sdk/models/llm_cost_entry.py +97 -0
- qanswer_sdk/models/llm_cost_filter.py +112 -0
- qanswer_sdk/models/llm_cost_list.py +111 -0
- qanswer_sdk/models/llm_create_dto.py +208 -0
- qanswer_sdk/models/llm_detailed_dto.py +231 -0
- qanswer_sdk/models/llm_details.py +123 -0
- qanswer_sdk/models/llm_dto.py +147 -0
- qanswer_sdk/models/llm_endpoint.py +212 -0
- qanswer_sdk/models/llm_endpoint_create.py +204 -0
- qanswer_sdk/models/llm_endpoint_default_prompts.py +93 -0
- qanswer_sdk/models/llm_endpoint_export_payload.py +87 -0
- qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
- qanswer_sdk/models/llm_endpoint_import_response.py +99 -0
- qanswer_sdk/models/llm_endpoint_input.py +212 -0
- qanswer_sdk/models/llm_endpoint_modality.py +37 -0
- qanswer_sdk/models/llm_endpoint_names_validation_payload.py +87 -0
- qanswer_sdk/models/llm_endpoint_provider.py +44 -0
- qanswer_sdk/models/llm_endpoint_read_input.py +212 -0
- qanswer_sdk/models/llm_endpoint_read_output.py +212 -0
- qanswer_sdk/models/llm_endpoint_update.py +204 -0
- qanswer_sdk/models/llm_endpoint_usage_migration_response.py +93 -0
- qanswer_sdk/models/llm_endpoint_validation_response.py +96 -0
- qanswer_sdk/models/llm_filter_dto.py +111 -0
- qanswer_sdk/models/llm_health_response.py +89 -0
- qanswer_sdk/models/llm_list_detailed_dto.py +101 -0
- qanswer_sdk/models/llm_list_dto.py +101 -0
- qanswer_sdk/models/llm_update_dto.py +208 -0
- qanswer_sdk/models/llm_usage_origin.py +63 -0
- qanswer_sdk/models/location_details.py +97 -0
- qanswer_sdk/models/log_request.py +125 -0
- qanswer_sdk/models/login_request.py +89 -0
- qanswer_sdk/models/logs_visibility_policy.py +38 -0
- qanswer_sdk/models/logs_visibility_policy_payload.py +98 -0
- qanswer_sdk/models/logs_visibility_policy_response.py +98 -0
- qanswer_sdk/models/mcp_authentication_type.py +39 -0
- qanswer_sdk/models/mcp_connection.py +105 -0
- qanswer_sdk/models/mcp_connection_create.py +98 -0
- qanswer_sdk/models/mcp_server.py +167 -0
- qanswer_sdk/models/mcp_server0.py +167 -0
- qanswer_sdk/models/mcp_server_create.py +133 -0
- qanswer_sdk/models/mcp_server_dto.py +167 -0
- qanswer_sdk/models/mcp_server_type.py +37 -0
- qanswer_sdk/models/mcp_server_update.py +131 -0
- qanswer_sdk/models/mcp_tool_dto.py +141 -0
- qanswer_sdk/models/mcp_tool_info.py +95 -0
- qanswer_sdk/models/mcp_tool_selection_source.py +37 -0
- qanswer_sdk/models/mcp_tool_update.py +91 -0
- qanswer_sdk/models/mcp_transport.py +37 -0
- qanswer_sdk/models/mcp_visibility.py +38 -0
- qanswer_sdk/models/mcpo_auth2_initiating_origin.py +42 -0
- qanswer_sdk/models/message_role.py +38 -0
- qanswer_sdk/models/messages_stats_per_day_response.py +99 -0
- qanswer_sdk/models/microsoft_connector_config.py +110 -0
- qanswer_sdk/models/modify_connector_request.py +107 -0
- qanswer_sdk/models/modify_file_display_name_request.py +97 -0
- qanswer_sdk/models/notification_dto.py +137 -0
- qanswer_sdk/models/notification_filter.py +116 -0
- qanswer_sdk/models/notification_list_dto.py +101 -0
- qanswer_sdk/models/notification_payload_add_to_org_dto.py +87 -0
- qanswer_sdk/models/notification_payload_add_to_team_dto.py +89 -0
- qanswer_sdk/models/notification_payload_ai_assistant_shared_dto.py +109 -0
- qanswer_sdk/models/notification_payload_conversation_shared_dto.py +105 -0
- qanswer_sdk/models/notification_payload_dto.py +193 -0
- qanswer_sdk/models/notification_payload_human_takeover_requested_dto.py +89 -0
- qanswer_sdk/models/notification_payload_quota_reaching_dto.py +91 -0
- qanswer_sdk/models/notification_read_dto.py +89 -0
- qanswer_sdk/models/notification_type.py +44 -0
- qanswer_sdk/models/o_auth_redirect_response.py +89 -0
- qanswer_sdk/models/o_auth_service_dto.py +89 -0
- qanswer_sdk/models/one_drive_download_by_ids.py +89 -0
- qanswer_sdk/models/one_drive_download_request.py +103 -0
- qanswer_sdk/models/one_note_download_by_ids.py +91 -0
- qanswer_sdk/models/one_note_download_request.py +103 -0
- qanswer_sdk/models/org_llm_detailed_dto.py +105 -0
- qanswer_sdk/models/organization.py +93 -0
- qanswer_sdk/models/organization_creation.py +91 -0
- qanswer_sdk/models/organization_dto.py +93 -0
- qanswer_sdk/models/organization_filter_dto.py +134 -0
- qanswer_sdk/models/organization_list_dto.py +101 -0
- qanswer_sdk/models/paginated_report_templates.py +101 -0
- qanswer_sdk/models/password.py +89 -0
- qanswer_sdk/models/pinecone_index_model.py +91 -0
- qanswer_sdk/models/plan_dto.py +132 -0
- qanswer_sdk/models/predicted_class.py +89 -0
- qanswer_sdk/models/prepare_synonyms_upload_resp.py +99 -0
- qanswer_sdk/models/prepared_synonym_group.py +87 -0
- qanswer_sdk/models/pricing_plan.py +51 -0
- qanswer_sdk/models/pricing_type.py +38 -0
- qanswer_sdk/models/prompt_type.py +51 -0
- qanswer_sdk/models/provider.py +87 -0
- qanswer_sdk/models/publication_add_payload.py +105 -0
- qanswer_sdk/models/publication_file_metadata.py +105 -0
- qanswer_sdk/models/publication_office_additional_fields.py +111 -0
- qanswer_sdk/models/publication_office_connector_config.py +110 -0
- qanswer_sdk/models/publication_search_index_search_response.py +113 -0
- qanswer_sdk/models/published_assistant_from_java.py +94 -0
- qanswer_sdk/models/put_cell_payload.py +89 -0
- qanswer_sdk/models/qa_context.py +129 -0
- qanswer_sdk/models/qa_context_display_type.py +44 -0
- qanswer_sdk/models/qa_contexts.py +116 -0
- qanswer_sdk/models/qa_table.py +100 -0
- qanswer_sdk/models/qn_a_pair_model.py +103 -0
- qanswer_sdk/models/qn_a_pair_response.py +95 -0
- qanswer_sdk/models/question_suggestion_response.py +87 -0
- qanswer_sdk/models/rag_params.py +89 -0
- qanswer_sdk/models/rag_payload.py +186 -0
- qanswer_sdk/models/rag_response.py +155 -0
- qanswer_sdk/models/rdf_entity_linker_response.py +99 -0
- qanswer_sdk/models/rdf_linked_entity.py +97 -0
- qanswer_sdk/models/reasoning_effort.py +39 -0
- qanswer_sdk/models/reference_model.py +99 -0
- qanswer_sdk/models/refresh_frequency.py +39 -0
- qanswer_sdk/models/refresh_token_request.py +87 -0
- qanswer_sdk/models/refresh_website_connector_payload.py +94 -0
- qanswer_sdk/models/register_pinecone_connector_request.py +95 -0
- qanswer_sdk/models/report_copilot_generation_from_slots_ack.py +91 -0
- qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +95 -0
- qanswer_sdk/models/report_copilot_refinement_payload.py +106 -0
- qanswer_sdk/models/report_copilot_refinement_response.py +87 -0
- qanswer_sdk/models/report_copilot_slot_feedback_update.py +95 -0
- qanswer_sdk/models/report_copilot_slot_feedback_update_response.py +95 -0
- qanswer_sdk/models/report_copilot_slot_task_settings.py +127 -0
- qanswer_sdk/models/report_copilot_slot_task_settings_update.py +127 -0
- qanswer_sdk/models/report_copilot_task_settings.py +125 -0
- qanswer_sdk/models/report_copilot_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/report_copilot_task_update.py +125 -0
- qanswer_sdk/models/report_template.py +139 -0
- qanswer_sdk/models/report_template_create_payload.py +117 -0
- qanswer_sdk/models/report_template_image_upload_response.py +87 -0
- qanswer_sdk/models/report_template_simplified.py +115 -0
- qanswer_sdk/models/report_template_simplified_payload.py +91 -0
- qanswer_sdk/models/report_template_task_settings_update_payload.py +91 -0
- qanswer_sdk/models/report_template_update_payload.py +121 -0
- qanswer_sdk/models/report_templates_search_payload.py +106 -0
- qanswer_sdk/models/reset_password.py +87 -0
- qanswer_sdk/models/response_audit_model.py +99 -0
- qanswer_sdk/models/response_audit_stats_response.py +101 -0
- qanswer_sdk/models/response_get_dummy_union_connector_config_model_backend_api_connectors_config_dummy_models_union_get.py +228 -0
- qanswer_sdk/models/retreive_all_synonyms_resp.py +99 -0
- qanswer_sdk/models/retry_params.py +89 -0
- qanswer_sdk/models/return_type.py +38 -0
- qanswer_sdk/models/role.py +99 -0
- qanswer_sdk/models/role_name.py +37 -0
- qanswer_sdk/models/scrolling_strategy.py +37 -0
- qanswer_sdk/models/search_conversation_messages_response.py +105 -0
- qanswer_sdk/models/search_document_response.py +105 -0
- qanswer_sdk/models/search_index_payload.py +114 -0
- qanswer_sdk/models/search_metadata_filter.py +94 -0
- qanswer_sdk/models/search_payload.py +146 -0
- qanswer_sdk/models/search_response.py +125 -0
- qanswer_sdk/models/search_synonyms_resp.py +91 -0
- qanswer_sdk/models/search_task_settings.py +139 -0
- qanswer_sdk/models/search_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/search_task_update.py +137 -0
- qanswer_sdk/models/sender_type.py +38 -0
- qanswer_sdk/models/share_point_connector_settings.py +94 -0
- qanswer_sdk/models/share_point_download_by_ids.py +99 -0
- qanswer_sdk/models/share_point_download_request.py +103 -0
- qanswer_sdk/models/shared_by.py +38 -0
- qanswer_sdk/models/shared_entity_type.py +38 -0
- qanswer_sdk/models/shared_organization_access.py +125 -0
- qanswer_sdk/models/shared_organization_access_dto.py +125 -0
- qanswer_sdk/models/shared_team_access.py +125 -0
- qanswer_sdk/models/shared_team_access_dto.py +125 -0
- qanswer_sdk/models/shared_user.py +99 -0
- qanswer_sdk/models/sign_up_request.py +108 -0
- qanswer_sdk/models/signout_request.py +87 -0
- qanswer_sdk/models/slot.py +162 -0
- qanswer_sdk/models/slot_history_entry.py +127 -0
- qanswer_sdk/models/slot_in_prompt.py +91 -0
- qanswer_sdk/models/slot_info_with_latest_version.py +95 -0
- qanswer_sdk/models/slot_update.py +142 -0
- qanswer_sdk/models/socker_join_user.py +91 -0
- qanswer_sdk/models/socket_ai_cell_generation.py +99 -0
- qanswer_sdk/models/socket_conversation_message.py +280 -0
- qanswer_sdk/models/socket_events_q_answer.py +51 -0
- qanswer_sdk/models/socket_feedback_evaluation_progress.py +114 -0
- qanswer_sdk/models/socket_file_metadata.py +207 -0
- qanswer_sdk/models/socket_join_conversation.py +97 -0
- qanswer_sdk/models/socket_join_dataset.py +93 -0
- qanswer_sdk/models/socket_message_status.py +40 -0
- qanswer_sdk/models/socket_notification.py +127 -0
- qanswer_sdk/models/socket_report_continuation_response.py +106 -0
- qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py +122 -0
- qanswer_sdk/models/socket_report_copilot_generation_from_template_response.py +122 -0
- qanswer_sdk/models/socket_report_copilot_refinement_response.py +108 -0
- qanswer_sdk/models/socket_speech2_text_response.py +131 -0
- qanswer_sdk/models/socket_stop_conversation.py +97 -0
- qanswer_sdk/models/source.py +125 -0
- qanswer_sdk/models/source_metadata.py +109 -0
- qanswer_sdk/models/speech2_text_response.py +119 -0
- qanswer_sdk/models/stat_per_date.py +89 -0
- qanswer_sdk/models/status_response.py +89 -0
- qanswer_sdk/models/stop_template_generation_payload.py +91 -0
- qanswer_sdk/models/storage_active_status.py +37 -0
- qanswer_sdk/models/subscription_response.py +101 -0
- qanswer_sdk/models/subscription_status.py +39 -0
- qanswer_sdk/models/suggestion_list_response.py +87 -0
- qanswer_sdk/models/summa_server.py +101 -0
- qanswer_sdk/models/task_category.py +58 -0
- qanswer_sdk/models/task_name.py +43 -0
- qanswer_sdk/models/team.py +93 -0
- qanswer_sdk/models/team_creation.py +89 -0
- qanswer_sdk/models/team_creation_dto.py +89 -0
- qanswer_sdk/models/team_dto.py +93 -0
- qanswer_sdk/models/team_filter_dto.py +141 -0
- qanswer_sdk/models/team_list_dto.py +101 -0
- qanswer_sdk/models/template_clip_structure.py +114 -0
- qanswer_sdk/models/template_toggle_request.py +93 -0
- qanswer_sdk/models/terms_bucket.py +94 -0
- qanswer_sdk/models/test_imap_connection_payload.py +95 -0
- qanswer_sdk/models/text2_sparql_payload.py +188 -0
- qanswer_sdk/models/text2_sparql_task_settings.py +125 -0
- qanswer_sdk/models/text2_sparql_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/text2_sparql_task_update.py +125 -0
- qanswer_sdk/models/text_classification_payload.py +99 -0
- qanswer_sdk/models/text_classification_response.py +87 -0
- qanswer_sdk/models/text_classification_v2_payload.py +99 -0
- qanswer_sdk/models/text_classification_v2_response.py +95 -0
- qanswer_sdk/models/thinking_block.py +91 -0
- qanswer_sdk/models/tool_selection.py +89 -0
- qanswer_sdk/models/total_stat.py +96 -0
- qanswer_sdk/models/ui_mappings.py +141 -0
- qanswer_sdk/models/update_cells_payload.py +93 -0
- qanswer_sdk/models/update_file_es_meta_data.py +116 -0
- qanswer_sdk/models/update_metadata_model_input.py +97 -0
- qanswer_sdk/models/update_metadata_model_output.py +97 -0
- qanswer_sdk/models/update_qn_a_pair_request.py +101 -0
- qanswer_sdk/models/update_qn_a_pair_response.py +89 -0
- qanswer_sdk/models/update_synonyms.py +95 -0
- qanswer_sdk/models/update_synonyms_resp.py +89 -0
- qanswer_sdk/models/update_template_cells_payload.py +101 -0
- qanswer_sdk/models/upload_metadata.py +115 -0
- qanswer_sdk/models/user.py +91 -0
- qanswer_sdk/models/user_credits_config_dto.py +99 -0
- qanswer_sdk/models/user_credits_dto.py +106 -0
- qanswer_sdk/models/user_dataset_api_key.py +120 -0
- qanswer_sdk/models/user_dataset_api_key_dto.py +120 -0
- qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +102 -0
- qanswer_sdk/models/user_dto.py +91 -0
- qanswer_sdk/models/user_filter_dto.py +155 -0
- qanswer_sdk/models/user_identity_availability.py +87 -0
- qanswer_sdk/models/user_info_dto.py +95 -0
- qanswer_sdk/models/user_list_dto.py +101 -0
- qanswer_sdk/models/user_log.py +102 -0
- qanswer_sdk/models/user_log_dto.py +102 -0
- qanswer_sdk/models/user_logs_list_dto.py +97 -0
- qanswer_sdk/models/user_mcp_tool_selection_dto.py +118 -0
- qanswer_sdk/models/user_oauth_token.py +96 -0
- qanswer_sdk/models/user_oauth_token_dto.py +96 -0
- qanswer_sdk/models/user_profile_dto.py +200 -0
- qanswer_sdk/models/user_profile_list_dto.py +101 -0
- qanswer_sdk/models/user_stat_per_date.py +90 -0
- qanswer_sdk/models/validation_error.py +108 -0
- qanswer_sdk/models/validation_error_loc_inner.py +138 -0
- qanswer_sdk/models/warn_visibility.py +40 -0
- qanswer_sdk/models/websearch_connector_config.py +102 -0
- qanswer_sdk/models/websearch_scraping_site.py +91 -0
- qanswer_sdk/models/website_add_payload.py +102 -0
- qanswer_sdk/models/website_connector_config.py +102 -0
- qanswer_sdk/models/website_connector_settings.py +160 -0
- qanswer_sdk/models/widget_configs.py +109 -0
- qanswer_sdk/py.typed +0 -0
- qanswer_sdk/rest.py +258 -0
- qanswer_sdk-0.46.0.dev0.dist-info/METADATA +252 -0
- qanswer_sdk-0.46.0.dev0.dist-info/RECORD +624 -0
- qanswer_sdk-0.46.0.dev0.dist-info/WHEEL +5 -0
- qanswer_sdk-0.46.0.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,3445 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
free-text-client
|
|
5
|
+
|
|
6
|
+
QAnswer 2.0 API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
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 pydantic import Field, StrictBytes, StrictInt, StrictStr
|
|
20
|
+
from typing import Any, Optional, Tuple, Union
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from qanswer_sdk.models.auth_link_response import AuthLinkResponse
|
|
23
|
+
from qanswer_sdk.models.create_connector_response import CreateConnectorResponse
|
|
24
|
+
from qanswer_sdk.models.create_sharepoint_connector_from_certificate_request import CreateSharepointConnectorFromCertificateRequest
|
|
25
|
+
from qanswer_sdk.models.create_sharepoint_connector_request import CreateSharepointConnectorRequest
|
|
26
|
+
from qanswer_sdk.models.list_files_connector_response import ListFilesConnectorResponse
|
|
27
|
+
from qanswer_sdk.models.share_point_connector_settings import SharePointConnectorSettings
|
|
28
|
+
from qanswer_sdk.models.share_point_download_request import SharePointDownloadRequest
|
|
29
|
+
from qanswer_sdk.models.status_response import StatusResponse
|
|
30
|
+
|
|
31
|
+
from qanswer_sdk.api_client import ApiClient, RequestSerialized
|
|
32
|
+
from qanswer_sdk.api_response import ApiResponse
|
|
33
|
+
from qanswer_sdk.rest import RESTResponseType
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class ConnectorSharepointApi:
|
|
37
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
38
|
+
Ref: https://openapi-generator.tech
|
|
39
|
+
|
|
40
|
+
Do not edit the class manually.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self, api_client=None) -> None:
|
|
44
|
+
if api_client is None:
|
|
45
|
+
api_client = ApiClient.get_default()
|
|
46
|
+
self.api_client = api_client
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@validate_call
|
|
50
|
+
def create_sharepoint_connector_with_certificate(
|
|
51
|
+
self,
|
|
52
|
+
data: CreateSharepointConnectorFromCertificateRequest,
|
|
53
|
+
certificate: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
54
|
+
_request_timeout: Union[
|
|
55
|
+
None,
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Tuple[
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
60
|
+
]
|
|
61
|
+
] = None,
|
|
62
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_content_type: Optional[StrictStr] = None,
|
|
64
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
66
|
+
) -> CreateConnectorResponse:
|
|
67
|
+
"""Create Sharepoint Connector With Certificate
|
|
68
|
+
|
|
69
|
+
Create SharePoint Connector with Certificate Authentication
|
|
70
|
+
|
|
71
|
+
:param data: (required)
|
|
72
|
+
:type data: CreateSharepointConnectorFromCertificateRequest
|
|
73
|
+
:param certificate: (required)
|
|
74
|
+
:type certificate: bytearray
|
|
75
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
76
|
+
number provided, it will be total request
|
|
77
|
+
timeout. It can also be a pair (tuple) of
|
|
78
|
+
(connection, read) timeouts.
|
|
79
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
80
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
81
|
+
request; this effectively ignores the
|
|
82
|
+
authentication in the spec for a single request.
|
|
83
|
+
:type _request_auth: dict, optional
|
|
84
|
+
:param _content_type: force content-type for the request.
|
|
85
|
+
:type _content_type: str, Optional
|
|
86
|
+
:param _headers: set to override the headers for a single
|
|
87
|
+
request; this effectively ignores the headers
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _headers: dict, optional
|
|
90
|
+
:param _host_index: set to override the host_index for a single
|
|
91
|
+
request; this effectively ignores the host_index
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _host_index: int, optional
|
|
94
|
+
:return: Returns the result object.
|
|
95
|
+
""" # noqa: E501
|
|
96
|
+
|
|
97
|
+
_param = self._create_sharepoint_connector_with_certificate_serialize(
|
|
98
|
+
data=data,
|
|
99
|
+
certificate=certificate,
|
|
100
|
+
_request_auth=_request_auth,
|
|
101
|
+
_content_type=_content_type,
|
|
102
|
+
_headers=_headers,
|
|
103
|
+
_host_index=_host_index
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
107
|
+
'200': "CreateConnectorResponse",
|
|
108
|
+
'422': "HTTPValidationError",
|
|
109
|
+
}
|
|
110
|
+
response_data = self.api_client.call_api(
|
|
111
|
+
*_param,
|
|
112
|
+
_request_timeout=_request_timeout
|
|
113
|
+
)
|
|
114
|
+
response_data.read()
|
|
115
|
+
return self.api_client.response_deserialize(
|
|
116
|
+
response_data=response_data,
|
|
117
|
+
response_types_map=_response_types_map,
|
|
118
|
+
).data
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@validate_call
|
|
122
|
+
def create_sharepoint_connector_with_certificate_with_http_info(
|
|
123
|
+
self,
|
|
124
|
+
data: CreateSharepointConnectorFromCertificateRequest,
|
|
125
|
+
certificate: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
126
|
+
_request_timeout: Union[
|
|
127
|
+
None,
|
|
128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
129
|
+
Tuple[
|
|
130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
132
|
+
]
|
|
133
|
+
] = None,
|
|
134
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
135
|
+
_content_type: Optional[StrictStr] = None,
|
|
136
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
137
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
138
|
+
) -> ApiResponse[CreateConnectorResponse]:
|
|
139
|
+
"""Create Sharepoint Connector With Certificate
|
|
140
|
+
|
|
141
|
+
Create SharePoint Connector with Certificate Authentication
|
|
142
|
+
|
|
143
|
+
:param data: (required)
|
|
144
|
+
:type data: CreateSharepointConnectorFromCertificateRequest
|
|
145
|
+
:param certificate: (required)
|
|
146
|
+
:type certificate: bytearray
|
|
147
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
148
|
+
number provided, it will be total request
|
|
149
|
+
timeout. It can also be a pair (tuple) of
|
|
150
|
+
(connection, read) timeouts.
|
|
151
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
152
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
153
|
+
request; this effectively ignores the
|
|
154
|
+
authentication in the spec for a single request.
|
|
155
|
+
:type _request_auth: dict, optional
|
|
156
|
+
:param _content_type: force content-type for the request.
|
|
157
|
+
:type _content_type: str, Optional
|
|
158
|
+
:param _headers: set to override the headers for a single
|
|
159
|
+
request; this effectively ignores the headers
|
|
160
|
+
in the spec for a single request.
|
|
161
|
+
:type _headers: dict, optional
|
|
162
|
+
:param _host_index: set to override the host_index for a single
|
|
163
|
+
request; this effectively ignores the host_index
|
|
164
|
+
in the spec for a single request.
|
|
165
|
+
:type _host_index: int, optional
|
|
166
|
+
:return: Returns the result object.
|
|
167
|
+
""" # noqa: E501
|
|
168
|
+
|
|
169
|
+
_param = self._create_sharepoint_connector_with_certificate_serialize(
|
|
170
|
+
data=data,
|
|
171
|
+
certificate=certificate,
|
|
172
|
+
_request_auth=_request_auth,
|
|
173
|
+
_content_type=_content_type,
|
|
174
|
+
_headers=_headers,
|
|
175
|
+
_host_index=_host_index
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
179
|
+
'200': "CreateConnectorResponse",
|
|
180
|
+
'422': "HTTPValidationError",
|
|
181
|
+
}
|
|
182
|
+
response_data = self.api_client.call_api(
|
|
183
|
+
*_param,
|
|
184
|
+
_request_timeout=_request_timeout
|
|
185
|
+
)
|
|
186
|
+
response_data.read()
|
|
187
|
+
return self.api_client.response_deserialize(
|
|
188
|
+
response_data=response_data,
|
|
189
|
+
response_types_map=_response_types_map,
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
@validate_call
|
|
194
|
+
def create_sharepoint_connector_with_certificate_without_preload_content(
|
|
195
|
+
self,
|
|
196
|
+
data: CreateSharepointConnectorFromCertificateRequest,
|
|
197
|
+
certificate: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
198
|
+
_request_timeout: Union[
|
|
199
|
+
None,
|
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
201
|
+
Tuple[
|
|
202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
203
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
204
|
+
]
|
|
205
|
+
] = None,
|
|
206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
207
|
+
_content_type: Optional[StrictStr] = None,
|
|
208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
210
|
+
) -> RESTResponseType:
|
|
211
|
+
"""Create Sharepoint Connector With Certificate
|
|
212
|
+
|
|
213
|
+
Create SharePoint Connector with Certificate Authentication
|
|
214
|
+
|
|
215
|
+
:param data: (required)
|
|
216
|
+
:type data: CreateSharepointConnectorFromCertificateRequest
|
|
217
|
+
:param certificate: (required)
|
|
218
|
+
:type certificate: bytearray
|
|
219
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
220
|
+
number provided, it will be total request
|
|
221
|
+
timeout. It can also be a pair (tuple) of
|
|
222
|
+
(connection, read) timeouts.
|
|
223
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
224
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
225
|
+
request; this effectively ignores the
|
|
226
|
+
authentication in the spec for a single request.
|
|
227
|
+
:type _request_auth: dict, optional
|
|
228
|
+
:param _content_type: force content-type for the request.
|
|
229
|
+
:type _content_type: str, Optional
|
|
230
|
+
:param _headers: set to override the headers for a single
|
|
231
|
+
request; this effectively ignores the headers
|
|
232
|
+
in the spec for a single request.
|
|
233
|
+
:type _headers: dict, optional
|
|
234
|
+
:param _host_index: set to override the host_index for a single
|
|
235
|
+
request; this effectively ignores the host_index
|
|
236
|
+
in the spec for a single request.
|
|
237
|
+
:type _host_index: int, optional
|
|
238
|
+
:return: Returns the result object.
|
|
239
|
+
""" # noqa: E501
|
|
240
|
+
|
|
241
|
+
_param = self._create_sharepoint_connector_with_certificate_serialize(
|
|
242
|
+
data=data,
|
|
243
|
+
certificate=certificate,
|
|
244
|
+
_request_auth=_request_auth,
|
|
245
|
+
_content_type=_content_type,
|
|
246
|
+
_headers=_headers,
|
|
247
|
+
_host_index=_host_index
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
251
|
+
'200': "CreateConnectorResponse",
|
|
252
|
+
'422': "HTTPValidationError",
|
|
253
|
+
}
|
|
254
|
+
response_data = self.api_client.call_api(
|
|
255
|
+
*_param,
|
|
256
|
+
_request_timeout=_request_timeout
|
|
257
|
+
)
|
|
258
|
+
return response_data.response
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def _create_sharepoint_connector_with_certificate_serialize(
|
|
262
|
+
self,
|
|
263
|
+
data,
|
|
264
|
+
certificate,
|
|
265
|
+
_request_auth,
|
|
266
|
+
_content_type,
|
|
267
|
+
_headers,
|
|
268
|
+
_host_index,
|
|
269
|
+
) -> RequestSerialized:
|
|
270
|
+
|
|
271
|
+
_host = None
|
|
272
|
+
|
|
273
|
+
_collection_formats: Dict[str, str] = {
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
_path_params: Dict[str, str] = {}
|
|
277
|
+
_query_params: List[Tuple[str, str]] = []
|
|
278
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
279
|
+
_form_params: List[Tuple[str, str]] = []
|
|
280
|
+
_files: Dict[
|
|
281
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
282
|
+
] = {}
|
|
283
|
+
_body_params: Optional[bytes] = None
|
|
284
|
+
|
|
285
|
+
# process the path parameters
|
|
286
|
+
# process the query parameters
|
|
287
|
+
# process the header parameters
|
|
288
|
+
# process the form parameters
|
|
289
|
+
if data is not None:
|
|
290
|
+
_form_params.append(('data', data))
|
|
291
|
+
if certificate is not None:
|
|
292
|
+
_files['certificate'] = certificate
|
|
293
|
+
# process the body parameter
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
# set the HTTP header `Accept`
|
|
297
|
+
if 'Accept' not in _header_params:
|
|
298
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
299
|
+
[
|
|
300
|
+
'application/json'
|
|
301
|
+
]
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
# set the HTTP header `Content-Type`
|
|
305
|
+
if _content_type:
|
|
306
|
+
_header_params['Content-Type'] = _content_type
|
|
307
|
+
else:
|
|
308
|
+
_default_content_type = (
|
|
309
|
+
self.api_client.select_header_content_type(
|
|
310
|
+
[
|
|
311
|
+
'multipart/form-data'
|
|
312
|
+
]
|
|
313
|
+
)
|
|
314
|
+
)
|
|
315
|
+
if _default_content_type is not None:
|
|
316
|
+
_header_params['Content-Type'] = _default_content_type
|
|
317
|
+
|
|
318
|
+
# authentication setting
|
|
319
|
+
_auth_settings: List[str] = [
|
|
320
|
+
'QAnswer-Api-Key',
|
|
321
|
+
'Bearer token'
|
|
322
|
+
]
|
|
323
|
+
|
|
324
|
+
return self.api_client.param_serialize(
|
|
325
|
+
method='POST',
|
|
326
|
+
resource_path='/backend/api/connectors/sharepoint/create-with-certificate',
|
|
327
|
+
path_params=_path_params,
|
|
328
|
+
query_params=_query_params,
|
|
329
|
+
header_params=_header_params,
|
|
330
|
+
body=_body_params,
|
|
331
|
+
post_params=_form_params,
|
|
332
|
+
files=_files,
|
|
333
|
+
auth_settings=_auth_settings,
|
|
334
|
+
collection_formats=_collection_formats,
|
|
335
|
+
_host=_host,
|
|
336
|
+
_request_auth=_request_auth
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
@validate_call
|
|
343
|
+
def get_sharepoint_settings(
|
|
344
|
+
self,
|
|
345
|
+
username: Annotated[str, Field(min_length=1, strict=True)],
|
|
346
|
+
dataset: Annotated[str, Field(min_length=1, strict=True)],
|
|
347
|
+
connector_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
|
|
348
|
+
_request_timeout: Union[
|
|
349
|
+
None,
|
|
350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
351
|
+
Tuple[
|
|
352
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
353
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
354
|
+
]
|
|
355
|
+
] = None,
|
|
356
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
357
|
+
_content_type: Optional[StrictStr] = None,
|
|
358
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
359
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
360
|
+
) -> SharePointConnectorSettings:
|
|
361
|
+
"""Get Sharepoint Settings
|
|
362
|
+
|
|
363
|
+
Retrieve SharePoint connector settings.
|
|
364
|
+
|
|
365
|
+
:param username: (required)
|
|
366
|
+
:type username: str
|
|
367
|
+
:param dataset: (required)
|
|
368
|
+
:type dataset: str
|
|
369
|
+
:param connector_id:
|
|
370
|
+
:type connector_id: int
|
|
371
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
372
|
+
number provided, it will be total request
|
|
373
|
+
timeout. It can also be a pair (tuple) of
|
|
374
|
+
(connection, read) timeouts.
|
|
375
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
376
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
377
|
+
request; this effectively ignores the
|
|
378
|
+
authentication in the spec for a single request.
|
|
379
|
+
:type _request_auth: dict, optional
|
|
380
|
+
:param _content_type: force content-type for the request.
|
|
381
|
+
:type _content_type: str, Optional
|
|
382
|
+
:param _headers: set to override the headers for a single
|
|
383
|
+
request; this effectively ignores the headers
|
|
384
|
+
in the spec for a single request.
|
|
385
|
+
:type _headers: dict, optional
|
|
386
|
+
:param _host_index: set to override the host_index for a single
|
|
387
|
+
request; this effectively ignores the host_index
|
|
388
|
+
in the spec for a single request.
|
|
389
|
+
:type _host_index: int, optional
|
|
390
|
+
:return: Returns the result object.
|
|
391
|
+
""" # noqa: E501
|
|
392
|
+
|
|
393
|
+
_param = self._get_sharepoint_settings_serialize(
|
|
394
|
+
username=username,
|
|
395
|
+
dataset=dataset,
|
|
396
|
+
connector_id=connector_id,
|
|
397
|
+
_request_auth=_request_auth,
|
|
398
|
+
_content_type=_content_type,
|
|
399
|
+
_headers=_headers,
|
|
400
|
+
_host_index=_host_index
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
404
|
+
'200': "SharePointConnectorSettings",
|
|
405
|
+
'422': "HTTPValidationError",
|
|
406
|
+
}
|
|
407
|
+
response_data = self.api_client.call_api(
|
|
408
|
+
*_param,
|
|
409
|
+
_request_timeout=_request_timeout
|
|
410
|
+
)
|
|
411
|
+
response_data.read()
|
|
412
|
+
return self.api_client.response_deserialize(
|
|
413
|
+
response_data=response_data,
|
|
414
|
+
response_types_map=_response_types_map,
|
|
415
|
+
).data
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
@validate_call
|
|
419
|
+
def get_sharepoint_settings_with_http_info(
|
|
420
|
+
self,
|
|
421
|
+
username: Annotated[str, Field(min_length=1, strict=True)],
|
|
422
|
+
dataset: Annotated[str, Field(min_length=1, strict=True)],
|
|
423
|
+
connector_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
|
|
424
|
+
_request_timeout: Union[
|
|
425
|
+
None,
|
|
426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
427
|
+
Tuple[
|
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
429
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
430
|
+
]
|
|
431
|
+
] = None,
|
|
432
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
433
|
+
_content_type: Optional[StrictStr] = None,
|
|
434
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
435
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
436
|
+
) -> ApiResponse[SharePointConnectorSettings]:
|
|
437
|
+
"""Get Sharepoint Settings
|
|
438
|
+
|
|
439
|
+
Retrieve SharePoint connector settings.
|
|
440
|
+
|
|
441
|
+
:param username: (required)
|
|
442
|
+
:type username: str
|
|
443
|
+
:param dataset: (required)
|
|
444
|
+
:type dataset: str
|
|
445
|
+
:param connector_id:
|
|
446
|
+
:type connector_id: int
|
|
447
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
448
|
+
number provided, it will be total request
|
|
449
|
+
timeout. It can also be a pair (tuple) of
|
|
450
|
+
(connection, read) timeouts.
|
|
451
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
452
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
453
|
+
request; this effectively ignores the
|
|
454
|
+
authentication in the spec for a single request.
|
|
455
|
+
:type _request_auth: dict, optional
|
|
456
|
+
:param _content_type: force content-type for the request.
|
|
457
|
+
:type _content_type: str, Optional
|
|
458
|
+
:param _headers: set to override the headers for a single
|
|
459
|
+
request; this effectively ignores the headers
|
|
460
|
+
in the spec for a single request.
|
|
461
|
+
:type _headers: dict, optional
|
|
462
|
+
:param _host_index: set to override the host_index for a single
|
|
463
|
+
request; this effectively ignores the host_index
|
|
464
|
+
in the spec for a single request.
|
|
465
|
+
:type _host_index: int, optional
|
|
466
|
+
:return: Returns the result object.
|
|
467
|
+
""" # noqa: E501
|
|
468
|
+
|
|
469
|
+
_param = self._get_sharepoint_settings_serialize(
|
|
470
|
+
username=username,
|
|
471
|
+
dataset=dataset,
|
|
472
|
+
connector_id=connector_id,
|
|
473
|
+
_request_auth=_request_auth,
|
|
474
|
+
_content_type=_content_type,
|
|
475
|
+
_headers=_headers,
|
|
476
|
+
_host_index=_host_index
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
480
|
+
'200': "SharePointConnectorSettings",
|
|
481
|
+
'422': "HTTPValidationError",
|
|
482
|
+
}
|
|
483
|
+
response_data = self.api_client.call_api(
|
|
484
|
+
*_param,
|
|
485
|
+
_request_timeout=_request_timeout
|
|
486
|
+
)
|
|
487
|
+
response_data.read()
|
|
488
|
+
return self.api_client.response_deserialize(
|
|
489
|
+
response_data=response_data,
|
|
490
|
+
response_types_map=_response_types_map,
|
|
491
|
+
)
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
@validate_call
|
|
495
|
+
def get_sharepoint_settings_without_preload_content(
|
|
496
|
+
self,
|
|
497
|
+
username: Annotated[str, Field(min_length=1, strict=True)],
|
|
498
|
+
dataset: Annotated[str, Field(min_length=1, strict=True)],
|
|
499
|
+
connector_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
|
|
500
|
+
_request_timeout: Union[
|
|
501
|
+
None,
|
|
502
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
503
|
+
Tuple[
|
|
504
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
505
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
506
|
+
]
|
|
507
|
+
] = None,
|
|
508
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
509
|
+
_content_type: Optional[StrictStr] = None,
|
|
510
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
511
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
512
|
+
) -> RESTResponseType:
|
|
513
|
+
"""Get Sharepoint Settings
|
|
514
|
+
|
|
515
|
+
Retrieve SharePoint connector settings.
|
|
516
|
+
|
|
517
|
+
:param username: (required)
|
|
518
|
+
:type username: str
|
|
519
|
+
:param dataset: (required)
|
|
520
|
+
:type dataset: str
|
|
521
|
+
:param connector_id:
|
|
522
|
+
:type connector_id: int
|
|
523
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
524
|
+
number provided, it will be total request
|
|
525
|
+
timeout. It can also be a pair (tuple) of
|
|
526
|
+
(connection, read) timeouts.
|
|
527
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
528
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
529
|
+
request; this effectively ignores the
|
|
530
|
+
authentication in the spec for a single request.
|
|
531
|
+
:type _request_auth: dict, optional
|
|
532
|
+
:param _content_type: force content-type for the request.
|
|
533
|
+
:type _content_type: str, Optional
|
|
534
|
+
:param _headers: set to override the headers for a single
|
|
535
|
+
request; this effectively ignores the headers
|
|
536
|
+
in the spec for a single request.
|
|
537
|
+
:type _headers: dict, optional
|
|
538
|
+
:param _host_index: set to override the host_index for a single
|
|
539
|
+
request; this effectively ignores the host_index
|
|
540
|
+
in the spec for a single request.
|
|
541
|
+
:type _host_index: int, optional
|
|
542
|
+
:return: Returns the result object.
|
|
543
|
+
""" # noqa: E501
|
|
544
|
+
|
|
545
|
+
_param = self._get_sharepoint_settings_serialize(
|
|
546
|
+
username=username,
|
|
547
|
+
dataset=dataset,
|
|
548
|
+
connector_id=connector_id,
|
|
549
|
+
_request_auth=_request_auth,
|
|
550
|
+
_content_type=_content_type,
|
|
551
|
+
_headers=_headers,
|
|
552
|
+
_host_index=_host_index
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
556
|
+
'200': "SharePointConnectorSettings",
|
|
557
|
+
'422': "HTTPValidationError",
|
|
558
|
+
}
|
|
559
|
+
response_data = self.api_client.call_api(
|
|
560
|
+
*_param,
|
|
561
|
+
_request_timeout=_request_timeout
|
|
562
|
+
)
|
|
563
|
+
return response_data.response
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
def _get_sharepoint_settings_serialize(
|
|
567
|
+
self,
|
|
568
|
+
username,
|
|
569
|
+
dataset,
|
|
570
|
+
connector_id,
|
|
571
|
+
_request_auth,
|
|
572
|
+
_content_type,
|
|
573
|
+
_headers,
|
|
574
|
+
_host_index,
|
|
575
|
+
) -> RequestSerialized:
|
|
576
|
+
|
|
577
|
+
_host = None
|
|
578
|
+
|
|
579
|
+
_collection_formats: Dict[str, str] = {
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
_path_params: Dict[str, str] = {}
|
|
583
|
+
_query_params: List[Tuple[str, str]] = []
|
|
584
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
585
|
+
_form_params: List[Tuple[str, str]] = []
|
|
586
|
+
_files: Dict[
|
|
587
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
588
|
+
] = {}
|
|
589
|
+
_body_params: Optional[bytes] = None
|
|
590
|
+
|
|
591
|
+
# process the path parameters
|
|
592
|
+
# process the query parameters
|
|
593
|
+
if username is not None:
|
|
594
|
+
|
|
595
|
+
_query_params.append(('username', username))
|
|
596
|
+
|
|
597
|
+
if dataset is not None:
|
|
598
|
+
|
|
599
|
+
_query_params.append(('dataset', dataset))
|
|
600
|
+
|
|
601
|
+
if connector_id is not None:
|
|
602
|
+
|
|
603
|
+
_query_params.append(('connectorId', connector_id))
|
|
604
|
+
|
|
605
|
+
# process the header parameters
|
|
606
|
+
# process the form parameters
|
|
607
|
+
# process the body parameter
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
# set the HTTP header `Accept`
|
|
611
|
+
if 'Accept' not in _header_params:
|
|
612
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
613
|
+
[
|
|
614
|
+
'application/json'
|
|
615
|
+
]
|
|
616
|
+
)
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
# authentication setting
|
|
620
|
+
_auth_settings: List[str] = [
|
|
621
|
+
'QAnswer-Api-Key',
|
|
622
|
+
'Bearer token'
|
|
623
|
+
]
|
|
624
|
+
|
|
625
|
+
return self.api_client.param_serialize(
|
|
626
|
+
method='GET',
|
|
627
|
+
resource_path='/backend/api/connectors/sharepoint/settings',
|
|
628
|
+
path_params=_path_params,
|
|
629
|
+
query_params=_query_params,
|
|
630
|
+
header_params=_header_params,
|
|
631
|
+
body=_body_params,
|
|
632
|
+
post_params=_form_params,
|
|
633
|
+
files=_files,
|
|
634
|
+
auth_settings=_auth_settings,
|
|
635
|
+
collection_formats=_collection_formats,
|
|
636
|
+
_host=_host,
|
|
637
|
+
_request_auth=_request_auth
|
|
638
|
+
)
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
@validate_call
|
|
644
|
+
def refresh_sharepoint(
|
|
645
|
+
self,
|
|
646
|
+
username: StrictStr,
|
|
647
|
+
dataset: StrictStr,
|
|
648
|
+
connector_id: Optional[StrictInt] = None,
|
|
649
|
+
_request_timeout: Union[
|
|
650
|
+
None,
|
|
651
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
652
|
+
Tuple[
|
|
653
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
654
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
655
|
+
]
|
|
656
|
+
] = None,
|
|
657
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
658
|
+
_content_type: Optional[StrictStr] = None,
|
|
659
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
660
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
661
|
+
) -> StatusResponse:
|
|
662
|
+
"""Refresh Sharepoint Files
|
|
663
|
+
|
|
664
|
+
Refresh SharePoint files
|
|
665
|
+
|
|
666
|
+
:param username: (required)
|
|
667
|
+
:type username: str
|
|
668
|
+
:param dataset: (required)
|
|
669
|
+
:type dataset: str
|
|
670
|
+
:param connector_id:
|
|
671
|
+
:type connector_id: int
|
|
672
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
673
|
+
number provided, it will be total request
|
|
674
|
+
timeout. It can also be a pair (tuple) of
|
|
675
|
+
(connection, read) timeouts.
|
|
676
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
677
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
678
|
+
request; this effectively ignores the
|
|
679
|
+
authentication in the spec for a single request.
|
|
680
|
+
:type _request_auth: dict, optional
|
|
681
|
+
:param _content_type: force content-type for the request.
|
|
682
|
+
:type _content_type: str, Optional
|
|
683
|
+
:param _headers: set to override the headers for a single
|
|
684
|
+
request; this effectively ignores the headers
|
|
685
|
+
in the spec for a single request.
|
|
686
|
+
:type _headers: dict, optional
|
|
687
|
+
:param _host_index: set to override the host_index for a single
|
|
688
|
+
request; this effectively ignores the host_index
|
|
689
|
+
in the spec for a single request.
|
|
690
|
+
:type _host_index: int, optional
|
|
691
|
+
:return: Returns the result object.
|
|
692
|
+
""" # noqa: E501
|
|
693
|
+
|
|
694
|
+
_param = self._refresh_sharepoint_serialize(
|
|
695
|
+
username=username,
|
|
696
|
+
dataset=dataset,
|
|
697
|
+
connector_id=connector_id,
|
|
698
|
+
_request_auth=_request_auth,
|
|
699
|
+
_content_type=_content_type,
|
|
700
|
+
_headers=_headers,
|
|
701
|
+
_host_index=_host_index
|
|
702
|
+
)
|
|
703
|
+
|
|
704
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
705
|
+
'200': "StatusResponse",
|
|
706
|
+
'422': "HTTPValidationError",
|
|
707
|
+
}
|
|
708
|
+
response_data = self.api_client.call_api(
|
|
709
|
+
*_param,
|
|
710
|
+
_request_timeout=_request_timeout
|
|
711
|
+
)
|
|
712
|
+
response_data.read()
|
|
713
|
+
return self.api_client.response_deserialize(
|
|
714
|
+
response_data=response_data,
|
|
715
|
+
response_types_map=_response_types_map,
|
|
716
|
+
).data
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
@validate_call
|
|
720
|
+
def refresh_sharepoint_with_http_info(
|
|
721
|
+
self,
|
|
722
|
+
username: StrictStr,
|
|
723
|
+
dataset: StrictStr,
|
|
724
|
+
connector_id: Optional[StrictInt] = None,
|
|
725
|
+
_request_timeout: Union[
|
|
726
|
+
None,
|
|
727
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
728
|
+
Tuple[
|
|
729
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
730
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
731
|
+
]
|
|
732
|
+
] = None,
|
|
733
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
734
|
+
_content_type: Optional[StrictStr] = None,
|
|
735
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
736
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
737
|
+
) -> ApiResponse[StatusResponse]:
|
|
738
|
+
"""Refresh Sharepoint Files
|
|
739
|
+
|
|
740
|
+
Refresh SharePoint files
|
|
741
|
+
|
|
742
|
+
:param username: (required)
|
|
743
|
+
:type username: str
|
|
744
|
+
:param dataset: (required)
|
|
745
|
+
:type dataset: str
|
|
746
|
+
:param connector_id:
|
|
747
|
+
:type connector_id: int
|
|
748
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
749
|
+
number provided, it will be total request
|
|
750
|
+
timeout. It can also be a pair (tuple) of
|
|
751
|
+
(connection, read) timeouts.
|
|
752
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
753
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
754
|
+
request; this effectively ignores the
|
|
755
|
+
authentication in the spec for a single request.
|
|
756
|
+
:type _request_auth: dict, optional
|
|
757
|
+
:param _content_type: force content-type for the request.
|
|
758
|
+
:type _content_type: str, Optional
|
|
759
|
+
:param _headers: set to override the headers for a single
|
|
760
|
+
request; this effectively ignores the headers
|
|
761
|
+
in the spec for a single request.
|
|
762
|
+
:type _headers: dict, optional
|
|
763
|
+
:param _host_index: set to override the host_index for a single
|
|
764
|
+
request; this effectively ignores the host_index
|
|
765
|
+
in the spec for a single request.
|
|
766
|
+
:type _host_index: int, optional
|
|
767
|
+
:return: Returns the result object.
|
|
768
|
+
""" # noqa: E501
|
|
769
|
+
|
|
770
|
+
_param = self._refresh_sharepoint_serialize(
|
|
771
|
+
username=username,
|
|
772
|
+
dataset=dataset,
|
|
773
|
+
connector_id=connector_id,
|
|
774
|
+
_request_auth=_request_auth,
|
|
775
|
+
_content_type=_content_type,
|
|
776
|
+
_headers=_headers,
|
|
777
|
+
_host_index=_host_index
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
781
|
+
'200': "StatusResponse",
|
|
782
|
+
'422': "HTTPValidationError",
|
|
783
|
+
}
|
|
784
|
+
response_data = self.api_client.call_api(
|
|
785
|
+
*_param,
|
|
786
|
+
_request_timeout=_request_timeout
|
|
787
|
+
)
|
|
788
|
+
response_data.read()
|
|
789
|
+
return self.api_client.response_deserialize(
|
|
790
|
+
response_data=response_data,
|
|
791
|
+
response_types_map=_response_types_map,
|
|
792
|
+
)
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
@validate_call
|
|
796
|
+
def refresh_sharepoint_without_preload_content(
|
|
797
|
+
self,
|
|
798
|
+
username: StrictStr,
|
|
799
|
+
dataset: StrictStr,
|
|
800
|
+
connector_id: Optional[StrictInt] = None,
|
|
801
|
+
_request_timeout: Union[
|
|
802
|
+
None,
|
|
803
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
804
|
+
Tuple[
|
|
805
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
806
|
+
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
|
+
) -> RESTResponseType:
|
|
814
|
+
"""Refresh Sharepoint Files
|
|
815
|
+
|
|
816
|
+
Refresh SharePoint files
|
|
817
|
+
|
|
818
|
+
:param username: (required)
|
|
819
|
+
:type username: str
|
|
820
|
+
:param dataset: (required)
|
|
821
|
+
:type dataset: str
|
|
822
|
+
:param connector_id:
|
|
823
|
+
:type connector_id: int
|
|
824
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
825
|
+
number provided, it will be total request
|
|
826
|
+
timeout. It can also be a pair (tuple) of
|
|
827
|
+
(connection, read) timeouts.
|
|
828
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
829
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
830
|
+
request; this effectively ignores the
|
|
831
|
+
authentication in the spec for a single request.
|
|
832
|
+
:type _request_auth: dict, optional
|
|
833
|
+
:param _content_type: force content-type for the request.
|
|
834
|
+
:type _content_type: str, Optional
|
|
835
|
+
:param _headers: set to override the headers for a single
|
|
836
|
+
request; this effectively ignores the headers
|
|
837
|
+
in the spec for a single request.
|
|
838
|
+
:type _headers: dict, optional
|
|
839
|
+
:param _host_index: set to override the host_index for a single
|
|
840
|
+
request; this effectively ignores the host_index
|
|
841
|
+
in the spec for a single request.
|
|
842
|
+
:type _host_index: int, optional
|
|
843
|
+
:return: Returns the result object.
|
|
844
|
+
""" # noqa: E501
|
|
845
|
+
|
|
846
|
+
_param = self._refresh_sharepoint_serialize(
|
|
847
|
+
username=username,
|
|
848
|
+
dataset=dataset,
|
|
849
|
+
connector_id=connector_id,
|
|
850
|
+
_request_auth=_request_auth,
|
|
851
|
+
_content_type=_content_type,
|
|
852
|
+
_headers=_headers,
|
|
853
|
+
_host_index=_host_index
|
|
854
|
+
)
|
|
855
|
+
|
|
856
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
857
|
+
'200': "StatusResponse",
|
|
858
|
+
'422': "HTTPValidationError",
|
|
859
|
+
}
|
|
860
|
+
response_data = self.api_client.call_api(
|
|
861
|
+
*_param,
|
|
862
|
+
_request_timeout=_request_timeout
|
|
863
|
+
)
|
|
864
|
+
return response_data.response
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
def _refresh_sharepoint_serialize(
|
|
868
|
+
self,
|
|
869
|
+
username,
|
|
870
|
+
dataset,
|
|
871
|
+
connector_id,
|
|
872
|
+
_request_auth,
|
|
873
|
+
_content_type,
|
|
874
|
+
_headers,
|
|
875
|
+
_host_index,
|
|
876
|
+
) -> RequestSerialized:
|
|
877
|
+
|
|
878
|
+
_host = None
|
|
879
|
+
|
|
880
|
+
_collection_formats: Dict[str, str] = {
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
_path_params: Dict[str, str] = {}
|
|
884
|
+
_query_params: List[Tuple[str, str]] = []
|
|
885
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
886
|
+
_form_params: List[Tuple[str, str]] = []
|
|
887
|
+
_files: Dict[
|
|
888
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
889
|
+
] = {}
|
|
890
|
+
_body_params: Optional[bytes] = None
|
|
891
|
+
|
|
892
|
+
# process the path parameters
|
|
893
|
+
# process the query parameters
|
|
894
|
+
if username is not None:
|
|
895
|
+
|
|
896
|
+
_query_params.append(('username', username))
|
|
897
|
+
|
|
898
|
+
if dataset is not None:
|
|
899
|
+
|
|
900
|
+
_query_params.append(('dataset', dataset))
|
|
901
|
+
|
|
902
|
+
if connector_id is not None:
|
|
903
|
+
|
|
904
|
+
_query_params.append(('connectorId', connector_id))
|
|
905
|
+
|
|
906
|
+
# process the header parameters
|
|
907
|
+
# process the form parameters
|
|
908
|
+
# process the body parameter
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
# set the HTTP header `Accept`
|
|
912
|
+
if 'Accept' not in _header_params:
|
|
913
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
914
|
+
[
|
|
915
|
+
'application/json'
|
|
916
|
+
]
|
|
917
|
+
)
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
# authentication setting
|
|
921
|
+
_auth_settings: List[str] = [
|
|
922
|
+
'QAnswer-Api-Key',
|
|
923
|
+
'Bearer token'
|
|
924
|
+
]
|
|
925
|
+
|
|
926
|
+
return self.api_client.param_serialize(
|
|
927
|
+
method='POST',
|
|
928
|
+
resource_path='/backend/api/connectors/sharepoint/refresh',
|
|
929
|
+
path_params=_path_params,
|
|
930
|
+
query_params=_query_params,
|
|
931
|
+
header_params=_header_params,
|
|
932
|
+
body=_body_params,
|
|
933
|
+
post_params=_form_params,
|
|
934
|
+
files=_files,
|
|
935
|
+
auth_settings=_auth_settings,
|
|
936
|
+
collection_formats=_collection_formats,
|
|
937
|
+
_host=_host,
|
|
938
|
+
_request_auth=_request_auth
|
|
939
|
+
)
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
@validate_call
|
|
945
|
+
def sharepoint_connector_add(
|
|
946
|
+
self,
|
|
947
|
+
share_point_download_request: SharePointDownloadRequest,
|
|
948
|
+
_request_timeout: Union[
|
|
949
|
+
None,
|
|
950
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
951
|
+
Tuple[
|
|
952
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
953
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
954
|
+
]
|
|
955
|
+
] = None,
|
|
956
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
957
|
+
_content_type: Optional[StrictStr] = None,
|
|
958
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
959
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
960
|
+
) -> StatusResponse:
|
|
961
|
+
"""Download Sharepoint Files
|
|
962
|
+
|
|
963
|
+
Download SharePoint files
|
|
964
|
+
|
|
965
|
+
:param share_point_download_request: (required)
|
|
966
|
+
:type share_point_download_request: SharePointDownloadRequest
|
|
967
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
968
|
+
number provided, it will be total request
|
|
969
|
+
timeout. It can also be a pair (tuple) of
|
|
970
|
+
(connection, read) timeouts.
|
|
971
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
972
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
973
|
+
request; this effectively ignores the
|
|
974
|
+
authentication in the spec for a single request.
|
|
975
|
+
:type _request_auth: dict, optional
|
|
976
|
+
:param _content_type: force content-type for the request.
|
|
977
|
+
:type _content_type: str, Optional
|
|
978
|
+
:param _headers: set to override the headers for a single
|
|
979
|
+
request; this effectively ignores the headers
|
|
980
|
+
in the spec for a single request.
|
|
981
|
+
:type _headers: dict, optional
|
|
982
|
+
:param _host_index: set to override the host_index for a single
|
|
983
|
+
request; this effectively ignores the host_index
|
|
984
|
+
in the spec for a single request.
|
|
985
|
+
:type _host_index: int, optional
|
|
986
|
+
:return: Returns the result object.
|
|
987
|
+
""" # noqa: E501
|
|
988
|
+
|
|
989
|
+
_param = self._sharepoint_connector_add_serialize(
|
|
990
|
+
share_point_download_request=share_point_download_request,
|
|
991
|
+
_request_auth=_request_auth,
|
|
992
|
+
_content_type=_content_type,
|
|
993
|
+
_headers=_headers,
|
|
994
|
+
_host_index=_host_index
|
|
995
|
+
)
|
|
996
|
+
|
|
997
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
998
|
+
'200': "StatusResponse",
|
|
999
|
+
'422': "HTTPValidationError",
|
|
1000
|
+
}
|
|
1001
|
+
response_data = self.api_client.call_api(
|
|
1002
|
+
*_param,
|
|
1003
|
+
_request_timeout=_request_timeout
|
|
1004
|
+
)
|
|
1005
|
+
response_data.read()
|
|
1006
|
+
return self.api_client.response_deserialize(
|
|
1007
|
+
response_data=response_data,
|
|
1008
|
+
response_types_map=_response_types_map,
|
|
1009
|
+
).data
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
@validate_call
|
|
1013
|
+
def sharepoint_connector_add_with_http_info(
|
|
1014
|
+
self,
|
|
1015
|
+
share_point_download_request: SharePointDownloadRequest,
|
|
1016
|
+
_request_timeout: Union[
|
|
1017
|
+
None,
|
|
1018
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1019
|
+
Tuple[
|
|
1020
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1021
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1022
|
+
]
|
|
1023
|
+
] = None,
|
|
1024
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1025
|
+
_content_type: Optional[StrictStr] = None,
|
|
1026
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1027
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1028
|
+
) -> ApiResponse[StatusResponse]:
|
|
1029
|
+
"""Download Sharepoint Files
|
|
1030
|
+
|
|
1031
|
+
Download SharePoint files
|
|
1032
|
+
|
|
1033
|
+
:param share_point_download_request: (required)
|
|
1034
|
+
:type share_point_download_request: SharePointDownloadRequest
|
|
1035
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1036
|
+
number provided, it will be total request
|
|
1037
|
+
timeout. It can also be a pair (tuple) of
|
|
1038
|
+
(connection, read) timeouts.
|
|
1039
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1040
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1041
|
+
request; this effectively ignores the
|
|
1042
|
+
authentication in the spec for a single request.
|
|
1043
|
+
:type _request_auth: dict, optional
|
|
1044
|
+
:param _content_type: force content-type for the request.
|
|
1045
|
+
:type _content_type: str, Optional
|
|
1046
|
+
:param _headers: set to override the headers for a single
|
|
1047
|
+
request; this effectively ignores the headers
|
|
1048
|
+
in the spec for a single request.
|
|
1049
|
+
:type _headers: dict, optional
|
|
1050
|
+
:param _host_index: set to override the host_index for a single
|
|
1051
|
+
request; this effectively ignores the host_index
|
|
1052
|
+
in the spec for a single request.
|
|
1053
|
+
:type _host_index: int, optional
|
|
1054
|
+
:return: Returns the result object.
|
|
1055
|
+
""" # noqa: E501
|
|
1056
|
+
|
|
1057
|
+
_param = self._sharepoint_connector_add_serialize(
|
|
1058
|
+
share_point_download_request=share_point_download_request,
|
|
1059
|
+
_request_auth=_request_auth,
|
|
1060
|
+
_content_type=_content_type,
|
|
1061
|
+
_headers=_headers,
|
|
1062
|
+
_host_index=_host_index
|
|
1063
|
+
)
|
|
1064
|
+
|
|
1065
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1066
|
+
'200': "StatusResponse",
|
|
1067
|
+
'422': "HTTPValidationError",
|
|
1068
|
+
}
|
|
1069
|
+
response_data = self.api_client.call_api(
|
|
1070
|
+
*_param,
|
|
1071
|
+
_request_timeout=_request_timeout
|
|
1072
|
+
)
|
|
1073
|
+
response_data.read()
|
|
1074
|
+
return self.api_client.response_deserialize(
|
|
1075
|
+
response_data=response_data,
|
|
1076
|
+
response_types_map=_response_types_map,
|
|
1077
|
+
)
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
@validate_call
|
|
1081
|
+
def sharepoint_connector_add_without_preload_content(
|
|
1082
|
+
self,
|
|
1083
|
+
share_point_download_request: SharePointDownloadRequest,
|
|
1084
|
+
_request_timeout: Union[
|
|
1085
|
+
None,
|
|
1086
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1087
|
+
Tuple[
|
|
1088
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1089
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1090
|
+
]
|
|
1091
|
+
] = None,
|
|
1092
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1093
|
+
_content_type: Optional[StrictStr] = None,
|
|
1094
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1095
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1096
|
+
) -> RESTResponseType:
|
|
1097
|
+
"""Download Sharepoint Files
|
|
1098
|
+
|
|
1099
|
+
Download SharePoint files
|
|
1100
|
+
|
|
1101
|
+
:param share_point_download_request: (required)
|
|
1102
|
+
:type share_point_download_request: SharePointDownloadRequest
|
|
1103
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1104
|
+
number provided, it will be total request
|
|
1105
|
+
timeout. It can also be a pair (tuple) of
|
|
1106
|
+
(connection, read) timeouts.
|
|
1107
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1108
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1109
|
+
request; this effectively ignores the
|
|
1110
|
+
authentication in the spec for a single request.
|
|
1111
|
+
:type _request_auth: dict, optional
|
|
1112
|
+
:param _content_type: force content-type for the request.
|
|
1113
|
+
:type _content_type: str, Optional
|
|
1114
|
+
:param _headers: set to override the headers for a single
|
|
1115
|
+
request; this effectively ignores the headers
|
|
1116
|
+
in the spec for a single request.
|
|
1117
|
+
:type _headers: dict, optional
|
|
1118
|
+
:param _host_index: set to override the host_index for a single
|
|
1119
|
+
request; this effectively ignores the host_index
|
|
1120
|
+
in the spec for a single request.
|
|
1121
|
+
:type _host_index: int, optional
|
|
1122
|
+
:return: Returns the result object.
|
|
1123
|
+
""" # noqa: E501
|
|
1124
|
+
|
|
1125
|
+
_param = self._sharepoint_connector_add_serialize(
|
|
1126
|
+
share_point_download_request=share_point_download_request,
|
|
1127
|
+
_request_auth=_request_auth,
|
|
1128
|
+
_content_type=_content_type,
|
|
1129
|
+
_headers=_headers,
|
|
1130
|
+
_host_index=_host_index
|
|
1131
|
+
)
|
|
1132
|
+
|
|
1133
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1134
|
+
'200': "StatusResponse",
|
|
1135
|
+
'422': "HTTPValidationError",
|
|
1136
|
+
}
|
|
1137
|
+
response_data = self.api_client.call_api(
|
|
1138
|
+
*_param,
|
|
1139
|
+
_request_timeout=_request_timeout
|
|
1140
|
+
)
|
|
1141
|
+
return response_data.response
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
def _sharepoint_connector_add_serialize(
|
|
1145
|
+
self,
|
|
1146
|
+
share_point_download_request,
|
|
1147
|
+
_request_auth,
|
|
1148
|
+
_content_type,
|
|
1149
|
+
_headers,
|
|
1150
|
+
_host_index,
|
|
1151
|
+
) -> RequestSerialized:
|
|
1152
|
+
|
|
1153
|
+
_host = None
|
|
1154
|
+
|
|
1155
|
+
_collection_formats: Dict[str, str] = {
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
_path_params: Dict[str, str] = {}
|
|
1159
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1160
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1161
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1162
|
+
_files: Dict[
|
|
1163
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1164
|
+
] = {}
|
|
1165
|
+
_body_params: Optional[bytes] = None
|
|
1166
|
+
|
|
1167
|
+
# process the path parameters
|
|
1168
|
+
# process the query parameters
|
|
1169
|
+
# process the header parameters
|
|
1170
|
+
# process the form parameters
|
|
1171
|
+
# process the body parameter
|
|
1172
|
+
if share_point_download_request is not None:
|
|
1173
|
+
_body_params = share_point_download_request
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
# set the HTTP header `Accept`
|
|
1177
|
+
if 'Accept' not in _header_params:
|
|
1178
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1179
|
+
[
|
|
1180
|
+
'application/json'
|
|
1181
|
+
]
|
|
1182
|
+
)
|
|
1183
|
+
|
|
1184
|
+
# set the HTTP header `Content-Type`
|
|
1185
|
+
if _content_type:
|
|
1186
|
+
_header_params['Content-Type'] = _content_type
|
|
1187
|
+
else:
|
|
1188
|
+
_default_content_type = (
|
|
1189
|
+
self.api_client.select_header_content_type(
|
|
1190
|
+
[
|
|
1191
|
+
'application/json'
|
|
1192
|
+
]
|
|
1193
|
+
)
|
|
1194
|
+
)
|
|
1195
|
+
if _default_content_type is not None:
|
|
1196
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1197
|
+
|
|
1198
|
+
# authentication setting
|
|
1199
|
+
_auth_settings: List[str] = [
|
|
1200
|
+
'QAnswer-Api-Key',
|
|
1201
|
+
'Bearer token'
|
|
1202
|
+
]
|
|
1203
|
+
|
|
1204
|
+
return self.api_client.param_serialize(
|
|
1205
|
+
method='POST',
|
|
1206
|
+
resource_path='/backend/api/connectors/sharepoint/add',
|
|
1207
|
+
path_params=_path_params,
|
|
1208
|
+
query_params=_query_params,
|
|
1209
|
+
header_params=_header_params,
|
|
1210
|
+
body=_body_params,
|
|
1211
|
+
post_params=_form_params,
|
|
1212
|
+
files=_files,
|
|
1213
|
+
auth_settings=_auth_settings,
|
|
1214
|
+
collection_formats=_collection_formats,
|
|
1215
|
+
_host=_host,
|
|
1216
|
+
_request_auth=_request_auth
|
|
1217
|
+
)
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
@validate_call
|
|
1223
|
+
def sharepoint_connector_auth_link(
|
|
1224
|
+
self,
|
|
1225
|
+
username: StrictStr,
|
|
1226
|
+
dataset: StrictStr,
|
|
1227
|
+
connector_id: Optional[StrictInt] = None,
|
|
1228
|
+
chatting_origin: Optional[StrictStr] = None,
|
|
1229
|
+
_request_timeout: Union[
|
|
1230
|
+
None,
|
|
1231
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1232
|
+
Tuple[
|
|
1233
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1234
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1235
|
+
]
|
|
1236
|
+
] = None,
|
|
1237
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1238
|
+
_content_type: Optional[StrictStr] = None,
|
|
1239
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1240
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1241
|
+
) -> AuthLinkResponse:
|
|
1242
|
+
"""Get Sharepoint Auth Link
|
|
1243
|
+
|
|
1244
|
+
Get authentication link for SharePoint Connector
|
|
1245
|
+
|
|
1246
|
+
:param username: (required)
|
|
1247
|
+
:type username: str
|
|
1248
|
+
:param dataset: (required)
|
|
1249
|
+
:type dataset: str
|
|
1250
|
+
:param connector_id:
|
|
1251
|
+
:type connector_id: int
|
|
1252
|
+
:param chatting_origin:
|
|
1253
|
+
:type chatting_origin: str
|
|
1254
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1255
|
+
number provided, it will be total request
|
|
1256
|
+
timeout. It can also be a pair (tuple) of
|
|
1257
|
+
(connection, read) timeouts.
|
|
1258
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1259
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1260
|
+
request; this effectively ignores the
|
|
1261
|
+
authentication in the spec for a single request.
|
|
1262
|
+
:type _request_auth: dict, optional
|
|
1263
|
+
:param _content_type: force content-type for the request.
|
|
1264
|
+
:type _content_type: str, Optional
|
|
1265
|
+
:param _headers: set to override the headers for a single
|
|
1266
|
+
request; this effectively ignores the headers
|
|
1267
|
+
in the spec for a single request.
|
|
1268
|
+
:type _headers: dict, optional
|
|
1269
|
+
:param _host_index: set to override the host_index for a single
|
|
1270
|
+
request; this effectively ignores the host_index
|
|
1271
|
+
in the spec for a single request.
|
|
1272
|
+
:type _host_index: int, optional
|
|
1273
|
+
:return: Returns the result object.
|
|
1274
|
+
""" # noqa: E501
|
|
1275
|
+
|
|
1276
|
+
_param = self._sharepoint_connector_auth_link_serialize(
|
|
1277
|
+
username=username,
|
|
1278
|
+
dataset=dataset,
|
|
1279
|
+
connector_id=connector_id,
|
|
1280
|
+
chatting_origin=chatting_origin,
|
|
1281
|
+
_request_auth=_request_auth,
|
|
1282
|
+
_content_type=_content_type,
|
|
1283
|
+
_headers=_headers,
|
|
1284
|
+
_host_index=_host_index
|
|
1285
|
+
)
|
|
1286
|
+
|
|
1287
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1288
|
+
'200': "AuthLinkResponse",
|
|
1289
|
+
'422': "HTTPValidationError",
|
|
1290
|
+
}
|
|
1291
|
+
response_data = self.api_client.call_api(
|
|
1292
|
+
*_param,
|
|
1293
|
+
_request_timeout=_request_timeout
|
|
1294
|
+
)
|
|
1295
|
+
response_data.read()
|
|
1296
|
+
return self.api_client.response_deserialize(
|
|
1297
|
+
response_data=response_data,
|
|
1298
|
+
response_types_map=_response_types_map,
|
|
1299
|
+
).data
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
@validate_call
|
|
1303
|
+
def sharepoint_connector_auth_link_with_http_info(
|
|
1304
|
+
self,
|
|
1305
|
+
username: StrictStr,
|
|
1306
|
+
dataset: StrictStr,
|
|
1307
|
+
connector_id: Optional[StrictInt] = None,
|
|
1308
|
+
chatting_origin: Optional[StrictStr] = None,
|
|
1309
|
+
_request_timeout: Union[
|
|
1310
|
+
None,
|
|
1311
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1312
|
+
Tuple[
|
|
1313
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1314
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1315
|
+
]
|
|
1316
|
+
] = None,
|
|
1317
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1318
|
+
_content_type: Optional[StrictStr] = None,
|
|
1319
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1320
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1321
|
+
) -> ApiResponse[AuthLinkResponse]:
|
|
1322
|
+
"""Get Sharepoint Auth Link
|
|
1323
|
+
|
|
1324
|
+
Get authentication link for SharePoint Connector
|
|
1325
|
+
|
|
1326
|
+
:param username: (required)
|
|
1327
|
+
:type username: str
|
|
1328
|
+
:param dataset: (required)
|
|
1329
|
+
:type dataset: str
|
|
1330
|
+
:param connector_id:
|
|
1331
|
+
:type connector_id: int
|
|
1332
|
+
:param chatting_origin:
|
|
1333
|
+
:type chatting_origin: str
|
|
1334
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1335
|
+
number provided, it will be total request
|
|
1336
|
+
timeout. It can also be a pair (tuple) of
|
|
1337
|
+
(connection, read) timeouts.
|
|
1338
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1339
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1340
|
+
request; this effectively ignores the
|
|
1341
|
+
authentication in the spec for a single request.
|
|
1342
|
+
:type _request_auth: dict, optional
|
|
1343
|
+
:param _content_type: force content-type for the request.
|
|
1344
|
+
:type _content_type: str, Optional
|
|
1345
|
+
:param _headers: set to override the headers for a single
|
|
1346
|
+
request; this effectively ignores the headers
|
|
1347
|
+
in the spec for a single request.
|
|
1348
|
+
:type _headers: dict, optional
|
|
1349
|
+
:param _host_index: set to override the host_index for a single
|
|
1350
|
+
request; this effectively ignores the host_index
|
|
1351
|
+
in the spec for a single request.
|
|
1352
|
+
:type _host_index: int, optional
|
|
1353
|
+
:return: Returns the result object.
|
|
1354
|
+
""" # noqa: E501
|
|
1355
|
+
|
|
1356
|
+
_param = self._sharepoint_connector_auth_link_serialize(
|
|
1357
|
+
username=username,
|
|
1358
|
+
dataset=dataset,
|
|
1359
|
+
connector_id=connector_id,
|
|
1360
|
+
chatting_origin=chatting_origin,
|
|
1361
|
+
_request_auth=_request_auth,
|
|
1362
|
+
_content_type=_content_type,
|
|
1363
|
+
_headers=_headers,
|
|
1364
|
+
_host_index=_host_index
|
|
1365
|
+
)
|
|
1366
|
+
|
|
1367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1368
|
+
'200': "AuthLinkResponse",
|
|
1369
|
+
'422': "HTTPValidationError",
|
|
1370
|
+
}
|
|
1371
|
+
response_data = self.api_client.call_api(
|
|
1372
|
+
*_param,
|
|
1373
|
+
_request_timeout=_request_timeout
|
|
1374
|
+
)
|
|
1375
|
+
response_data.read()
|
|
1376
|
+
return self.api_client.response_deserialize(
|
|
1377
|
+
response_data=response_data,
|
|
1378
|
+
response_types_map=_response_types_map,
|
|
1379
|
+
)
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
@validate_call
|
|
1383
|
+
def sharepoint_connector_auth_link_without_preload_content(
|
|
1384
|
+
self,
|
|
1385
|
+
username: StrictStr,
|
|
1386
|
+
dataset: StrictStr,
|
|
1387
|
+
connector_id: Optional[StrictInt] = None,
|
|
1388
|
+
chatting_origin: Optional[StrictStr] = None,
|
|
1389
|
+
_request_timeout: Union[
|
|
1390
|
+
None,
|
|
1391
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1392
|
+
Tuple[
|
|
1393
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1394
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1395
|
+
]
|
|
1396
|
+
] = None,
|
|
1397
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1398
|
+
_content_type: Optional[StrictStr] = None,
|
|
1399
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1400
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1401
|
+
) -> RESTResponseType:
|
|
1402
|
+
"""Get Sharepoint Auth Link
|
|
1403
|
+
|
|
1404
|
+
Get authentication link for SharePoint Connector
|
|
1405
|
+
|
|
1406
|
+
:param username: (required)
|
|
1407
|
+
:type username: str
|
|
1408
|
+
:param dataset: (required)
|
|
1409
|
+
:type dataset: str
|
|
1410
|
+
:param connector_id:
|
|
1411
|
+
:type connector_id: int
|
|
1412
|
+
:param chatting_origin:
|
|
1413
|
+
:type chatting_origin: str
|
|
1414
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1415
|
+
number provided, it will be total request
|
|
1416
|
+
timeout. It can also be a pair (tuple) of
|
|
1417
|
+
(connection, read) timeouts.
|
|
1418
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1419
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1420
|
+
request; this effectively ignores the
|
|
1421
|
+
authentication in the spec for a single request.
|
|
1422
|
+
:type _request_auth: dict, optional
|
|
1423
|
+
:param _content_type: force content-type for the request.
|
|
1424
|
+
:type _content_type: str, Optional
|
|
1425
|
+
:param _headers: set to override the headers for a single
|
|
1426
|
+
request; this effectively ignores the headers
|
|
1427
|
+
in the spec for a single request.
|
|
1428
|
+
:type _headers: dict, optional
|
|
1429
|
+
:param _host_index: set to override the host_index for a single
|
|
1430
|
+
request; this effectively ignores the host_index
|
|
1431
|
+
in the spec for a single request.
|
|
1432
|
+
:type _host_index: int, optional
|
|
1433
|
+
:return: Returns the result object.
|
|
1434
|
+
""" # noqa: E501
|
|
1435
|
+
|
|
1436
|
+
_param = self._sharepoint_connector_auth_link_serialize(
|
|
1437
|
+
username=username,
|
|
1438
|
+
dataset=dataset,
|
|
1439
|
+
connector_id=connector_id,
|
|
1440
|
+
chatting_origin=chatting_origin,
|
|
1441
|
+
_request_auth=_request_auth,
|
|
1442
|
+
_content_type=_content_type,
|
|
1443
|
+
_headers=_headers,
|
|
1444
|
+
_host_index=_host_index
|
|
1445
|
+
)
|
|
1446
|
+
|
|
1447
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1448
|
+
'200': "AuthLinkResponse",
|
|
1449
|
+
'422': "HTTPValidationError",
|
|
1450
|
+
}
|
|
1451
|
+
response_data = self.api_client.call_api(
|
|
1452
|
+
*_param,
|
|
1453
|
+
_request_timeout=_request_timeout
|
|
1454
|
+
)
|
|
1455
|
+
return response_data.response
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
def _sharepoint_connector_auth_link_serialize(
|
|
1459
|
+
self,
|
|
1460
|
+
username,
|
|
1461
|
+
dataset,
|
|
1462
|
+
connector_id,
|
|
1463
|
+
chatting_origin,
|
|
1464
|
+
_request_auth,
|
|
1465
|
+
_content_type,
|
|
1466
|
+
_headers,
|
|
1467
|
+
_host_index,
|
|
1468
|
+
) -> RequestSerialized:
|
|
1469
|
+
|
|
1470
|
+
_host = None
|
|
1471
|
+
|
|
1472
|
+
_collection_formats: Dict[str, str] = {
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
_path_params: Dict[str, str] = {}
|
|
1476
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1477
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1478
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1479
|
+
_files: Dict[
|
|
1480
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1481
|
+
] = {}
|
|
1482
|
+
_body_params: Optional[bytes] = None
|
|
1483
|
+
|
|
1484
|
+
# process the path parameters
|
|
1485
|
+
# process the query parameters
|
|
1486
|
+
if username is not None:
|
|
1487
|
+
|
|
1488
|
+
_query_params.append(('username', username))
|
|
1489
|
+
|
|
1490
|
+
if dataset is not None:
|
|
1491
|
+
|
|
1492
|
+
_query_params.append(('dataset', dataset))
|
|
1493
|
+
|
|
1494
|
+
if connector_id is not None:
|
|
1495
|
+
|
|
1496
|
+
_query_params.append(('connectorId', connector_id))
|
|
1497
|
+
|
|
1498
|
+
if chatting_origin is not None:
|
|
1499
|
+
|
|
1500
|
+
_query_params.append(('chattingOrigin', chatting_origin))
|
|
1501
|
+
|
|
1502
|
+
# process the header parameters
|
|
1503
|
+
# process the form parameters
|
|
1504
|
+
# process the body parameter
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
# set the HTTP header `Accept`
|
|
1508
|
+
if 'Accept' not in _header_params:
|
|
1509
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1510
|
+
[
|
|
1511
|
+
'application/json'
|
|
1512
|
+
]
|
|
1513
|
+
)
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
# authentication setting
|
|
1517
|
+
_auth_settings: List[str] = [
|
|
1518
|
+
'QAnswer-Api-Key',
|
|
1519
|
+
'Bearer token'
|
|
1520
|
+
]
|
|
1521
|
+
|
|
1522
|
+
return self.api_client.param_serialize(
|
|
1523
|
+
method='GET',
|
|
1524
|
+
resource_path='/backend/api/connectors/sharepoint/authorisation-link',
|
|
1525
|
+
path_params=_path_params,
|
|
1526
|
+
query_params=_query_params,
|
|
1527
|
+
header_params=_header_params,
|
|
1528
|
+
body=_body_params,
|
|
1529
|
+
post_params=_form_params,
|
|
1530
|
+
files=_files,
|
|
1531
|
+
auth_settings=_auth_settings,
|
|
1532
|
+
collection_formats=_collection_formats,
|
|
1533
|
+
_host=_host,
|
|
1534
|
+
_request_auth=_request_auth
|
|
1535
|
+
)
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
@validate_call
|
|
1541
|
+
def sharepoint_connector_callback(
|
|
1542
|
+
self,
|
|
1543
|
+
code: Optional[StrictStr] = None,
|
|
1544
|
+
state: Optional[StrictStr] = None,
|
|
1545
|
+
error: Optional[StrictStr] = None,
|
|
1546
|
+
_request_timeout: Union[
|
|
1547
|
+
None,
|
|
1548
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1549
|
+
Tuple[
|
|
1550
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1551
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1552
|
+
]
|
|
1553
|
+
] = None,
|
|
1554
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1555
|
+
_content_type: Optional[StrictStr] = None,
|
|
1556
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1557
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1558
|
+
) -> object:
|
|
1559
|
+
"""Sharepoint Callback
|
|
1560
|
+
|
|
1561
|
+
Callback for SharePoint Connector
|
|
1562
|
+
|
|
1563
|
+
:param code:
|
|
1564
|
+
:type code: str
|
|
1565
|
+
:param state:
|
|
1566
|
+
:type state: str
|
|
1567
|
+
:param error:
|
|
1568
|
+
:type error: str
|
|
1569
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1570
|
+
number provided, it will be total request
|
|
1571
|
+
timeout. It can also be a pair (tuple) of
|
|
1572
|
+
(connection, read) timeouts.
|
|
1573
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1574
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1575
|
+
request; this effectively ignores the
|
|
1576
|
+
authentication in the spec for a single request.
|
|
1577
|
+
:type _request_auth: dict, optional
|
|
1578
|
+
:param _content_type: force content-type for the request.
|
|
1579
|
+
:type _content_type: str, Optional
|
|
1580
|
+
:param _headers: set to override the headers for a single
|
|
1581
|
+
request; this effectively ignores the headers
|
|
1582
|
+
in the spec for a single request.
|
|
1583
|
+
:type _headers: dict, optional
|
|
1584
|
+
:param _host_index: set to override the host_index for a single
|
|
1585
|
+
request; this effectively ignores the host_index
|
|
1586
|
+
in the spec for a single request.
|
|
1587
|
+
:type _host_index: int, optional
|
|
1588
|
+
:return: Returns the result object.
|
|
1589
|
+
""" # noqa: E501
|
|
1590
|
+
|
|
1591
|
+
_param = self._sharepoint_connector_callback_serialize(
|
|
1592
|
+
code=code,
|
|
1593
|
+
state=state,
|
|
1594
|
+
error=error,
|
|
1595
|
+
_request_auth=_request_auth,
|
|
1596
|
+
_content_type=_content_type,
|
|
1597
|
+
_headers=_headers,
|
|
1598
|
+
_host_index=_host_index
|
|
1599
|
+
)
|
|
1600
|
+
|
|
1601
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1602
|
+
'200': "object",
|
|
1603
|
+
'422': "HTTPValidationError",
|
|
1604
|
+
}
|
|
1605
|
+
response_data = self.api_client.call_api(
|
|
1606
|
+
*_param,
|
|
1607
|
+
_request_timeout=_request_timeout
|
|
1608
|
+
)
|
|
1609
|
+
response_data.read()
|
|
1610
|
+
return self.api_client.response_deserialize(
|
|
1611
|
+
response_data=response_data,
|
|
1612
|
+
response_types_map=_response_types_map,
|
|
1613
|
+
).data
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
@validate_call
|
|
1617
|
+
def sharepoint_connector_callback_with_http_info(
|
|
1618
|
+
self,
|
|
1619
|
+
code: Optional[StrictStr] = None,
|
|
1620
|
+
state: Optional[StrictStr] = None,
|
|
1621
|
+
error: Optional[StrictStr] = None,
|
|
1622
|
+
_request_timeout: Union[
|
|
1623
|
+
None,
|
|
1624
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1625
|
+
Tuple[
|
|
1626
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1627
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1628
|
+
]
|
|
1629
|
+
] = None,
|
|
1630
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1631
|
+
_content_type: Optional[StrictStr] = None,
|
|
1632
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1633
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1634
|
+
) -> ApiResponse[object]:
|
|
1635
|
+
"""Sharepoint Callback
|
|
1636
|
+
|
|
1637
|
+
Callback for SharePoint Connector
|
|
1638
|
+
|
|
1639
|
+
:param code:
|
|
1640
|
+
:type code: str
|
|
1641
|
+
:param state:
|
|
1642
|
+
:type state: str
|
|
1643
|
+
:param error:
|
|
1644
|
+
:type error: str
|
|
1645
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1646
|
+
number provided, it will be total request
|
|
1647
|
+
timeout. It can also be a pair (tuple) of
|
|
1648
|
+
(connection, read) timeouts.
|
|
1649
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1650
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1651
|
+
request; this effectively ignores the
|
|
1652
|
+
authentication in the spec for a single request.
|
|
1653
|
+
:type _request_auth: dict, optional
|
|
1654
|
+
:param _content_type: force content-type for the request.
|
|
1655
|
+
:type _content_type: str, Optional
|
|
1656
|
+
:param _headers: set to override the headers for a single
|
|
1657
|
+
request; this effectively ignores the headers
|
|
1658
|
+
in the spec for a single request.
|
|
1659
|
+
:type _headers: dict, optional
|
|
1660
|
+
:param _host_index: set to override the host_index for a single
|
|
1661
|
+
request; this effectively ignores the host_index
|
|
1662
|
+
in the spec for a single request.
|
|
1663
|
+
:type _host_index: int, optional
|
|
1664
|
+
:return: Returns the result object.
|
|
1665
|
+
""" # noqa: E501
|
|
1666
|
+
|
|
1667
|
+
_param = self._sharepoint_connector_callback_serialize(
|
|
1668
|
+
code=code,
|
|
1669
|
+
state=state,
|
|
1670
|
+
error=error,
|
|
1671
|
+
_request_auth=_request_auth,
|
|
1672
|
+
_content_type=_content_type,
|
|
1673
|
+
_headers=_headers,
|
|
1674
|
+
_host_index=_host_index
|
|
1675
|
+
)
|
|
1676
|
+
|
|
1677
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1678
|
+
'200': "object",
|
|
1679
|
+
'422': "HTTPValidationError",
|
|
1680
|
+
}
|
|
1681
|
+
response_data = self.api_client.call_api(
|
|
1682
|
+
*_param,
|
|
1683
|
+
_request_timeout=_request_timeout
|
|
1684
|
+
)
|
|
1685
|
+
response_data.read()
|
|
1686
|
+
return self.api_client.response_deserialize(
|
|
1687
|
+
response_data=response_data,
|
|
1688
|
+
response_types_map=_response_types_map,
|
|
1689
|
+
)
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
@validate_call
|
|
1693
|
+
def sharepoint_connector_callback_without_preload_content(
|
|
1694
|
+
self,
|
|
1695
|
+
code: Optional[StrictStr] = None,
|
|
1696
|
+
state: Optional[StrictStr] = None,
|
|
1697
|
+
error: Optional[StrictStr] = None,
|
|
1698
|
+
_request_timeout: Union[
|
|
1699
|
+
None,
|
|
1700
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1701
|
+
Tuple[
|
|
1702
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1703
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1704
|
+
]
|
|
1705
|
+
] = None,
|
|
1706
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1707
|
+
_content_type: Optional[StrictStr] = None,
|
|
1708
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1709
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1710
|
+
) -> RESTResponseType:
|
|
1711
|
+
"""Sharepoint Callback
|
|
1712
|
+
|
|
1713
|
+
Callback for SharePoint Connector
|
|
1714
|
+
|
|
1715
|
+
:param code:
|
|
1716
|
+
:type code: str
|
|
1717
|
+
:param state:
|
|
1718
|
+
:type state: str
|
|
1719
|
+
:param error:
|
|
1720
|
+
:type error: str
|
|
1721
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1722
|
+
number provided, it will be total request
|
|
1723
|
+
timeout. It can also be a pair (tuple) of
|
|
1724
|
+
(connection, read) timeouts.
|
|
1725
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1726
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1727
|
+
request; this effectively ignores the
|
|
1728
|
+
authentication in the spec for a single request.
|
|
1729
|
+
:type _request_auth: dict, optional
|
|
1730
|
+
:param _content_type: force content-type for the request.
|
|
1731
|
+
:type _content_type: str, Optional
|
|
1732
|
+
:param _headers: set to override the headers for a single
|
|
1733
|
+
request; this effectively ignores the headers
|
|
1734
|
+
in the spec for a single request.
|
|
1735
|
+
:type _headers: dict, optional
|
|
1736
|
+
:param _host_index: set to override the host_index for a single
|
|
1737
|
+
request; this effectively ignores the host_index
|
|
1738
|
+
in the spec for a single request.
|
|
1739
|
+
:type _host_index: int, optional
|
|
1740
|
+
:return: Returns the result object.
|
|
1741
|
+
""" # noqa: E501
|
|
1742
|
+
|
|
1743
|
+
_param = self._sharepoint_connector_callback_serialize(
|
|
1744
|
+
code=code,
|
|
1745
|
+
state=state,
|
|
1746
|
+
error=error,
|
|
1747
|
+
_request_auth=_request_auth,
|
|
1748
|
+
_content_type=_content_type,
|
|
1749
|
+
_headers=_headers,
|
|
1750
|
+
_host_index=_host_index
|
|
1751
|
+
)
|
|
1752
|
+
|
|
1753
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1754
|
+
'200': "object",
|
|
1755
|
+
'422': "HTTPValidationError",
|
|
1756
|
+
}
|
|
1757
|
+
response_data = self.api_client.call_api(
|
|
1758
|
+
*_param,
|
|
1759
|
+
_request_timeout=_request_timeout
|
|
1760
|
+
)
|
|
1761
|
+
return response_data.response
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
def _sharepoint_connector_callback_serialize(
|
|
1765
|
+
self,
|
|
1766
|
+
code,
|
|
1767
|
+
state,
|
|
1768
|
+
error,
|
|
1769
|
+
_request_auth,
|
|
1770
|
+
_content_type,
|
|
1771
|
+
_headers,
|
|
1772
|
+
_host_index,
|
|
1773
|
+
) -> RequestSerialized:
|
|
1774
|
+
|
|
1775
|
+
_host = None
|
|
1776
|
+
|
|
1777
|
+
_collection_formats: Dict[str, str] = {
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
_path_params: Dict[str, str] = {}
|
|
1781
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1782
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1783
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1784
|
+
_files: Dict[
|
|
1785
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1786
|
+
] = {}
|
|
1787
|
+
_body_params: Optional[bytes] = None
|
|
1788
|
+
|
|
1789
|
+
# process the path parameters
|
|
1790
|
+
# process the query parameters
|
|
1791
|
+
if code is not None:
|
|
1792
|
+
|
|
1793
|
+
_query_params.append(('code', code))
|
|
1794
|
+
|
|
1795
|
+
if state is not None:
|
|
1796
|
+
|
|
1797
|
+
_query_params.append(('state', state))
|
|
1798
|
+
|
|
1799
|
+
if error is not None:
|
|
1800
|
+
|
|
1801
|
+
_query_params.append(('error', error))
|
|
1802
|
+
|
|
1803
|
+
# process the header parameters
|
|
1804
|
+
# process the form parameters
|
|
1805
|
+
# process the body parameter
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
# set the HTTP header `Accept`
|
|
1809
|
+
if 'Accept' not in _header_params:
|
|
1810
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1811
|
+
[
|
|
1812
|
+
'application/json'
|
|
1813
|
+
]
|
|
1814
|
+
)
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
# authentication setting
|
|
1818
|
+
_auth_settings: List[str] = [
|
|
1819
|
+
]
|
|
1820
|
+
|
|
1821
|
+
return self.api_client.param_serialize(
|
|
1822
|
+
method='GET',
|
|
1823
|
+
resource_path='/backend/api/connectors/sharepoint/callback',
|
|
1824
|
+
path_params=_path_params,
|
|
1825
|
+
query_params=_query_params,
|
|
1826
|
+
header_params=_header_params,
|
|
1827
|
+
body=_body_params,
|
|
1828
|
+
post_params=_form_params,
|
|
1829
|
+
files=_files,
|
|
1830
|
+
auth_settings=_auth_settings,
|
|
1831
|
+
collection_formats=_collection_formats,
|
|
1832
|
+
_host=_host,
|
|
1833
|
+
_request_auth=_request_auth
|
|
1834
|
+
)
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
@validate_call
|
|
1840
|
+
def sharepoint_connector_create(
|
|
1841
|
+
self,
|
|
1842
|
+
create_sharepoint_connector_request: CreateSharepointConnectorRequest,
|
|
1843
|
+
_request_timeout: Union[
|
|
1844
|
+
None,
|
|
1845
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1846
|
+
Tuple[
|
|
1847
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1848
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1849
|
+
]
|
|
1850
|
+
] = None,
|
|
1851
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1852
|
+
_content_type: Optional[StrictStr] = None,
|
|
1853
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1854
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1855
|
+
) -> CreateConnectorResponse:
|
|
1856
|
+
"""Create Sharepoint Connector
|
|
1857
|
+
|
|
1858
|
+
Create SharePoint Connector
|
|
1859
|
+
|
|
1860
|
+
:param create_sharepoint_connector_request: (required)
|
|
1861
|
+
:type create_sharepoint_connector_request: CreateSharepointConnectorRequest
|
|
1862
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1863
|
+
number provided, it will be total request
|
|
1864
|
+
timeout. It can also be a pair (tuple) of
|
|
1865
|
+
(connection, read) timeouts.
|
|
1866
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1867
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1868
|
+
request; this effectively ignores the
|
|
1869
|
+
authentication in the spec for a single request.
|
|
1870
|
+
:type _request_auth: dict, optional
|
|
1871
|
+
:param _content_type: force content-type for the request.
|
|
1872
|
+
:type _content_type: str, Optional
|
|
1873
|
+
:param _headers: set to override the headers for a single
|
|
1874
|
+
request; this effectively ignores the headers
|
|
1875
|
+
in the spec for a single request.
|
|
1876
|
+
:type _headers: dict, optional
|
|
1877
|
+
:param _host_index: set to override the host_index for a single
|
|
1878
|
+
request; this effectively ignores the host_index
|
|
1879
|
+
in the spec for a single request.
|
|
1880
|
+
:type _host_index: int, optional
|
|
1881
|
+
:return: Returns the result object.
|
|
1882
|
+
""" # noqa: E501
|
|
1883
|
+
|
|
1884
|
+
_param = self._sharepoint_connector_create_serialize(
|
|
1885
|
+
create_sharepoint_connector_request=create_sharepoint_connector_request,
|
|
1886
|
+
_request_auth=_request_auth,
|
|
1887
|
+
_content_type=_content_type,
|
|
1888
|
+
_headers=_headers,
|
|
1889
|
+
_host_index=_host_index
|
|
1890
|
+
)
|
|
1891
|
+
|
|
1892
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1893
|
+
'200': "CreateConnectorResponse",
|
|
1894
|
+
'422': "HTTPValidationError",
|
|
1895
|
+
}
|
|
1896
|
+
response_data = self.api_client.call_api(
|
|
1897
|
+
*_param,
|
|
1898
|
+
_request_timeout=_request_timeout
|
|
1899
|
+
)
|
|
1900
|
+
response_data.read()
|
|
1901
|
+
return self.api_client.response_deserialize(
|
|
1902
|
+
response_data=response_data,
|
|
1903
|
+
response_types_map=_response_types_map,
|
|
1904
|
+
).data
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
@validate_call
|
|
1908
|
+
def sharepoint_connector_create_with_http_info(
|
|
1909
|
+
self,
|
|
1910
|
+
create_sharepoint_connector_request: CreateSharepointConnectorRequest,
|
|
1911
|
+
_request_timeout: Union[
|
|
1912
|
+
None,
|
|
1913
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1914
|
+
Tuple[
|
|
1915
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1916
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1917
|
+
]
|
|
1918
|
+
] = None,
|
|
1919
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1920
|
+
_content_type: Optional[StrictStr] = None,
|
|
1921
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1922
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1923
|
+
) -> ApiResponse[CreateConnectorResponse]:
|
|
1924
|
+
"""Create Sharepoint Connector
|
|
1925
|
+
|
|
1926
|
+
Create SharePoint Connector
|
|
1927
|
+
|
|
1928
|
+
:param create_sharepoint_connector_request: (required)
|
|
1929
|
+
:type create_sharepoint_connector_request: CreateSharepointConnectorRequest
|
|
1930
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1931
|
+
number provided, it will be total request
|
|
1932
|
+
timeout. It can also be a pair (tuple) of
|
|
1933
|
+
(connection, read) timeouts.
|
|
1934
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1935
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1936
|
+
request; this effectively ignores the
|
|
1937
|
+
authentication in the spec for a single request.
|
|
1938
|
+
:type _request_auth: dict, optional
|
|
1939
|
+
:param _content_type: force content-type for the request.
|
|
1940
|
+
:type _content_type: str, Optional
|
|
1941
|
+
:param _headers: set to override the headers for a single
|
|
1942
|
+
request; this effectively ignores the headers
|
|
1943
|
+
in the spec for a single request.
|
|
1944
|
+
:type _headers: dict, optional
|
|
1945
|
+
:param _host_index: set to override the host_index for a single
|
|
1946
|
+
request; this effectively ignores the host_index
|
|
1947
|
+
in the spec for a single request.
|
|
1948
|
+
:type _host_index: int, optional
|
|
1949
|
+
:return: Returns the result object.
|
|
1950
|
+
""" # noqa: E501
|
|
1951
|
+
|
|
1952
|
+
_param = self._sharepoint_connector_create_serialize(
|
|
1953
|
+
create_sharepoint_connector_request=create_sharepoint_connector_request,
|
|
1954
|
+
_request_auth=_request_auth,
|
|
1955
|
+
_content_type=_content_type,
|
|
1956
|
+
_headers=_headers,
|
|
1957
|
+
_host_index=_host_index
|
|
1958
|
+
)
|
|
1959
|
+
|
|
1960
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1961
|
+
'200': "CreateConnectorResponse",
|
|
1962
|
+
'422': "HTTPValidationError",
|
|
1963
|
+
}
|
|
1964
|
+
response_data = self.api_client.call_api(
|
|
1965
|
+
*_param,
|
|
1966
|
+
_request_timeout=_request_timeout
|
|
1967
|
+
)
|
|
1968
|
+
response_data.read()
|
|
1969
|
+
return self.api_client.response_deserialize(
|
|
1970
|
+
response_data=response_data,
|
|
1971
|
+
response_types_map=_response_types_map,
|
|
1972
|
+
)
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
@validate_call
|
|
1976
|
+
def sharepoint_connector_create_without_preload_content(
|
|
1977
|
+
self,
|
|
1978
|
+
create_sharepoint_connector_request: CreateSharepointConnectorRequest,
|
|
1979
|
+
_request_timeout: Union[
|
|
1980
|
+
None,
|
|
1981
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1982
|
+
Tuple[
|
|
1983
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1984
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1985
|
+
]
|
|
1986
|
+
] = None,
|
|
1987
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1988
|
+
_content_type: Optional[StrictStr] = None,
|
|
1989
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1990
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1991
|
+
) -> RESTResponseType:
|
|
1992
|
+
"""Create Sharepoint Connector
|
|
1993
|
+
|
|
1994
|
+
Create SharePoint Connector
|
|
1995
|
+
|
|
1996
|
+
:param create_sharepoint_connector_request: (required)
|
|
1997
|
+
:type create_sharepoint_connector_request: CreateSharepointConnectorRequest
|
|
1998
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1999
|
+
number provided, it will be total request
|
|
2000
|
+
timeout. It can also be a pair (tuple) of
|
|
2001
|
+
(connection, read) timeouts.
|
|
2002
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2003
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2004
|
+
request; this effectively ignores the
|
|
2005
|
+
authentication in the spec for a single request.
|
|
2006
|
+
:type _request_auth: dict, optional
|
|
2007
|
+
:param _content_type: force content-type for the request.
|
|
2008
|
+
:type _content_type: str, Optional
|
|
2009
|
+
:param _headers: set to override the headers for a single
|
|
2010
|
+
request; this effectively ignores the headers
|
|
2011
|
+
in the spec for a single request.
|
|
2012
|
+
:type _headers: dict, optional
|
|
2013
|
+
:param _host_index: set to override the host_index for a single
|
|
2014
|
+
request; this effectively ignores the host_index
|
|
2015
|
+
in the spec for a single request.
|
|
2016
|
+
:type _host_index: int, optional
|
|
2017
|
+
:return: Returns the result object.
|
|
2018
|
+
""" # noqa: E501
|
|
2019
|
+
|
|
2020
|
+
_param = self._sharepoint_connector_create_serialize(
|
|
2021
|
+
create_sharepoint_connector_request=create_sharepoint_connector_request,
|
|
2022
|
+
_request_auth=_request_auth,
|
|
2023
|
+
_content_type=_content_type,
|
|
2024
|
+
_headers=_headers,
|
|
2025
|
+
_host_index=_host_index
|
|
2026
|
+
)
|
|
2027
|
+
|
|
2028
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2029
|
+
'200': "CreateConnectorResponse",
|
|
2030
|
+
'422': "HTTPValidationError",
|
|
2031
|
+
}
|
|
2032
|
+
response_data = self.api_client.call_api(
|
|
2033
|
+
*_param,
|
|
2034
|
+
_request_timeout=_request_timeout
|
|
2035
|
+
)
|
|
2036
|
+
return response_data.response
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
def _sharepoint_connector_create_serialize(
|
|
2040
|
+
self,
|
|
2041
|
+
create_sharepoint_connector_request,
|
|
2042
|
+
_request_auth,
|
|
2043
|
+
_content_type,
|
|
2044
|
+
_headers,
|
|
2045
|
+
_host_index,
|
|
2046
|
+
) -> RequestSerialized:
|
|
2047
|
+
|
|
2048
|
+
_host = None
|
|
2049
|
+
|
|
2050
|
+
_collection_formats: Dict[str, str] = {
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
_path_params: Dict[str, str] = {}
|
|
2054
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2055
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2056
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2057
|
+
_files: Dict[
|
|
2058
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2059
|
+
] = {}
|
|
2060
|
+
_body_params: Optional[bytes] = None
|
|
2061
|
+
|
|
2062
|
+
# process the path parameters
|
|
2063
|
+
# process the query parameters
|
|
2064
|
+
# process the header parameters
|
|
2065
|
+
# process the form parameters
|
|
2066
|
+
# process the body parameter
|
|
2067
|
+
if create_sharepoint_connector_request is not None:
|
|
2068
|
+
_body_params = create_sharepoint_connector_request
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
# set the HTTP header `Accept`
|
|
2072
|
+
if 'Accept' not in _header_params:
|
|
2073
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2074
|
+
[
|
|
2075
|
+
'application/json'
|
|
2076
|
+
]
|
|
2077
|
+
)
|
|
2078
|
+
|
|
2079
|
+
# set the HTTP header `Content-Type`
|
|
2080
|
+
if _content_type:
|
|
2081
|
+
_header_params['Content-Type'] = _content_type
|
|
2082
|
+
else:
|
|
2083
|
+
_default_content_type = (
|
|
2084
|
+
self.api_client.select_header_content_type(
|
|
2085
|
+
[
|
|
2086
|
+
'application/json'
|
|
2087
|
+
]
|
|
2088
|
+
)
|
|
2089
|
+
)
|
|
2090
|
+
if _default_content_type is not None:
|
|
2091
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2092
|
+
|
|
2093
|
+
# authentication setting
|
|
2094
|
+
_auth_settings: List[str] = [
|
|
2095
|
+
'QAnswer-Api-Key',
|
|
2096
|
+
'Bearer token'
|
|
2097
|
+
]
|
|
2098
|
+
|
|
2099
|
+
return self.api_client.param_serialize(
|
|
2100
|
+
method='POST',
|
|
2101
|
+
resource_path='/backend/api/connectors/sharepoint/create',
|
|
2102
|
+
path_params=_path_params,
|
|
2103
|
+
query_params=_query_params,
|
|
2104
|
+
header_params=_header_params,
|
|
2105
|
+
body=_body_params,
|
|
2106
|
+
post_params=_form_params,
|
|
2107
|
+
files=_files,
|
|
2108
|
+
auth_settings=_auth_settings,
|
|
2109
|
+
collection_formats=_collection_formats,
|
|
2110
|
+
_host=_host,
|
|
2111
|
+
_request_auth=_request_auth
|
|
2112
|
+
)
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
@validate_call
|
|
2118
|
+
def sharepoint_connector_info(
|
|
2119
|
+
self,
|
|
2120
|
+
username: StrictStr,
|
|
2121
|
+
dataset: StrictStr,
|
|
2122
|
+
connector_id: Optional[StrictInt] = None,
|
|
2123
|
+
_request_timeout: Union[
|
|
2124
|
+
None,
|
|
2125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2126
|
+
Tuple[
|
|
2127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2128
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2129
|
+
]
|
|
2130
|
+
] = None,
|
|
2131
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2132
|
+
_content_type: Optional[StrictStr] = None,
|
|
2133
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2134
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2135
|
+
) -> object:
|
|
2136
|
+
"""Get Sharepoint Connector Info
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
:param username: (required)
|
|
2140
|
+
:type username: str
|
|
2141
|
+
:param dataset: (required)
|
|
2142
|
+
:type dataset: str
|
|
2143
|
+
:param connector_id:
|
|
2144
|
+
:type connector_id: int
|
|
2145
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2146
|
+
number provided, it will be total request
|
|
2147
|
+
timeout. It can also be a pair (tuple) of
|
|
2148
|
+
(connection, read) timeouts.
|
|
2149
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2150
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2151
|
+
request; this effectively ignores the
|
|
2152
|
+
authentication in the spec for a single request.
|
|
2153
|
+
:type _request_auth: dict, optional
|
|
2154
|
+
:param _content_type: force content-type for the request.
|
|
2155
|
+
:type _content_type: str, Optional
|
|
2156
|
+
:param _headers: set to override the headers for a single
|
|
2157
|
+
request; this effectively ignores the headers
|
|
2158
|
+
in the spec for a single request.
|
|
2159
|
+
:type _headers: dict, optional
|
|
2160
|
+
:param _host_index: set to override the host_index for a single
|
|
2161
|
+
request; this effectively ignores the host_index
|
|
2162
|
+
in the spec for a single request.
|
|
2163
|
+
:type _host_index: int, optional
|
|
2164
|
+
:return: Returns the result object.
|
|
2165
|
+
""" # noqa: E501
|
|
2166
|
+
|
|
2167
|
+
_param = self._sharepoint_connector_info_serialize(
|
|
2168
|
+
username=username,
|
|
2169
|
+
dataset=dataset,
|
|
2170
|
+
connector_id=connector_id,
|
|
2171
|
+
_request_auth=_request_auth,
|
|
2172
|
+
_content_type=_content_type,
|
|
2173
|
+
_headers=_headers,
|
|
2174
|
+
_host_index=_host_index
|
|
2175
|
+
)
|
|
2176
|
+
|
|
2177
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2178
|
+
'200': "object",
|
|
2179
|
+
'422': "HTTPValidationError",
|
|
2180
|
+
}
|
|
2181
|
+
response_data = self.api_client.call_api(
|
|
2182
|
+
*_param,
|
|
2183
|
+
_request_timeout=_request_timeout
|
|
2184
|
+
)
|
|
2185
|
+
response_data.read()
|
|
2186
|
+
return self.api_client.response_deserialize(
|
|
2187
|
+
response_data=response_data,
|
|
2188
|
+
response_types_map=_response_types_map,
|
|
2189
|
+
).data
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
@validate_call
|
|
2193
|
+
def sharepoint_connector_info_with_http_info(
|
|
2194
|
+
self,
|
|
2195
|
+
username: StrictStr,
|
|
2196
|
+
dataset: StrictStr,
|
|
2197
|
+
connector_id: Optional[StrictInt] = None,
|
|
2198
|
+
_request_timeout: Union[
|
|
2199
|
+
None,
|
|
2200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2201
|
+
Tuple[
|
|
2202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2203
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2204
|
+
]
|
|
2205
|
+
] = None,
|
|
2206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2207
|
+
_content_type: Optional[StrictStr] = None,
|
|
2208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2210
|
+
) -> ApiResponse[object]:
|
|
2211
|
+
"""Get Sharepoint Connector Info
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
:param username: (required)
|
|
2215
|
+
:type username: str
|
|
2216
|
+
:param dataset: (required)
|
|
2217
|
+
:type dataset: str
|
|
2218
|
+
:param connector_id:
|
|
2219
|
+
:type connector_id: int
|
|
2220
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2221
|
+
number provided, it will be total request
|
|
2222
|
+
timeout. It can also be a pair (tuple) of
|
|
2223
|
+
(connection, read) timeouts.
|
|
2224
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2225
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2226
|
+
request; this effectively ignores the
|
|
2227
|
+
authentication in the spec for a single request.
|
|
2228
|
+
:type _request_auth: dict, optional
|
|
2229
|
+
:param _content_type: force content-type for the request.
|
|
2230
|
+
:type _content_type: str, Optional
|
|
2231
|
+
:param _headers: set to override the headers for a single
|
|
2232
|
+
request; this effectively ignores the headers
|
|
2233
|
+
in the spec for a single request.
|
|
2234
|
+
:type _headers: dict, optional
|
|
2235
|
+
:param _host_index: set to override the host_index for a single
|
|
2236
|
+
request; this effectively ignores the host_index
|
|
2237
|
+
in the spec for a single request.
|
|
2238
|
+
:type _host_index: int, optional
|
|
2239
|
+
:return: Returns the result object.
|
|
2240
|
+
""" # noqa: E501
|
|
2241
|
+
|
|
2242
|
+
_param = self._sharepoint_connector_info_serialize(
|
|
2243
|
+
username=username,
|
|
2244
|
+
dataset=dataset,
|
|
2245
|
+
connector_id=connector_id,
|
|
2246
|
+
_request_auth=_request_auth,
|
|
2247
|
+
_content_type=_content_type,
|
|
2248
|
+
_headers=_headers,
|
|
2249
|
+
_host_index=_host_index
|
|
2250
|
+
)
|
|
2251
|
+
|
|
2252
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2253
|
+
'200': "object",
|
|
2254
|
+
'422': "HTTPValidationError",
|
|
2255
|
+
}
|
|
2256
|
+
response_data = self.api_client.call_api(
|
|
2257
|
+
*_param,
|
|
2258
|
+
_request_timeout=_request_timeout
|
|
2259
|
+
)
|
|
2260
|
+
response_data.read()
|
|
2261
|
+
return self.api_client.response_deserialize(
|
|
2262
|
+
response_data=response_data,
|
|
2263
|
+
response_types_map=_response_types_map,
|
|
2264
|
+
)
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
@validate_call
|
|
2268
|
+
def sharepoint_connector_info_without_preload_content(
|
|
2269
|
+
self,
|
|
2270
|
+
username: StrictStr,
|
|
2271
|
+
dataset: StrictStr,
|
|
2272
|
+
connector_id: Optional[StrictInt] = None,
|
|
2273
|
+
_request_timeout: Union[
|
|
2274
|
+
None,
|
|
2275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2276
|
+
Tuple[
|
|
2277
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2278
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2279
|
+
]
|
|
2280
|
+
] = None,
|
|
2281
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2282
|
+
_content_type: Optional[StrictStr] = None,
|
|
2283
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2284
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2285
|
+
) -> RESTResponseType:
|
|
2286
|
+
"""Get Sharepoint Connector Info
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
:param username: (required)
|
|
2290
|
+
:type username: str
|
|
2291
|
+
:param dataset: (required)
|
|
2292
|
+
:type dataset: str
|
|
2293
|
+
:param connector_id:
|
|
2294
|
+
:type connector_id: int
|
|
2295
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2296
|
+
number provided, it will be total request
|
|
2297
|
+
timeout. It can also be a pair (tuple) of
|
|
2298
|
+
(connection, read) timeouts.
|
|
2299
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2300
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2301
|
+
request; this effectively ignores the
|
|
2302
|
+
authentication in the spec for a single request.
|
|
2303
|
+
:type _request_auth: dict, optional
|
|
2304
|
+
:param _content_type: force content-type for the request.
|
|
2305
|
+
:type _content_type: str, Optional
|
|
2306
|
+
:param _headers: set to override the headers for a single
|
|
2307
|
+
request; this effectively ignores the headers
|
|
2308
|
+
in the spec for a single request.
|
|
2309
|
+
:type _headers: dict, optional
|
|
2310
|
+
:param _host_index: set to override the host_index for a single
|
|
2311
|
+
request; this effectively ignores the host_index
|
|
2312
|
+
in the spec for a single request.
|
|
2313
|
+
:type _host_index: int, optional
|
|
2314
|
+
:return: Returns the result object.
|
|
2315
|
+
""" # noqa: E501
|
|
2316
|
+
|
|
2317
|
+
_param = self._sharepoint_connector_info_serialize(
|
|
2318
|
+
username=username,
|
|
2319
|
+
dataset=dataset,
|
|
2320
|
+
connector_id=connector_id,
|
|
2321
|
+
_request_auth=_request_auth,
|
|
2322
|
+
_content_type=_content_type,
|
|
2323
|
+
_headers=_headers,
|
|
2324
|
+
_host_index=_host_index
|
|
2325
|
+
)
|
|
2326
|
+
|
|
2327
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2328
|
+
'200': "object",
|
|
2329
|
+
'422': "HTTPValidationError",
|
|
2330
|
+
}
|
|
2331
|
+
response_data = self.api_client.call_api(
|
|
2332
|
+
*_param,
|
|
2333
|
+
_request_timeout=_request_timeout
|
|
2334
|
+
)
|
|
2335
|
+
return response_data.response
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
def _sharepoint_connector_info_serialize(
|
|
2339
|
+
self,
|
|
2340
|
+
username,
|
|
2341
|
+
dataset,
|
|
2342
|
+
connector_id,
|
|
2343
|
+
_request_auth,
|
|
2344
|
+
_content_type,
|
|
2345
|
+
_headers,
|
|
2346
|
+
_host_index,
|
|
2347
|
+
) -> RequestSerialized:
|
|
2348
|
+
|
|
2349
|
+
_host = None
|
|
2350
|
+
|
|
2351
|
+
_collection_formats: Dict[str, str] = {
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
_path_params: Dict[str, str] = {}
|
|
2355
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2356
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2357
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2358
|
+
_files: Dict[
|
|
2359
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2360
|
+
] = {}
|
|
2361
|
+
_body_params: Optional[bytes] = None
|
|
2362
|
+
|
|
2363
|
+
# process the path parameters
|
|
2364
|
+
# process the query parameters
|
|
2365
|
+
if username is not None:
|
|
2366
|
+
|
|
2367
|
+
_query_params.append(('username', username))
|
|
2368
|
+
|
|
2369
|
+
if dataset is not None:
|
|
2370
|
+
|
|
2371
|
+
_query_params.append(('dataset', dataset))
|
|
2372
|
+
|
|
2373
|
+
if connector_id is not None:
|
|
2374
|
+
|
|
2375
|
+
_query_params.append(('connectorId', connector_id))
|
|
2376
|
+
|
|
2377
|
+
# process the header parameters
|
|
2378
|
+
# process the form parameters
|
|
2379
|
+
# process the body parameter
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
# set the HTTP header `Accept`
|
|
2383
|
+
if 'Accept' not in _header_params:
|
|
2384
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2385
|
+
[
|
|
2386
|
+
'application/json'
|
|
2387
|
+
]
|
|
2388
|
+
)
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
# authentication setting
|
|
2392
|
+
_auth_settings: List[str] = [
|
|
2393
|
+
'QAnswer-Api-Key',
|
|
2394
|
+
'Bearer token'
|
|
2395
|
+
]
|
|
2396
|
+
|
|
2397
|
+
return self.api_client.param_serialize(
|
|
2398
|
+
method='GET',
|
|
2399
|
+
resource_path='/backend/api/connectors/sharepoint/info',
|
|
2400
|
+
path_params=_path_params,
|
|
2401
|
+
query_params=_query_params,
|
|
2402
|
+
header_params=_header_params,
|
|
2403
|
+
body=_body_params,
|
|
2404
|
+
post_params=_form_params,
|
|
2405
|
+
files=_files,
|
|
2406
|
+
auth_settings=_auth_settings,
|
|
2407
|
+
collection_formats=_collection_formats,
|
|
2408
|
+
_host=_host,
|
|
2409
|
+
_request_auth=_request_auth
|
|
2410
|
+
)
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
@validate_call
|
|
2416
|
+
def sharepoint_connector_list_files(
|
|
2417
|
+
self,
|
|
2418
|
+
username: StrictStr,
|
|
2419
|
+
dataset: StrictStr,
|
|
2420
|
+
connector_id: Optional[StrictInt] = None,
|
|
2421
|
+
site_id: Optional[StrictStr] = None,
|
|
2422
|
+
drive_id: Optional[StrictStr] = None,
|
|
2423
|
+
folder_id: Optional[StrictStr] = None,
|
|
2424
|
+
notebook_id: Optional[StrictStr] = None,
|
|
2425
|
+
page_size: Optional[Annotated[int, Field(le=999, strict=True, ge=1)]] = None,
|
|
2426
|
+
cursor: Optional[StrictStr] = None,
|
|
2427
|
+
_request_timeout: Union[
|
|
2428
|
+
None,
|
|
2429
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2430
|
+
Tuple[
|
|
2431
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2432
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2433
|
+
]
|
|
2434
|
+
] = None,
|
|
2435
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2436
|
+
_content_type: Optional[StrictStr] = None,
|
|
2437
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2438
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2439
|
+
) -> ListFilesConnectorResponse:
|
|
2440
|
+
"""List Sharepoint Sites
|
|
2441
|
+
|
|
2442
|
+
List SharePoint Sites
|
|
2443
|
+
|
|
2444
|
+
:param username: (required)
|
|
2445
|
+
:type username: str
|
|
2446
|
+
:param dataset: (required)
|
|
2447
|
+
:type dataset: str
|
|
2448
|
+
:param connector_id:
|
|
2449
|
+
:type connector_id: int
|
|
2450
|
+
:param site_id:
|
|
2451
|
+
:type site_id: str
|
|
2452
|
+
:param drive_id:
|
|
2453
|
+
:type drive_id: str
|
|
2454
|
+
:param folder_id:
|
|
2455
|
+
:type folder_id: str
|
|
2456
|
+
:param notebook_id:
|
|
2457
|
+
:type notebook_id: str
|
|
2458
|
+
:param page_size:
|
|
2459
|
+
:type page_size: int
|
|
2460
|
+
:param cursor:
|
|
2461
|
+
:type cursor: str
|
|
2462
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2463
|
+
number provided, it will be total request
|
|
2464
|
+
timeout. It can also be a pair (tuple) of
|
|
2465
|
+
(connection, read) timeouts.
|
|
2466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2468
|
+
request; this effectively ignores the
|
|
2469
|
+
authentication in the spec for a single request.
|
|
2470
|
+
:type _request_auth: dict, optional
|
|
2471
|
+
:param _content_type: force content-type for the request.
|
|
2472
|
+
:type _content_type: str, Optional
|
|
2473
|
+
:param _headers: set to override the headers for a single
|
|
2474
|
+
request; this effectively ignores the headers
|
|
2475
|
+
in the spec for a single request.
|
|
2476
|
+
:type _headers: dict, optional
|
|
2477
|
+
:param _host_index: set to override the host_index for a single
|
|
2478
|
+
request; this effectively ignores the host_index
|
|
2479
|
+
in the spec for a single request.
|
|
2480
|
+
:type _host_index: int, optional
|
|
2481
|
+
:return: Returns the result object.
|
|
2482
|
+
""" # noqa: E501
|
|
2483
|
+
|
|
2484
|
+
_param = self._sharepoint_connector_list_files_serialize(
|
|
2485
|
+
username=username,
|
|
2486
|
+
dataset=dataset,
|
|
2487
|
+
connector_id=connector_id,
|
|
2488
|
+
site_id=site_id,
|
|
2489
|
+
drive_id=drive_id,
|
|
2490
|
+
folder_id=folder_id,
|
|
2491
|
+
notebook_id=notebook_id,
|
|
2492
|
+
page_size=page_size,
|
|
2493
|
+
cursor=cursor,
|
|
2494
|
+
_request_auth=_request_auth,
|
|
2495
|
+
_content_type=_content_type,
|
|
2496
|
+
_headers=_headers,
|
|
2497
|
+
_host_index=_host_index
|
|
2498
|
+
)
|
|
2499
|
+
|
|
2500
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2501
|
+
'200': "ListFilesConnectorResponse",
|
|
2502
|
+
'422': "HTTPValidationError",
|
|
2503
|
+
}
|
|
2504
|
+
response_data = self.api_client.call_api(
|
|
2505
|
+
*_param,
|
|
2506
|
+
_request_timeout=_request_timeout
|
|
2507
|
+
)
|
|
2508
|
+
response_data.read()
|
|
2509
|
+
return self.api_client.response_deserialize(
|
|
2510
|
+
response_data=response_data,
|
|
2511
|
+
response_types_map=_response_types_map,
|
|
2512
|
+
).data
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
@validate_call
|
|
2516
|
+
def sharepoint_connector_list_files_with_http_info(
|
|
2517
|
+
self,
|
|
2518
|
+
username: StrictStr,
|
|
2519
|
+
dataset: StrictStr,
|
|
2520
|
+
connector_id: Optional[StrictInt] = None,
|
|
2521
|
+
site_id: Optional[StrictStr] = None,
|
|
2522
|
+
drive_id: Optional[StrictStr] = None,
|
|
2523
|
+
folder_id: Optional[StrictStr] = None,
|
|
2524
|
+
notebook_id: Optional[StrictStr] = None,
|
|
2525
|
+
page_size: Optional[Annotated[int, Field(le=999, strict=True, ge=1)]] = None,
|
|
2526
|
+
cursor: Optional[StrictStr] = None,
|
|
2527
|
+
_request_timeout: Union[
|
|
2528
|
+
None,
|
|
2529
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2530
|
+
Tuple[
|
|
2531
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2532
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2533
|
+
]
|
|
2534
|
+
] = None,
|
|
2535
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2536
|
+
_content_type: Optional[StrictStr] = None,
|
|
2537
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2538
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2539
|
+
) -> ApiResponse[ListFilesConnectorResponse]:
|
|
2540
|
+
"""List Sharepoint Sites
|
|
2541
|
+
|
|
2542
|
+
List SharePoint Sites
|
|
2543
|
+
|
|
2544
|
+
:param username: (required)
|
|
2545
|
+
:type username: str
|
|
2546
|
+
:param dataset: (required)
|
|
2547
|
+
:type dataset: str
|
|
2548
|
+
:param connector_id:
|
|
2549
|
+
:type connector_id: int
|
|
2550
|
+
:param site_id:
|
|
2551
|
+
:type site_id: str
|
|
2552
|
+
:param drive_id:
|
|
2553
|
+
:type drive_id: str
|
|
2554
|
+
:param folder_id:
|
|
2555
|
+
:type folder_id: str
|
|
2556
|
+
:param notebook_id:
|
|
2557
|
+
:type notebook_id: str
|
|
2558
|
+
:param page_size:
|
|
2559
|
+
:type page_size: int
|
|
2560
|
+
:param cursor:
|
|
2561
|
+
:type cursor: str
|
|
2562
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2563
|
+
number provided, it will be total request
|
|
2564
|
+
timeout. It can also be a pair (tuple) of
|
|
2565
|
+
(connection, read) timeouts.
|
|
2566
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2567
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2568
|
+
request; this effectively ignores the
|
|
2569
|
+
authentication in the spec for a single request.
|
|
2570
|
+
:type _request_auth: dict, optional
|
|
2571
|
+
:param _content_type: force content-type for the request.
|
|
2572
|
+
:type _content_type: str, Optional
|
|
2573
|
+
:param _headers: set to override the headers for a single
|
|
2574
|
+
request; this effectively ignores the headers
|
|
2575
|
+
in the spec for a single request.
|
|
2576
|
+
:type _headers: dict, optional
|
|
2577
|
+
:param _host_index: set to override the host_index for a single
|
|
2578
|
+
request; this effectively ignores the host_index
|
|
2579
|
+
in the spec for a single request.
|
|
2580
|
+
:type _host_index: int, optional
|
|
2581
|
+
:return: Returns the result object.
|
|
2582
|
+
""" # noqa: E501
|
|
2583
|
+
|
|
2584
|
+
_param = self._sharepoint_connector_list_files_serialize(
|
|
2585
|
+
username=username,
|
|
2586
|
+
dataset=dataset,
|
|
2587
|
+
connector_id=connector_id,
|
|
2588
|
+
site_id=site_id,
|
|
2589
|
+
drive_id=drive_id,
|
|
2590
|
+
folder_id=folder_id,
|
|
2591
|
+
notebook_id=notebook_id,
|
|
2592
|
+
page_size=page_size,
|
|
2593
|
+
cursor=cursor,
|
|
2594
|
+
_request_auth=_request_auth,
|
|
2595
|
+
_content_type=_content_type,
|
|
2596
|
+
_headers=_headers,
|
|
2597
|
+
_host_index=_host_index
|
|
2598
|
+
)
|
|
2599
|
+
|
|
2600
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2601
|
+
'200': "ListFilesConnectorResponse",
|
|
2602
|
+
'422': "HTTPValidationError",
|
|
2603
|
+
}
|
|
2604
|
+
response_data = self.api_client.call_api(
|
|
2605
|
+
*_param,
|
|
2606
|
+
_request_timeout=_request_timeout
|
|
2607
|
+
)
|
|
2608
|
+
response_data.read()
|
|
2609
|
+
return self.api_client.response_deserialize(
|
|
2610
|
+
response_data=response_data,
|
|
2611
|
+
response_types_map=_response_types_map,
|
|
2612
|
+
)
|
|
2613
|
+
|
|
2614
|
+
|
|
2615
|
+
@validate_call
|
|
2616
|
+
def sharepoint_connector_list_files_without_preload_content(
|
|
2617
|
+
self,
|
|
2618
|
+
username: StrictStr,
|
|
2619
|
+
dataset: StrictStr,
|
|
2620
|
+
connector_id: Optional[StrictInt] = None,
|
|
2621
|
+
site_id: Optional[StrictStr] = None,
|
|
2622
|
+
drive_id: Optional[StrictStr] = None,
|
|
2623
|
+
folder_id: Optional[StrictStr] = None,
|
|
2624
|
+
notebook_id: Optional[StrictStr] = None,
|
|
2625
|
+
page_size: Optional[Annotated[int, Field(le=999, strict=True, ge=1)]] = None,
|
|
2626
|
+
cursor: Optional[StrictStr] = None,
|
|
2627
|
+
_request_timeout: Union[
|
|
2628
|
+
None,
|
|
2629
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2630
|
+
Tuple[
|
|
2631
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2632
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2633
|
+
]
|
|
2634
|
+
] = None,
|
|
2635
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2636
|
+
_content_type: Optional[StrictStr] = None,
|
|
2637
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2638
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2639
|
+
) -> RESTResponseType:
|
|
2640
|
+
"""List Sharepoint Sites
|
|
2641
|
+
|
|
2642
|
+
List SharePoint Sites
|
|
2643
|
+
|
|
2644
|
+
:param username: (required)
|
|
2645
|
+
:type username: str
|
|
2646
|
+
:param dataset: (required)
|
|
2647
|
+
:type dataset: str
|
|
2648
|
+
:param connector_id:
|
|
2649
|
+
:type connector_id: int
|
|
2650
|
+
:param site_id:
|
|
2651
|
+
:type site_id: str
|
|
2652
|
+
:param drive_id:
|
|
2653
|
+
:type drive_id: str
|
|
2654
|
+
:param folder_id:
|
|
2655
|
+
:type folder_id: str
|
|
2656
|
+
:param notebook_id:
|
|
2657
|
+
:type notebook_id: str
|
|
2658
|
+
:param page_size:
|
|
2659
|
+
:type page_size: int
|
|
2660
|
+
:param cursor:
|
|
2661
|
+
:type cursor: str
|
|
2662
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2663
|
+
number provided, it will be total request
|
|
2664
|
+
timeout. It can also be a pair (tuple) of
|
|
2665
|
+
(connection, read) timeouts.
|
|
2666
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2667
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2668
|
+
request; this effectively ignores the
|
|
2669
|
+
authentication in the spec for a single request.
|
|
2670
|
+
:type _request_auth: dict, optional
|
|
2671
|
+
:param _content_type: force content-type for the request.
|
|
2672
|
+
:type _content_type: str, Optional
|
|
2673
|
+
:param _headers: set to override the headers for a single
|
|
2674
|
+
request; this effectively ignores the headers
|
|
2675
|
+
in the spec for a single request.
|
|
2676
|
+
:type _headers: dict, optional
|
|
2677
|
+
:param _host_index: set to override the host_index for a single
|
|
2678
|
+
request; this effectively ignores the host_index
|
|
2679
|
+
in the spec for a single request.
|
|
2680
|
+
:type _host_index: int, optional
|
|
2681
|
+
:return: Returns the result object.
|
|
2682
|
+
""" # noqa: E501
|
|
2683
|
+
|
|
2684
|
+
_param = self._sharepoint_connector_list_files_serialize(
|
|
2685
|
+
username=username,
|
|
2686
|
+
dataset=dataset,
|
|
2687
|
+
connector_id=connector_id,
|
|
2688
|
+
site_id=site_id,
|
|
2689
|
+
drive_id=drive_id,
|
|
2690
|
+
folder_id=folder_id,
|
|
2691
|
+
notebook_id=notebook_id,
|
|
2692
|
+
page_size=page_size,
|
|
2693
|
+
cursor=cursor,
|
|
2694
|
+
_request_auth=_request_auth,
|
|
2695
|
+
_content_type=_content_type,
|
|
2696
|
+
_headers=_headers,
|
|
2697
|
+
_host_index=_host_index
|
|
2698
|
+
)
|
|
2699
|
+
|
|
2700
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2701
|
+
'200': "ListFilesConnectorResponse",
|
|
2702
|
+
'422': "HTTPValidationError",
|
|
2703
|
+
}
|
|
2704
|
+
response_data = self.api_client.call_api(
|
|
2705
|
+
*_param,
|
|
2706
|
+
_request_timeout=_request_timeout
|
|
2707
|
+
)
|
|
2708
|
+
return response_data.response
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
def _sharepoint_connector_list_files_serialize(
|
|
2712
|
+
self,
|
|
2713
|
+
username,
|
|
2714
|
+
dataset,
|
|
2715
|
+
connector_id,
|
|
2716
|
+
site_id,
|
|
2717
|
+
drive_id,
|
|
2718
|
+
folder_id,
|
|
2719
|
+
notebook_id,
|
|
2720
|
+
page_size,
|
|
2721
|
+
cursor,
|
|
2722
|
+
_request_auth,
|
|
2723
|
+
_content_type,
|
|
2724
|
+
_headers,
|
|
2725
|
+
_host_index,
|
|
2726
|
+
) -> RequestSerialized:
|
|
2727
|
+
|
|
2728
|
+
_host = None
|
|
2729
|
+
|
|
2730
|
+
_collection_formats: Dict[str, str] = {
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
_path_params: Dict[str, str] = {}
|
|
2734
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2735
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2736
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2737
|
+
_files: Dict[
|
|
2738
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2739
|
+
] = {}
|
|
2740
|
+
_body_params: Optional[bytes] = None
|
|
2741
|
+
|
|
2742
|
+
# process the path parameters
|
|
2743
|
+
# process the query parameters
|
|
2744
|
+
if username is not None:
|
|
2745
|
+
|
|
2746
|
+
_query_params.append(('username', username))
|
|
2747
|
+
|
|
2748
|
+
if dataset is not None:
|
|
2749
|
+
|
|
2750
|
+
_query_params.append(('dataset', dataset))
|
|
2751
|
+
|
|
2752
|
+
if connector_id is not None:
|
|
2753
|
+
|
|
2754
|
+
_query_params.append(('connectorId', connector_id))
|
|
2755
|
+
|
|
2756
|
+
if site_id is not None:
|
|
2757
|
+
|
|
2758
|
+
_query_params.append(('siteId', site_id))
|
|
2759
|
+
|
|
2760
|
+
if drive_id is not None:
|
|
2761
|
+
|
|
2762
|
+
_query_params.append(('driveId', drive_id))
|
|
2763
|
+
|
|
2764
|
+
if folder_id is not None:
|
|
2765
|
+
|
|
2766
|
+
_query_params.append(('folderId', folder_id))
|
|
2767
|
+
|
|
2768
|
+
if notebook_id is not None:
|
|
2769
|
+
|
|
2770
|
+
_query_params.append(('notebookId', notebook_id))
|
|
2771
|
+
|
|
2772
|
+
if page_size is not None:
|
|
2773
|
+
|
|
2774
|
+
_query_params.append(('pageSize', page_size))
|
|
2775
|
+
|
|
2776
|
+
if cursor is not None:
|
|
2777
|
+
|
|
2778
|
+
_query_params.append(('cursor', cursor))
|
|
2779
|
+
|
|
2780
|
+
# process the header parameters
|
|
2781
|
+
# process the form parameters
|
|
2782
|
+
# process the body parameter
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
# set the HTTP header `Accept`
|
|
2786
|
+
if 'Accept' not in _header_params:
|
|
2787
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2788
|
+
[
|
|
2789
|
+
'application/json'
|
|
2790
|
+
]
|
|
2791
|
+
)
|
|
2792
|
+
|
|
2793
|
+
|
|
2794
|
+
# authentication setting
|
|
2795
|
+
_auth_settings: List[str] = [
|
|
2796
|
+
'QAnswer-Api-Key',
|
|
2797
|
+
'Bearer token'
|
|
2798
|
+
]
|
|
2799
|
+
|
|
2800
|
+
return self.api_client.param_serialize(
|
|
2801
|
+
method='GET',
|
|
2802
|
+
resource_path='/backend/api/connectors/sharepoint/list',
|
|
2803
|
+
path_params=_path_params,
|
|
2804
|
+
query_params=_query_params,
|
|
2805
|
+
header_params=_header_params,
|
|
2806
|
+
body=_body_params,
|
|
2807
|
+
post_params=_form_params,
|
|
2808
|
+
files=_files,
|
|
2809
|
+
auth_settings=_auth_settings,
|
|
2810
|
+
collection_formats=_collection_formats,
|
|
2811
|
+
_host=_host,
|
|
2812
|
+
_request_auth=_request_auth
|
|
2813
|
+
)
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
@validate_call
|
|
2819
|
+
def sharepoint_search_files(
|
|
2820
|
+
self,
|
|
2821
|
+
username: StrictStr,
|
|
2822
|
+
dataset: StrictStr,
|
|
2823
|
+
query: StrictStr,
|
|
2824
|
+
connector_id: Optional[StrictInt] = None,
|
|
2825
|
+
site_id: Optional[StrictStr] = None,
|
|
2826
|
+
item_type: Optional[StrictStr] = None,
|
|
2827
|
+
_request_timeout: Union[
|
|
2828
|
+
None,
|
|
2829
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2830
|
+
Tuple[
|
|
2831
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2832
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2833
|
+
]
|
|
2834
|
+
] = None,
|
|
2835
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2836
|
+
_content_type: Optional[StrictStr] = None,
|
|
2837
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2838
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2839
|
+
) -> ListFilesConnectorResponse:
|
|
2840
|
+
"""Search Sharepoint Files
|
|
2841
|
+
|
|
2842
|
+
Search SharePoint files
|
|
2843
|
+
|
|
2844
|
+
:param username: (required)
|
|
2845
|
+
:type username: str
|
|
2846
|
+
:param dataset: (required)
|
|
2847
|
+
:type dataset: str
|
|
2848
|
+
:param query: (required)
|
|
2849
|
+
:type query: str
|
|
2850
|
+
:param connector_id:
|
|
2851
|
+
:type connector_id: int
|
|
2852
|
+
:param site_id:
|
|
2853
|
+
:type site_id: str
|
|
2854
|
+
:param item_type:
|
|
2855
|
+
:type item_type: str
|
|
2856
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2857
|
+
number provided, it will be total request
|
|
2858
|
+
timeout. It can also be a pair (tuple) of
|
|
2859
|
+
(connection, read) timeouts.
|
|
2860
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2861
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2862
|
+
request; this effectively ignores the
|
|
2863
|
+
authentication in the spec for a single request.
|
|
2864
|
+
:type _request_auth: dict, optional
|
|
2865
|
+
:param _content_type: force content-type for the request.
|
|
2866
|
+
:type _content_type: str, Optional
|
|
2867
|
+
:param _headers: set to override the headers for a single
|
|
2868
|
+
request; this effectively ignores the headers
|
|
2869
|
+
in the spec for a single request.
|
|
2870
|
+
:type _headers: dict, optional
|
|
2871
|
+
:param _host_index: set to override the host_index for a single
|
|
2872
|
+
request; this effectively ignores the host_index
|
|
2873
|
+
in the spec for a single request.
|
|
2874
|
+
:type _host_index: int, optional
|
|
2875
|
+
:return: Returns the result object.
|
|
2876
|
+
""" # noqa: E501
|
|
2877
|
+
|
|
2878
|
+
_param = self._sharepoint_search_files_serialize(
|
|
2879
|
+
username=username,
|
|
2880
|
+
dataset=dataset,
|
|
2881
|
+
query=query,
|
|
2882
|
+
connector_id=connector_id,
|
|
2883
|
+
site_id=site_id,
|
|
2884
|
+
item_type=item_type,
|
|
2885
|
+
_request_auth=_request_auth,
|
|
2886
|
+
_content_type=_content_type,
|
|
2887
|
+
_headers=_headers,
|
|
2888
|
+
_host_index=_host_index
|
|
2889
|
+
)
|
|
2890
|
+
|
|
2891
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2892
|
+
'200': "ListFilesConnectorResponse",
|
|
2893
|
+
'422': "HTTPValidationError",
|
|
2894
|
+
}
|
|
2895
|
+
response_data = self.api_client.call_api(
|
|
2896
|
+
*_param,
|
|
2897
|
+
_request_timeout=_request_timeout
|
|
2898
|
+
)
|
|
2899
|
+
response_data.read()
|
|
2900
|
+
return self.api_client.response_deserialize(
|
|
2901
|
+
response_data=response_data,
|
|
2902
|
+
response_types_map=_response_types_map,
|
|
2903
|
+
).data
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
@validate_call
|
|
2907
|
+
def sharepoint_search_files_with_http_info(
|
|
2908
|
+
self,
|
|
2909
|
+
username: StrictStr,
|
|
2910
|
+
dataset: StrictStr,
|
|
2911
|
+
query: StrictStr,
|
|
2912
|
+
connector_id: Optional[StrictInt] = None,
|
|
2913
|
+
site_id: Optional[StrictStr] = None,
|
|
2914
|
+
item_type: Optional[StrictStr] = None,
|
|
2915
|
+
_request_timeout: Union[
|
|
2916
|
+
None,
|
|
2917
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2918
|
+
Tuple[
|
|
2919
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2920
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2921
|
+
]
|
|
2922
|
+
] = None,
|
|
2923
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2924
|
+
_content_type: Optional[StrictStr] = None,
|
|
2925
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2926
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2927
|
+
) -> ApiResponse[ListFilesConnectorResponse]:
|
|
2928
|
+
"""Search Sharepoint Files
|
|
2929
|
+
|
|
2930
|
+
Search SharePoint files
|
|
2931
|
+
|
|
2932
|
+
:param username: (required)
|
|
2933
|
+
:type username: str
|
|
2934
|
+
:param dataset: (required)
|
|
2935
|
+
:type dataset: str
|
|
2936
|
+
:param query: (required)
|
|
2937
|
+
:type query: str
|
|
2938
|
+
:param connector_id:
|
|
2939
|
+
:type connector_id: int
|
|
2940
|
+
:param site_id:
|
|
2941
|
+
:type site_id: str
|
|
2942
|
+
:param item_type:
|
|
2943
|
+
:type item_type: str
|
|
2944
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2945
|
+
number provided, it will be total request
|
|
2946
|
+
timeout. It can also be a pair (tuple) of
|
|
2947
|
+
(connection, read) timeouts.
|
|
2948
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2949
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2950
|
+
request; this effectively ignores the
|
|
2951
|
+
authentication in the spec for a single request.
|
|
2952
|
+
:type _request_auth: dict, optional
|
|
2953
|
+
:param _content_type: force content-type for the request.
|
|
2954
|
+
:type _content_type: str, Optional
|
|
2955
|
+
:param _headers: set to override the headers for a single
|
|
2956
|
+
request; this effectively ignores the headers
|
|
2957
|
+
in the spec for a single request.
|
|
2958
|
+
:type _headers: dict, optional
|
|
2959
|
+
:param _host_index: set to override the host_index for a single
|
|
2960
|
+
request; this effectively ignores the host_index
|
|
2961
|
+
in the spec for a single request.
|
|
2962
|
+
:type _host_index: int, optional
|
|
2963
|
+
:return: Returns the result object.
|
|
2964
|
+
""" # noqa: E501
|
|
2965
|
+
|
|
2966
|
+
_param = self._sharepoint_search_files_serialize(
|
|
2967
|
+
username=username,
|
|
2968
|
+
dataset=dataset,
|
|
2969
|
+
query=query,
|
|
2970
|
+
connector_id=connector_id,
|
|
2971
|
+
site_id=site_id,
|
|
2972
|
+
item_type=item_type,
|
|
2973
|
+
_request_auth=_request_auth,
|
|
2974
|
+
_content_type=_content_type,
|
|
2975
|
+
_headers=_headers,
|
|
2976
|
+
_host_index=_host_index
|
|
2977
|
+
)
|
|
2978
|
+
|
|
2979
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2980
|
+
'200': "ListFilesConnectorResponse",
|
|
2981
|
+
'422': "HTTPValidationError",
|
|
2982
|
+
}
|
|
2983
|
+
response_data = self.api_client.call_api(
|
|
2984
|
+
*_param,
|
|
2985
|
+
_request_timeout=_request_timeout
|
|
2986
|
+
)
|
|
2987
|
+
response_data.read()
|
|
2988
|
+
return self.api_client.response_deserialize(
|
|
2989
|
+
response_data=response_data,
|
|
2990
|
+
response_types_map=_response_types_map,
|
|
2991
|
+
)
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
@validate_call
|
|
2995
|
+
def sharepoint_search_files_without_preload_content(
|
|
2996
|
+
self,
|
|
2997
|
+
username: StrictStr,
|
|
2998
|
+
dataset: StrictStr,
|
|
2999
|
+
query: StrictStr,
|
|
3000
|
+
connector_id: Optional[StrictInt] = None,
|
|
3001
|
+
site_id: Optional[StrictStr] = None,
|
|
3002
|
+
item_type: Optional[StrictStr] = None,
|
|
3003
|
+
_request_timeout: Union[
|
|
3004
|
+
None,
|
|
3005
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3006
|
+
Tuple[
|
|
3007
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3008
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3009
|
+
]
|
|
3010
|
+
] = None,
|
|
3011
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3012
|
+
_content_type: Optional[StrictStr] = None,
|
|
3013
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3014
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3015
|
+
) -> RESTResponseType:
|
|
3016
|
+
"""Search Sharepoint Files
|
|
3017
|
+
|
|
3018
|
+
Search SharePoint files
|
|
3019
|
+
|
|
3020
|
+
:param username: (required)
|
|
3021
|
+
:type username: str
|
|
3022
|
+
:param dataset: (required)
|
|
3023
|
+
:type dataset: str
|
|
3024
|
+
:param query: (required)
|
|
3025
|
+
:type query: str
|
|
3026
|
+
:param connector_id:
|
|
3027
|
+
:type connector_id: int
|
|
3028
|
+
:param site_id:
|
|
3029
|
+
:type site_id: str
|
|
3030
|
+
:param item_type:
|
|
3031
|
+
:type item_type: str
|
|
3032
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3033
|
+
number provided, it will be total request
|
|
3034
|
+
timeout. It can also be a pair (tuple) of
|
|
3035
|
+
(connection, read) timeouts.
|
|
3036
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3037
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3038
|
+
request; this effectively ignores the
|
|
3039
|
+
authentication in the spec for a single request.
|
|
3040
|
+
:type _request_auth: dict, optional
|
|
3041
|
+
:param _content_type: force content-type for the request.
|
|
3042
|
+
:type _content_type: str, Optional
|
|
3043
|
+
:param _headers: set to override the headers for a single
|
|
3044
|
+
request; this effectively ignores the headers
|
|
3045
|
+
in the spec for a single request.
|
|
3046
|
+
:type _headers: dict, optional
|
|
3047
|
+
:param _host_index: set to override the host_index for a single
|
|
3048
|
+
request; this effectively ignores the host_index
|
|
3049
|
+
in the spec for a single request.
|
|
3050
|
+
:type _host_index: int, optional
|
|
3051
|
+
:return: Returns the result object.
|
|
3052
|
+
""" # noqa: E501
|
|
3053
|
+
|
|
3054
|
+
_param = self._sharepoint_search_files_serialize(
|
|
3055
|
+
username=username,
|
|
3056
|
+
dataset=dataset,
|
|
3057
|
+
query=query,
|
|
3058
|
+
connector_id=connector_id,
|
|
3059
|
+
site_id=site_id,
|
|
3060
|
+
item_type=item_type,
|
|
3061
|
+
_request_auth=_request_auth,
|
|
3062
|
+
_content_type=_content_type,
|
|
3063
|
+
_headers=_headers,
|
|
3064
|
+
_host_index=_host_index
|
|
3065
|
+
)
|
|
3066
|
+
|
|
3067
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3068
|
+
'200': "ListFilesConnectorResponse",
|
|
3069
|
+
'422': "HTTPValidationError",
|
|
3070
|
+
}
|
|
3071
|
+
response_data = self.api_client.call_api(
|
|
3072
|
+
*_param,
|
|
3073
|
+
_request_timeout=_request_timeout
|
|
3074
|
+
)
|
|
3075
|
+
return response_data.response
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
def _sharepoint_search_files_serialize(
|
|
3079
|
+
self,
|
|
3080
|
+
username,
|
|
3081
|
+
dataset,
|
|
3082
|
+
query,
|
|
3083
|
+
connector_id,
|
|
3084
|
+
site_id,
|
|
3085
|
+
item_type,
|
|
3086
|
+
_request_auth,
|
|
3087
|
+
_content_type,
|
|
3088
|
+
_headers,
|
|
3089
|
+
_host_index,
|
|
3090
|
+
) -> RequestSerialized:
|
|
3091
|
+
|
|
3092
|
+
_host = None
|
|
3093
|
+
|
|
3094
|
+
_collection_formats: Dict[str, str] = {
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
_path_params: Dict[str, str] = {}
|
|
3098
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3099
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3100
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3101
|
+
_files: Dict[
|
|
3102
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3103
|
+
] = {}
|
|
3104
|
+
_body_params: Optional[bytes] = None
|
|
3105
|
+
|
|
3106
|
+
# process the path parameters
|
|
3107
|
+
# process the query parameters
|
|
3108
|
+
if username is not None:
|
|
3109
|
+
|
|
3110
|
+
_query_params.append(('username', username))
|
|
3111
|
+
|
|
3112
|
+
if dataset is not None:
|
|
3113
|
+
|
|
3114
|
+
_query_params.append(('dataset', dataset))
|
|
3115
|
+
|
|
3116
|
+
if connector_id is not None:
|
|
3117
|
+
|
|
3118
|
+
_query_params.append(('connectorId', connector_id))
|
|
3119
|
+
|
|
3120
|
+
if query is not None:
|
|
3121
|
+
|
|
3122
|
+
_query_params.append(('query', query))
|
|
3123
|
+
|
|
3124
|
+
if site_id is not None:
|
|
3125
|
+
|
|
3126
|
+
_query_params.append(('siteId', site_id))
|
|
3127
|
+
|
|
3128
|
+
if item_type is not None:
|
|
3129
|
+
|
|
3130
|
+
_query_params.append(('itemType', item_type))
|
|
3131
|
+
|
|
3132
|
+
# process the header parameters
|
|
3133
|
+
# process the form parameters
|
|
3134
|
+
# process the body parameter
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
# set the HTTP header `Accept`
|
|
3138
|
+
if 'Accept' not in _header_params:
|
|
3139
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3140
|
+
[
|
|
3141
|
+
'application/json'
|
|
3142
|
+
]
|
|
3143
|
+
)
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
# authentication setting
|
|
3147
|
+
_auth_settings: List[str] = [
|
|
3148
|
+
'QAnswer-Api-Key',
|
|
3149
|
+
'Bearer token'
|
|
3150
|
+
]
|
|
3151
|
+
|
|
3152
|
+
return self.api_client.param_serialize(
|
|
3153
|
+
method='GET',
|
|
3154
|
+
resource_path='/backend/api/connectors/sharepoint/search',
|
|
3155
|
+
path_params=_path_params,
|
|
3156
|
+
query_params=_query_params,
|
|
3157
|
+
header_params=_header_params,
|
|
3158
|
+
body=_body_params,
|
|
3159
|
+
post_params=_form_params,
|
|
3160
|
+
files=_files,
|
|
3161
|
+
auth_settings=_auth_settings,
|
|
3162
|
+
collection_formats=_collection_formats,
|
|
3163
|
+
_host=_host,
|
|
3164
|
+
_request_auth=_request_auth
|
|
3165
|
+
)
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
@validate_call
|
|
3171
|
+
def update_sharepoint_settings(
|
|
3172
|
+
self,
|
|
3173
|
+
share_point_connector_settings: SharePointConnectorSettings,
|
|
3174
|
+
_request_timeout: Union[
|
|
3175
|
+
None,
|
|
3176
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3177
|
+
Tuple[
|
|
3178
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3179
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3180
|
+
]
|
|
3181
|
+
] = None,
|
|
3182
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3183
|
+
_content_type: Optional[StrictStr] = None,
|
|
3184
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3185
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3186
|
+
) -> SharePointConnectorSettings:
|
|
3187
|
+
"""Update Sharepoint Settings
|
|
3188
|
+
|
|
3189
|
+
Update SharePoint connector settings.
|
|
3190
|
+
|
|
3191
|
+
:param share_point_connector_settings: (required)
|
|
3192
|
+
:type share_point_connector_settings: SharePointConnectorSettings
|
|
3193
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3194
|
+
number provided, it will be total request
|
|
3195
|
+
timeout. It can also be a pair (tuple) of
|
|
3196
|
+
(connection, read) timeouts.
|
|
3197
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3198
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3199
|
+
request; this effectively ignores the
|
|
3200
|
+
authentication in the spec for a single request.
|
|
3201
|
+
:type _request_auth: dict, optional
|
|
3202
|
+
:param _content_type: force content-type for the request.
|
|
3203
|
+
:type _content_type: str, Optional
|
|
3204
|
+
:param _headers: set to override the headers for a single
|
|
3205
|
+
request; this effectively ignores the headers
|
|
3206
|
+
in the spec for a single request.
|
|
3207
|
+
:type _headers: dict, optional
|
|
3208
|
+
:param _host_index: set to override the host_index for a single
|
|
3209
|
+
request; this effectively ignores the host_index
|
|
3210
|
+
in the spec for a single request.
|
|
3211
|
+
:type _host_index: int, optional
|
|
3212
|
+
:return: Returns the result object.
|
|
3213
|
+
""" # noqa: E501
|
|
3214
|
+
|
|
3215
|
+
_param = self._update_sharepoint_settings_serialize(
|
|
3216
|
+
share_point_connector_settings=share_point_connector_settings,
|
|
3217
|
+
_request_auth=_request_auth,
|
|
3218
|
+
_content_type=_content_type,
|
|
3219
|
+
_headers=_headers,
|
|
3220
|
+
_host_index=_host_index
|
|
3221
|
+
)
|
|
3222
|
+
|
|
3223
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3224
|
+
'200': "SharePointConnectorSettings",
|
|
3225
|
+
'422': "HTTPValidationError",
|
|
3226
|
+
}
|
|
3227
|
+
response_data = self.api_client.call_api(
|
|
3228
|
+
*_param,
|
|
3229
|
+
_request_timeout=_request_timeout
|
|
3230
|
+
)
|
|
3231
|
+
response_data.read()
|
|
3232
|
+
return self.api_client.response_deserialize(
|
|
3233
|
+
response_data=response_data,
|
|
3234
|
+
response_types_map=_response_types_map,
|
|
3235
|
+
).data
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
@validate_call
|
|
3239
|
+
def update_sharepoint_settings_with_http_info(
|
|
3240
|
+
self,
|
|
3241
|
+
share_point_connector_settings: SharePointConnectorSettings,
|
|
3242
|
+
_request_timeout: Union[
|
|
3243
|
+
None,
|
|
3244
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3245
|
+
Tuple[
|
|
3246
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3247
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3248
|
+
]
|
|
3249
|
+
] = None,
|
|
3250
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3251
|
+
_content_type: Optional[StrictStr] = None,
|
|
3252
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3253
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3254
|
+
) -> ApiResponse[SharePointConnectorSettings]:
|
|
3255
|
+
"""Update Sharepoint Settings
|
|
3256
|
+
|
|
3257
|
+
Update SharePoint connector settings.
|
|
3258
|
+
|
|
3259
|
+
:param share_point_connector_settings: (required)
|
|
3260
|
+
:type share_point_connector_settings: SharePointConnectorSettings
|
|
3261
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3262
|
+
number provided, it will be total request
|
|
3263
|
+
timeout. It can also be a pair (tuple) of
|
|
3264
|
+
(connection, read) timeouts.
|
|
3265
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3266
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3267
|
+
request; this effectively ignores the
|
|
3268
|
+
authentication in the spec for a single request.
|
|
3269
|
+
:type _request_auth: dict, optional
|
|
3270
|
+
:param _content_type: force content-type for the request.
|
|
3271
|
+
:type _content_type: str, Optional
|
|
3272
|
+
:param _headers: set to override the headers for a single
|
|
3273
|
+
request; this effectively ignores the headers
|
|
3274
|
+
in the spec for a single request.
|
|
3275
|
+
:type _headers: dict, optional
|
|
3276
|
+
:param _host_index: set to override the host_index for a single
|
|
3277
|
+
request; this effectively ignores the host_index
|
|
3278
|
+
in the spec for a single request.
|
|
3279
|
+
:type _host_index: int, optional
|
|
3280
|
+
:return: Returns the result object.
|
|
3281
|
+
""" # noqa: E501
|
|
3282
|
+
|
|
3283
|
+
_param = self._update_sharepoint_settings_serialize(
|
|
3284
|
+
share_point_connector_settings=share_point_connector_settings,
|
|
3285
|
+
_request_auth=_request_auth,
|
|
3286
|
+
_content_type=_content_type,
|
|
3287
|
+
_headers=_headers,
|
|
3288
|
+
_host_index=_host_index
|
|
3289
|
+
)
|
|
3290
|
+
|
|
3291
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3292
|
+
'200': "SharePointConnectorSettings",
|
|
3293
|
+
'422': "HTTPValidationError",
|
|
3294
|
+
}
|
|
3295
|
+
response_data = self.api_client.call_api(
|
|
3296
|
+
*_param,
|
|
3297
|
+
_request_timeout=_request_timeout
|
|
3298
|
+
)
|
|
3299
|
+
response_data.read()
|
|
3300
|
+
return self.api_client.response_deserialize(
|
|
3301
|
+
response_data=response_data,
|
|
3302
|
+
response_types_map=_response_types_map,
|
|
3303
|
+
)
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
@validate_call
|
|
3307
|
+
def update_sharepoint_settings_without_preload_content(
|
|
3308
|
+
self,
|
|
3309
|
+
share_point_connector_settings: SharePointConnectorSettings,
|
|
3310
|
+
_request_timeout: Union[
|
|
3311
|
+
None,
|
|
3312
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3313
|
+
Tuple[
|
|
3314
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3315
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3316
|
+
]
|
|
3317
|
+
] = None,
|
|
3318
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3319
|
+
_content_type: Optional[StrictStr] = None,
|
|
3320
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3321
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3322
|
+
) -> RESTResponseType:
|
|
3323
|
+
"""Update Sharepoint Settings
|
|
3324
|
+
|
|
3325
|
+
Update SharePoint connector settings.
|
|
3326
|
+
|
|
3327
|
+
:param share_point_connector_settings: (required)
|
|
3328
|
+
:type share_point_connector_settings: SharePointConnectorSettings
|
|
3329
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3330
|
+
number provided, it will be total request
|
|
3331
|
+
timeout. It can also be a pair (tuple) of
|
|
3332
|
+
(connection, read) timeouts.
|
|
3333
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3334
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3335
|
+
request; this effectively ignores the
|
|
3336
|
+
authentication in the spec for a single request.
|
|
3337
|
+
:type _request_auth: dict, optional
|
|
3338
|
+
:param _content_type: force content-type for the request.
|
|
3339
|
+
:type _content_type: str, Optional
|
|
3340
|
+
:param _headers: set to override the headers for a single
|
|
3341
|
+
request; this effectively ignores the headers
|
|
3342
|
+
in the spec for a single request.
|
|
3343
|
+
:type _headers: dict, optional
|
|
3344
|
+
:param _host_index: set to override the host_index for a single
|
|
3345
|
+
request; this effectively ignores the host_index
|
|
3346
|
+
in the spec for a single request.
|
|
3347
|
+
:type _host_index: int, optional
|
|
3348
|
+
:return: Returns the result object.
|
|
3349
|
+
""" # noqa: E501
|
|
3350
|
+
|
|
3351
|
+
_param = self._update_sharepoint_settings_serialize(
|
|
3352
|
+
share_point_connector_settings=share_point_connector_settings,
|
|
3353
|
+
_request_auth=_request_auth,
|
|
3354
|
+
_content_type=_content_type,
|
|
3355
|
+
_headers=_headers,
|
|
3356
|
+
_host_index=_host_index
|
|
3357
|
+
)
|
|
3358
|
+
|
|
3359
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3360
|
+
'200': "SharePointConnectorSettings",
|
|
3361
|
+
'422': "HTTPValidationError",
|
|
3362
|
+
}
|
|
3363
|
+
response_data = self.api_client.call_api(
|
|
3364
|
+
*_param,
|
|
3365
|
+
_request_timeout=_request_timeout
|
|
3366
|
+
)
|
|
3367
|
+
return response_data.response
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
def _update_sharepoint_settings_serialize(
|
|
3371
|
+
self,
|
|
3372
|
+
share_point_connector_settings,
|
|
3373
|
+
_request_auth,
|
|
3374
|
+
_content_type,
|
|
3375
|
+
_headers,
|
|
3376
|
+
_host_index,
|
|
3377
|
+
) -> RequestSerialized:
|
|
3378
|
+
|
|
3379
|
+
_host = None
|
|
3380
|
+
|
|
3381
|
+
_collection_formats: Dict[str, str] = {
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
_path_params: Dict[str, str] = {}
|
|
3385
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3386
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3387
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3388
|
+
_files: Dict[
|
|
3389
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3390
|
+
] = {}
|
|
3391
|
+
_body_params: Optional[bytes] = None
|
|
3392
|
+
|
|
3393
|
+
# process the path parameters
|
|
3394
|
+
# process the query parameters
|
|
3395
|
+
# process the header parameters
|
|
3396
|
+
# process the form parameters
|
|
3397
|
+
# process the body parameter
|
|
3398
|
+
if share_point_connector_settings is not None:
|
|
3399
|
+
_body_params = share_point_connector_settings
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
# set the HTTP header `Accept`
|
|
3403
|
+
if 'Accept' not in _header_params:
|
|
3404
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3405
|
+
[
|
|
3406
|
+
'application/json'
|
|
3407
|
+
]
|
|
3408
|
+
)
|
|
3409
|
+
|
|
3410
|
+
# set the HTTP header `Content-Type`
|
|
3411
|
+
if _content_type:
|
|
3412
|
+
_header_params['Content-Type'] = _content_type
|
|
3413
|
+
else:
|
|
3414
|
+
_default_content_type = (
|
|
3415
|
+
self.api_client.select_header_content_type(
|
|
3416
|
+
[
|
|
3417
|
+
'application/json'
|
|
3418
|
+
]
|
|
3419
|
+
)
|
|
3420
|
+
)
|
|
3421
|
+
if _default_content_type is not None:
|
|
3422
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3423
|
+
|
|
3424
|
+
# authentication setting
|
|
3425
|
+
_auth_settings: List[str] = [
|
|
3426
|
+
'QAnswer-Api-Key',
|
|
3427
|
+
'Bearer token'
|
|
3428
|
+
]
|
|
3429
|
+
|
|
3430
|
+
return self.api_client.param_serialize(
|
|
3431
|
+
method='POST',
|
|
3432
|
+
resource_path='/backend/api/connectors/sharepoint/settings',
|
|
3433
|
+
path_params=_path_params,
|
|
3434
|
+
query_params=_query_params,
|
|
3435
|
+
header_params=_header_params,
|
|
3436
|
+
body=_body_params,
|
|
3437
|
+
post_params=_form_params,
|
|
3438
|
+
files=_files,
|
|
3439
|
+
auth_settings=_auth_settings,
|
|
3440
|
+
collection_formats=_collection_formats,
|
|
3441
|
+
_host=_host,
|
|
3442
|
+
_request_auth=_request_auth
|
|
3443
|
+
)
|
|
3444
|
+
|
|
3445
|
+
|