qanswer_sdk 3.1193.0__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.
Files changed (346) hide show
  1. qanswer_sdk/__init__.py +366 -0
  2. qanswer_sdk/api/__init__.py +47 -0
  3. qanswer_sdk/api/admin_api.py +11207 -0
  4. qanswer_sdk/api/ai_assistant_access_rights_api.py +5331 -0
  5. qanswer_sdk/api/ai_assistant_api.py +4377 -0
  6. qanswer_sdk/api/bot_slack_api.py +814 -0
  7. qanswer_sdk/api/chat_completion_api.py +309 -0
  8. qanswer_sdk/api/chatbot_api.py +1091 -0
  9. qanswer_sdk/api/connector_document_api.py +1406 -0
  10. qanswer_sdk/api/connector_e_consilium_api.py +326 -0
  11. qanswer_sdk/api/connector_e_consilium_search_index_connector_api.py +1215 -0
  12. qanswer_sdk/api/connector_google_drive_api.py +1870 -0
  13. qanswer_sdk/api/connector_one_drive_api.py +1559 -0
  14. qanswer_sdk/api/connector_onenote_api.py +1576 -0
  15. qanswer_sdk/api/connector_pinecone_api.py +892 -0
  16. qanswer_sdk/api/connector_publication_office_controller_api.py +1215 -0
  17. qanswer_sdk/api/connector_qn_a_api.py +1538 -0
  18. qanswer_sdk/api/connector_rdf_answer_api.py +1445 -0
  19. qanswer_sdk/api/connector_rdf_api.py +5318 -0
  20. qanswer_sdk/api/connector_sharepoint_api.py +2584 -0
  21. qanswer_sdk/api/connector_websearch_api.py +326 -0
  22. qanswer_sdk/api/connector_website_api.py +2068 -0
  23. qanswer_sdk/api/connectors_api.py +1497 -0
  24. qanswer_sdk/api/connectors_data_api.py +3697 -0
  25. qanswer_sdk/api/conversation_logs_api.py +6668 -0
  26. qanswer_sdk/api/dataset_config_api.py +2178 -0
  27. qanswer_sdk/api/debug_api.py +282 -0
  28. qanswer_sdk/api/llm_api.py +563 -0
  29. qanswer_sdk/api/llm_consumption_controller_api.py +310 -0
  30. qanswer_sdk/api/organizations_teams_api.py +8465 -0
  31. qanswer_sdk/api/payment_api.py +1546 -0
  32. qanswer_sdk/api/socket_api.py +2975 -0
  33. qanswer_sdk/api/speech_to_text_api.py +734 -0
  34. qanswer_sdk/api/tag_api.py +2396 -0
  35. qanswer_sdk/api/task_chat_api.py +2064 -0
  36. qanswer_sdk/api/task_rdf_linker_api.py +4382 -0
  37. qanswer_sdk/api/task_rdf_sparql_endpoint_api.py +3522 -0
  38. qanswer_sdk/api/task_rdf_text_linker_api.py +1346 -0
  39. qanswer_sdk/api/task_relation_extraction_api.py +2977 -0
  40. qanswer_sdk/api/task_report_copilot_api.py +2980 -0
  41. qanswer_sdk/api/task_search_api.py +1784 -0
  42. qanswer_sdk/api/task_sparql2text_api.py +326 -0
  43. qanswer_sdk/api/task_text2sparql_api.py +908 -0
  44. qanswer_sdk/api/task_text_classification_api.py +914 -0
  45. qanswer_sdk/api/user_api.py +7098 -0
  46. qanswer_sdk/api_client.py +797 -0
  47. qanswer_sdk/api_response.py +21 -0
  48. qanswer_sdk/configuration.py +487 -0
  49. qanswer_sdk/exceptions.py +199 -0
  50. qanswer_sdk/models/__init__.py +307 -0
  51. qanswer_sdk/models/access_pdf_payload_model.py +109 -0
  52. qanswer_sdk/models/add_qn_a_request.py +103 -0
  53. qanswer_sdk/models/add_synonyms.py +91 -0
  54. qanswer_sdk/models/add_synonyms_resp.py +89 -0
  55. qanswer_sdk/models/aggregate.py +97 -0
  56. qanswer_sdk/models/aggregation.py +112 -0
  57. qanswer_sdk/models/aggregations_group.py +102 -0
  58. qanswer_sdk/models/ai_assistant_dto.py +103 -0
  59. qanswer_sdk/models/ai_assistant_shared_access.py +113 -0
  60. qanswer_sdk/models/allowed_file_extensions.py +98 -0
  61. qanswer_sdk/models/api_response.py +87 -0
  62. qanswer_sdk/models/applied_metadata_filter.py +98 -0
  63. qanswer_sdk/models/assistant_message_stop.py +93 -0
  64. qanswer_sdk/models/auth_link_response.py +91 -0
  65. qanswer_sdk/models/autocompletion_config.py +93 -0
  66. qanswer_sdk/models/available_connectors_response.py +99 -0
  67. qanswer_sdk/models/available_embedding_models_response.py +95 -0
  68. qanswer_sdk/models/available_endpoints_response.py +95 -0
  69. qanswer_sdk/models/available_logs_visibility_policy.py +103 -0
  70. qanswer_sdk/models/available_space_quota_for_dataset.py +91 -0
  71. qanswer_sdk/models/available_storage_preference.py +103 -0
  72. qanswer_sdk/models/base_connectors_response.py +89 -0
  73. qanswer_sdk/models/base_conversation_response.py +89 -0
  74. qanswer_sdk/models/base_feedback_response.py +89 -0
  75. qanswer_sdk/models/branding_data.py +87 -0
  76. qanswer_sdk/models/cell.py +89 -0
  77. qanswer_sdk/models/change_password.py +89 -0
  78. qanswer_sdk/models/change_password_admin.py +89 -0
  79. qanswer_sdk/models/change_role.py +96 -0
  80. qanswer_sdk/models/chat_task_settings.py +135 -0
  81. qanswer_sdk/models/chat_task_settings_update_payload.py +95 -0
  82. qanswer_sdk/models/chat_task_update.py +129 -0
  83. qanswer_sdk/models/chatbot_chat_payload.py +115 -0
  84. qanswer_sdk/models/chatbot_conversation_model.py +141 -0
  85. qanswer_sdk/models/chatbot_response.py +119 -0
  86. qanswer_sdk/models/check_mode_response.py +100 -0
  87. qanswer_sdk/models/class_info.py +89 -0
  88. qanswer_sdk/models/connector_model.py +112 -0
  89. qanswer_sdk/models/content_item.py +130 -0
  90. qanswer_sdk/models/conversation_message.py +186 -0
  91. qanswer_sdk/models/conversation_model.py +131 -0
  92. qanswer_sdk/models/conversation_statistics.py +95 -0
  93. qanswer_sdk/models/conversation_update.py +93 -0
  94. qanswer_sdk/models/conversation_users_stats.py +99 -0
  95. qanswer_sdk/models/conversation_users_stats_response.py +99 -0
  96. qanswer_sdk/models/coordinates.py +89 -0
  97. qanswer_sdk/models/cost_summary.py +99 -0
  98. qanswer_sdk/models/create_connector_request.py +93 -0
  99. qanswer_sdk/models/create_connector_response.py +95 -0
  100. qanswer_sdk/models/create_pinecone_connector_request.py +95 -0
  101. qanswer_sdk/models/create_sharepoint_connector_from_certificate_request.py +103 -0
  102. qanswer_sdk/models/create_sharepoint_connector_request.py +101 -0
  103. qanswer_sdk/models/dataset_config_request.py +187 -0
  104. qanswer_sdk/models/dataset_default_values_model.py +141 -0
  105. qanswer_sdk/models/dataset_description.py +91 -0
  106. qanswer_sdk/models/dataset_detail.py +133 -0
  107. qanswer_sdk/models/dataset_detail_kg.py +158 -0
  108. qanswer_sdk/models/dataset_schema.py +207 -0
  109. qanswer_sdk/models/dataset_update_object.py +195 -0
  110. qanswer_sdk/models/dataset_users_response.py +87 -0
  111. qanswer_sdk/models/default_prompt.py +106 -0
  112. qanswer_sdk/models/delete_connector_model.py +96 -0
  113. qanswer_sdk/models/delete_connector_request.py +99 -0
  114. qanswer_sdk/models/delete_connectors_response.py +91 -0
  115. qanswer_sdk/models/delete_qn_a_pair_request.py +95 -0
  116. qanswer_sdk/models/delete_qn_a_pair_response.py +89 -0
  117. qanswer_sdk/models/delete_synonym.py +91 -0
  118. qanswer_sdk/models/delete_synonym_resp.py +89 -0
  119. qanswer_sdk/models/diarization_segment.py +93 -0
  120. qanswer_sdk/models/document_content_response.py +91 -0
  121. qanswer_sdk/models/document_content_update_model.py +95 -0
  122. qanswer_sdk/models/document_file_delete_by_connector_model.py +99 -0
  123. qanswer_sdk/models/document_metadata.py +107 -0
  124. qanswer_sdk/models/document_metadata_list_wrapper.py +95 -0
  125. qanswer_sdk/models/document_status_response.py +89 -0
  126. qanswer_sdk/models/e_consilium_search_index_search_response.py +113 -0
  127. qanswer_sdk/models/econsilium_file_metadata.py +105 -0
  128. qanswer_sdk/models/econsilium_search_index_add_payload.py +105 -0
  129. qanswer_sdk/models/econsilium_search_index_additional_fields.py +101 -0
  130. qanswer_sdk/models/email_request.py +87 -0
  131. qanswer_sdk/models/embedding_endpoint.py +139 -0
  132. qanswer_sdk/models/embedding_endpoint_create.py +137 -0
  133. qanswer_sdk/models/embedding_endpoint_update.py +131 -0
  134. qanswer_sdk/models/embedding_endpoint_validation_response.py +96 -0
  135. qanswer_sdk/models/embedding_model.py +96 -0
  136. qanswer_sdk/models/entity.py +97 -0
  137. qanswer_sdk/models/entity_linker_response.py +99 -0
  138. qanswer_sdk/models/entity_model.py +99 -0
  139. qanswer_sdk/models/extra_body.py +91 -0
  140. qanswer_sdk/models/extract_hyper_links_payload.py +102 -0
  141. qanswer_sdk/models/extract_robot_links_payload.py +88 -0
  142. qanswer_sdk/models/extract_robot_links_response.py +88 -0
  143. qanswer_sdk/models/fact.py +96 -0
  144. qanswer_sdk/models/feedback_model.py +107 -0
  145. qanswer_sdk/models/feedback_update.py +103 -0
  146. qanswer_sdk/models/file_es_meta_data.py +89 -0
  147. qanswer_sdk/models/file_folder_model.py +113 -0
  148. qanswer_sdk/models/file_model.py +134 -0
  149. qanswer_sdk/models/files_by_connector_model.py +89 -0
  150. qanswer_sdk/models/format_return.py +87 -0
  151. qanswer_sdk/models/g_drive_connector_info.py +95 -0
  152. qanswer_sdk/models/g_drive_download_by_ids.py +89 -0
  153. qanswer_sdk/models/g_drive_download_request.py +101 -0
  154. qanswer_sdk/models/generation_params.py +89 -0
  155. qanswer_sdk/models/get_connector_by_id_response.py +91 -0
  156. qanswer_sdk/models/get_conversation_response.py +95 -0
  157. qanswer_sdk/models/guardrail_endpoint.py +121 -0
  158. qanswer_sdk/models/has_lucene_index_result.py +87 -0
  159. qanswer_sdk/models/index_config.py +95 -0
  160. qanswer_sdk/models/install_response.py +89 -0
  161. qanswer_sdk/models/is_enabled_response.py +87 -0
  162. qanswer_sdk/models/is_merging_result.py +87 -0
  163. qanswer_sdk/models/json_nullable_file_failure_reason.py +87 -0
  164. qanswer_sdk/models/json_nullable_source_metadata.py +87 -0
  165. qanswer_sdk/models/jwt_authentication_response.py +93 -0
  166. qanswer_sdk/models/label.py +89 -0
  167. qanswer_sdk/models/labeled_node.py +89 -0
  168. qanswer_sdk/models/link.py +103 -0
  169. qanswer_sdk/models/link_extraction_response.py +97 -0
  170. qanswer_sdk/models/link_result_paginated.py +97 -0
  171. qanswer_sdk/models/linker.py +103 -0
  172. qanswer_sdk/models/linking_result.py +95 -0
  173. qanswer_sdk/models/links.py +99 -0
  174. qanswer_sdk/models/list_chatbot_conversation_response.py +105 -0
  175. qanswer_sdk/models/list_connectors_response.py +95 -0
  176. qanswer_sdk/models/list_conversation_response.py +105 -0
  177. qanswer_sdk/models/list_feedback_response.py +105 -0
  178. qanswer_sdk/models/list_files_connector_response.py +101 -0
  179. qanswer_sdk/models/list_socket_events.py +95 -0
  180. qanswer_sdk/models/list_synonyms_model.py +89 -0
  181. qanswer_sdk/models/llm_context_ranges_response.py +93 -0
  182. qanswer_sdk/models/llm_cost.py +108 -0
  183. qanswer_sdk/models/llm_details.py +111 -0
  184. qanswer_sdk/models/llm_endpoint.py +167 -0
  185. qanswer_sdk/models/llm_endpoint_create.py +165 -0
  186. qanswer_sdk/models/llm_endpoint_default_prompts.py +93 -0
  187. qanswer_sdk/models/llm_endpoint_update.py +163 -0
  188. qanswer_sdk/models/llm_endpoint_validation_response.py +96 -0
  189. qanswer_sdk/models/login_request.py +89 -0
  190. qanswer_sdk/models/logo.py +89 -0
  191. qanswer_sdk/models/lucene_index_request_result.py +87 -0
  192. qanswer_sdk/models/merge_request_result.py +87 -0
  193. qanswer_sdk/models/messages_stats_per_day_response.py +99 -0
  194. qanswer_sdk/models/modify_connector_request.py +111 -0
  195. qanswer_sdk/models/o_auth_service.py +89 -0
  196. qanswer_sdk/models/one_drive_download_by_ids.py +89 -0
  197. qanswer_sdk/models/one_drive_download_request.py +101 -0
  198. qanswer_sdk/models/one_note_download_by_ids.py +91 -0
  199. qanswer_sdk/models/one_note_download_request.py +101 -0
  200. qanswer_sdk/models/organization.py +93 -0
  201. qanswer_sdk/models/organization_creation.py +91 -0
  202. qanswer_sdk/models/organization_filter.py +87 -0
  203. qanswer_sdk/models/organization_shared.py +105 -0
  204. qanswer_sdk/models/page_organization.py +123 -0
  205. qanswer_sdk/models/page_team_with_count.py +123 -0
  206. qanswer_sdk/models/pageable.py +92 -0
  207. qanswer_sdk/models/pageable_object.py +101 -0
  208. qanswer_sdk/models/password.py +89 -0
  209. qanswer_sdk/models/pinecone_index_model.py +91 -0
  210. qanswer_sdk/models/plan.py +123 -0
  211. qanswer_sdk/models/predicted_class.py +89 -0
  212. qanswer_sdk/models/prompt_token_count_details.py +99 -0
  213. qanswer_sdk/models/provider.py +87 -0
  214. qanswer_sdk/models/publication_add_payload.py +103 -0
  215. qanswer_sdk/models/publication_file_metadata.py +105 -0
  216. qanswer_sdk/models/publication_office_additional_fields.py +111 -0
  217. qanswer_sdk/models/publication_search_index_search_response.py +113 -0
  218. qanswer_sdk/models/qa_context.py +129 -0
  219. qanswer_sdk/models/qa_contexts.py +116 -0
  220. qanswer_sdk/models/qa_metadata_payload.py +123 -0
  221. qanswer_sdk/models/qa_table.py +102 -0
  222. qanswer_sdk/models/qn_a_pair_model.py +103 -0
  223. qanswer_sdk/models/qn_a_pair_response.py +95 -0
  224. qanswer_sdk/models/question_completion.py +89 -0
  225. qanswer_sdk/models/rag_params.py +89 -0
  226. qanswer_sdk/models/rag_payload.py +154 -0
  227. qanswer_sdk/models/rag_response.py +150 -0
  228. qanswer_sdk/models/ranker_config.py +93 -0
  229. qanswer_sdk/models/reference_model.py +95 -0
  230. qanswer_sdk/models/refresh_token_request.py +87 -0
  231. qanswer_sdk/models/refresh_website_connector_payload.py +94 -0
  232. qanswer_sdk/models/register_pinecone_connector_request.py +95 -0
  233. qanswer_sdk/models/relation_extraction_configuration.py +105 -0
  234. qanswer_sdk/models/relation_extraction_payload.py +111 -0
  235. qanswer_sdk/models/relation_extraction_result.py +101 -0
  236. qanswer_sdk/models/relation_extraction_schema.py +101 -0
  237. qanswer_sdk/models/relation_extraction_task_settings.py +123 -0
  238. qanswer_sdk/models/relation_extraction_task_settings_update_payload.py +95 -0
  239. qanswer_sdk/models/relation_extraction_task_update.py +117 -0
  240. qanswer_sdk/models/relation_extraction_template_payload.py +97 -0
  241. qanswer_sdk/models/relation_extraction_template_update_payload.py +95 -0
  242. qanswer_sdk/models/relation_model.py +89 -0
  243. qanswer_sdk/models/report_copilot_create_payload.py +103 -0
  244. qanswer_sdk/models/report_copilot_export_template_as_docx_payload_simplified.py +91 -0
  245. qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +95 -0
  246. qanswer_sdk/models/report_copilot_generation_from_slots_response.py +95 -0
  247. qanswer_sdk/models/report_copilot_refinement_payload.py +104 -0
  248. qanswer_sdk/models/report_copilot_refinement_response.py +87 -0
  249. qanswer_sdk/models/report_copilot_slot_task_settings.py +125 -0
  250. qanswer_sdk/models/report_copilot_slot_task_update.py +119 -0
  251. qanswer_sdk/models/report_copilot_task_settings.py +123 -0
  252. qanswer_sdk/models/report_copilot_task_settings_update_payload.py +95 -0
  253. qanswer_sdk/models/report_copilot_task_update.py +117 -0
  254. qanswer_sdk/models/report_copilot_template.py +107 -0
  255. qanswer_sdk/models/report_copilot_template_simplified.py +95 -0
  256. qanswer_sdk/models/report_copilot_update_payload.py +101 -0
  257. qanswer_sdk/models/reset_password.py +87 -0
  258. qanswer_sdk/models/response_audit_model.py +99 -0
  259. qanswer_sdk/models/response_audit_stats_response.py +101 -0
  260. qanswer_sdk/models/retreive_all_synonyms_resp.py +99 -0
  261. qanswer_sdk/models/retry_params.py +89 -0
  262. qanswer_sdk/models/role.py +99 -0
  263. qanswer_sdk/models/search_document_response.py +105 -0
  264. qanswer_sdk/models/search_index_payload.py +114 -0
  265. qanswer_sdk/models/search_metadata_filter.py +89 -0
  266. qanswer_sdk/models/search_payload.py +124 -0
  267. qanswer_sdk/models/search_response.py +113 -0
  268. qanswer_sdk/models/search_task_settings.py +131 -0
  269. qanswer_sdk/models/search_task_settings_update_payload.py +95 -0
  270. qanswer_sdk/models/search_task_update.py +123 -0
  271. qanswer_sdk/models/set_logo1_request.py +87 -0
  272. qanswer_sdk/models/share_point_download_by_ids.py +99 -0
  273. qanswer_sdk/models/share_point_download_request.py +101 -0
  274. qanswer_sdk/models/shared_organization_access.py +109 -0
  275. qanswer_sdk/models/shared_team_access.py +107 -0
  276. qanswer_sdk/models/shared_user.py +99 -0
  277. qanswer_sdk/models/sign_up_request.py +96 -0
  278. qanswer_sdk/models/signout_request.py +87 -0
  279. qanswer_sdk/models/slot.py +138 -0
  280. qanswer_sdk/models/slot_in_prompt.py +91 -0
  281. qanswer_sdk/models/slot_update.py +138 -0
  282. qanswer_sdk/models/socket_conversation_message.py +207 -0
  283. qanswer_sdk/models/socket_data_extraction.py +109 -0
  284. qanswer_sdk/models/socket_file_metadata.py +172 -0
  285. qanswer_sdk/models/socket_join_conversation.py +97 -0
  286. qanswer_sdk/models/socket_join_dataset.py +93 -0
  287. qanswer_sdk/models/socket_report_continuation_response.py +106 -0
  288. qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py +120 -0
  289. qanswer_sdk/models/socket_report_copilot_refinement_response.py +108 -0
  290. qanswer_sdk/models/socket_speech2_text_response.py +99 -0
  291. qanswer_sdk/models/socket_stop_conversation.py +97 -0
  292. qanswer_sdk/models/sort_object.py +91 -0
  293. qanswer_sdk/models/source.py +125 -0
  294. qanswer_sdk/models/sparql2_text_payload.py +97 -0
  295. qanswer_sdk/models/speech2_text_response.py +87 -0
  296. qanswer_sdk/models/speech2_text_with_diarization_response.py +106 -0
  297. qanswer_sdk/models/stat_per_date.py +89 -0
  298. qanswer_sdk/models/status_response.py +89 -0
  299. qanswer_sdk/models/subject_model.py +91 -0
  300. qanswer_sdk/models/suggestion_list_response.py +87 -0
  301. qanswer_sdk/models/summa_server.py +101 -0
  302. qanswer_sdk/models/tag_payload.py +87 -0
  303. qanswer_sdk/models/tag_qa_list_payload.py +100 -0
  304. qanswer_sdk/models/tag_qa_payload.py +91 -0
  305. qanswer_sdk/models/team.py +93 -0
  306. qanswer_sdk/models/team_creation.py +89 -0
  307. qanswer_sdk/models/team_filter.py +91 -0
  308. qanswer_sdk/models/team_shared.py +105 -0
  309. qanswer_sdk/models/team_with_count.py +95 -0
  310. qanswer_sdk/models/terms_bucket.py +89 -0
  311. qanswer_sdk/models/text2_sparql_payload.py +156 -0
  312. qanswer_sdk/models/text2_sparql_task_settings.py +123 -0
  313. qanswer_sdk/models/text2_sparql_task_settings_update_payload.py +95 -0
  314. qanswer_sdk/models/text2_sparql_task_update.py +117 -0
  315. qanswer_sdk/models/text_classification_payload.py +99 -0
  316. qanswer_sdk/models/text_classification_response.py +87 -0
  317. qanswer_sdk/models/text_classification_v2_payload.py +99 -0
  318. qanswer_sdk/models/text_classification_v2_response.py +95 -0
  319. qanswer_sdk/models/total_stat.py +96 -0
  320. qanswer_sdk/models/ui_mappings.py +141 -0
  321. qanswer_sdk/models/update_metadata_model.py +95 -0
  322. qanswer_sdk/models/update_qn_a_pair_request.py +101 -0
  323. qanswer_sdk/models/update_qn_a_pair_response.py +89 -0
  324. qanswer_sdk/models/update_synonyms.py +93 -0
  325. qanswer_sdk/models/update_synonyms_resp.py +89 -0
  326. qanswer_sdk/models/uri_mapping.py +89 -0
  327. qanswer_sdk/models/user.py +91 -0
  328. qanswer_sdk/models/user_chatbot_setting_payload.py +106 -0
  329. qanswer_sdk/models/user_chatbot_setting_response.py +105 -0
  330. qanswer_sdk/models/user_dataset.py +144 -0
  331. qanswer_sdk/models/user_dataset_api_key.py +116 -0
  332. qanswer_sdk/models/user_filter.py +101 -0
  333. qanswer_sdk/models/user_identity_availability.py +87 -0
  334. qanswer_sdk/models/user_list_dto.py +101 -0
  335. qanswer_sdk/models/user_oauth_token.py +96 -0
  336. qanswer_sdk/models/user_profile.py +184 -0
  337. qanswer_sdk/models/user_profile_list_dto.py +101 -0
  338. qanswer_sdk/models/user_profile_paginated.py +101 -0
  339. qanswer_sdk/models/website_add_payload.py +98 -0
  340. qanswer_sdk/models/website_connector_settings.py +160 -0
  341. qanswer_sdk/models/widget_configs.py +105 -0
  342. qanswer_sdk/py.typed +0 -0
  343. qanswer_sdk/rest.py +257 -0
  344. qanswer_sdk-3.1193.0.dist-info/METADATA +125 -0
  345. qanswer_sdk-3.1193.0.dist-info/RECORD +346 -0
  346. qanswer_sdk-3.1193.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,2584 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ QAnswer: Api Documentation
5
+
6
+ APIs provided by QAnswer
7
+
8
+ The version of the OpenAPI document: 1.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 StrictBytes, StrictInt, StrictStr
20
+ from typing import Optional, Tuple, Union
21
+ from qanswer_sdk.models.auth_link_response import AuthLinkResponse
22
+ from qanswer_sdk.models.create_connector_response import CreateConnectorResponse
23
+ from qanswer_sdk.models.create_sharepoint_connector_from_certificate_request import CreateSharepointConnectorFromCertificateRequest
24
+ from qanswer_sdk.models.create_sharepoint_connector_request import CreateSharepointConnectorRequest
25
+ from qanswer_sdk.models.list_files_connector_response import ListFilesConnectorResponse
26
+ from qanswer_sdk.models.share_point_download_request import SharePointDownloadRequest
27
+ from qanswer_sdk.models.status_response import StatusResponse
28
+
29
+ from qanswer_sdk.api_client import ApiClient, RequestSerialized
30
+ from qanswer_sdk.api_response import ApiResponse
31
+ from qanswer_sdk.rest import RESTResponseType
32
+
33
+
34
+ class ConnectorSharepointApi:
35
+ """NOTE: This class is auto generated by OpenAPI Generator
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+ """
40
+
41
+ def __init__(self, api_client=None) -> None:
42
+ if api_client is None:
43
+ api_client = ApiClient.get_default()
44
+ self.api_client = api_client
45
+
46
+
47
+ @validate_call
48
+ def create_sharepoint_connector_with_certificate(
49
+ self,
50
+ data: CreateSharepointConnectorFromCertificateRequest,
51
+ certificate: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
52
+ q_answer_api_key: Optional[StrictStr] = None,
53
+ _request_timeout: Union[
54
+ None,
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Tuple[
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Annotated[StrictFloat, Field(gt=0)]
59
+ ]
60
+ ] = None,
61
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
+ _content_type: Optional[StrictStr] = None,
63
+ _headers: Optional[Dict[StrictStr, Any]] = None,
64
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
+ ) -> CreateConnectorResponse:
66
+ """create_sharepoint_connector_with_certificate
67
+
68
+
69
+ :param data: (required)
70
+ :type data: CreateSharepointConnectorFromCertificateRequest
71
+ :param certificate: (required)
72
+ :type certificate: bytearray
73
+ :param q_answer_api_key:
74
+ :type q_answer_api_key: str
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
+ q_answer_api_key=q_answer_api_key,
101
+ _request_auth=_request_auth,
102
+ _content_type=_content_type,
103
+ _headers=_headers,
104
+ _host_index=_host_index
105
+ )
106
+
107
+ _response_types_map: Dict[str, Optional[str]] = {
108
+ '200': "CreateConnectorResponse",
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
+ q_answer_api_key: Optional[StrictStr] = None,
127
+ _request_timeout: Union[
128
+ None,
129
+ Annotated[StrictFloat, Field(gt=0)],
130
+ Tuple[
131
+ Annotated[StrictFloat, Field(gt=0)],
132
+ Annotated[StrictFloat, Field(gt=0)]
133
+ ]
134
+ ] = None,
135
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
136
+ _content_type: Optional[StrictStr] = None,
137
+ _headers: Optional[Dict[StrictStr, Any]] = None,
138
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
139
+ ) -> ApiResponse[CreateConnectorResponse]:
140
+ """create_sharepoint_connector_with_certificate
141
+
142
+
143
+ :param data: (required)
144
+ :type data: CreateSharepointConnectorFromCertificateRequest
145
+ :param certificate: (required)
146
+ :type certificate: bytearray
147
+ :param q_answer_api_key:
148
+ :type q_answer_api_key: str
149
+ :param _request_timeout: timeout setting for this request. If one
150
+ number provided, it will be total request
151
+ timeout. It can also be a pair (tuple) of
152
+ (connection, read) timeouts.
153
+ :type _request_timeout: int, tuple(int, int), optional
154
+ :param _request_auth: set to override the auth_settings for an a single
155
+ request; this effectively ignores the
156
+ authentication in the spec for a single request.
157
+ :type _request_auth: dict, optional
158
+ :param _content_type: force content-type for the request.
159
+ :type _content_type: str, Optional
160
+ :param _headers: set to override the headers for a single
161
+ request; this effectively ignores the headers
162
+ in the spec for a single request.
163
+ :type _headers: dict, optional
164
+ :param _host_index: set to override the host_index for a single
165
+ request; this effectively ignores the host_index
166
+ in the spec for a single request.
167
+ :type _host_index: int, optional
168
+ :return: Returns the result object.
169
+ """ # noqa: E501
170
+
171
+ _param = self._create_sharepoint_connector_with_certificate_serialize(
172
+ data=data,
173
+ certificate=certificate,
174
+ q_answer_api_key=q_answer_api_key,
175
+ _request_auth=_request_auth,
176
+ _content_type=_content_type,
177
+ _headers=_headers,
178
+ _host_index=_host_index
179
+ )
180
+
181
+ _response_types_map: Dict[str, Optional[str]] = {
182
+ '200': "CreateConnectorResponse",
183
+ }
184
+ response_data = self.api_client.call_api(
185
+ *_param,
186
+ _request_timeout=_request_timeout
187
+ )
188
+ response_data.read()
189
+ return self.api_client.response_deserialize(
190
+ response_data=response_data,
191
+ response_types_map=_response_types_map,
192
+ )
193
+
194
+
195
+ @validate_call
196
+ def create_sharepoint_connector_with_certificate_without_preload_content(
197
+ self,
198
+ data: CreateSharepointConnectorFromCertificateRequest,
199
+ certificate: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
200
+ q_answer_api_key: Optional[StrictStr] = None,
201
+ _request_timeout: Union[
202
+ None,
203
+ Annotated[StrictFloat, Field(gt=0)],
204
+ Tuple[
205
+ Annotated[StrictFloat, Field(gt=0)],
206
+ Annotated[StrictFloat, Field(gt=0)]
207
+ ]
208
+ ] = None,
209
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
210
+ _content_type: Optional[StrictStr] = None,
211
+ _headers: Optional[Dict[StrictStr, Any]] = None,
212
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
213
+ ) -> RESTResponseType:
214
+ """create_sharepoint_connector_with_certificate
215
+
216
+
217
+ :param data: (required)
218
+ :type data: CreateSharepointConnectorFromCertificateRequest
219
+ :param certificate: (required)
220
+ :type certificate: bytearray
221
+ :param q_answer_api_key:
222
+ :type q_answer_api_key: str
223
+ :param _request_timeout: timeout setting for this request. If one
224
+ number provided, it will be total request
225
+ timeout. It can also be a pair (tuple) of
226
+ (connection, read) timeouts.
227
+ :type _request_timeout: int, tuple(int, int), optional
228
+ :param _request_auth: set to override the auth_settings for an a single
229
+ request; this effectively ignores the
230
+ authentication in the spec for a single request.
231
+ :type _request_auth: dict, optional
232
+ :param _content_type: force content-type for the request.
233
+ :type _content_type: str, Optional
234
+ :param _headers: set to override the headers for a single
235
+ request; this effectively ignores the headers
236
+ in the spec for a single request.
237
+ :type _headers: dict, optional
238
+ :param _host_index: set to override the host_index for a single
239
+ request; this effectively ignores the host_index
240
+ in the spec for a single request.
241
+ :type _host_index: int, optional
242
+ :return: Returns the result object.
243
+ """ # noqa: E501
244
+
245
+ _param = self._create_sharepoint_connector_with_certificate_serialize(
246
+ data=data,
247
+ certificate=certificate,
248
+ q_answer_api_key=q_answer_api_key,
249
+ _request_auth=_request_auth,
250
+ _content_type=_content_type,
251
+ _headers=_headers,
252
+ _host_index=_host_index
253
+ )
254
+
255
+ _response_types_map: Dict[str, Optional[str]] = {
256
+ '200': "CreateConnectorResponse",
257
+ }
258
+ response_data = self.api_client.call_api(
259
+ *_param,
260
+ _request_timeout=_request_timeout
261
+ )
262
+ return response_data.response
263
+
264
+
265
+ def _create_sharepoint_connector_with_certificate_serialize(
266
+ self,
267
+ data,
268
+ certificate,
269
+ q_answer_api_key,
270
+ _request_auth,
271
+ _content_type,
272
+ _headers,
273
+ _host_index,
274
+ ) -> RequestSerialized:
275
+
276
+ _host = None
277
+
278
+ _collection_formats: Dict[str, str] = {
279
+ }
280
+
281
+ _path_params: Dict[str, str] = {}
282
+ _query_params: List[Tuple[str, str]] = []
283
+ _header_params: Dict[str, Optional[str]] = _headers or {}
284
+ _form_params: List[Tuple[str, str]] = []
285
+ _files: Dict[
286
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
287
+ ] = {}
288
+ _body_params: Optional[bytes] = None
289
+
290
+ # process the path parameters
291
+ # process the query parameters
292
+ # process the header parameters
293
+ if q_answer_api_key is not None:
294
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
295
+ # process the form parameters
296
+ if data is not None:
297
+ _form_params.append(('data', data))
298
+ if certificate is not None:
299
+ _files['certificate'] = certificate
300
+ # process the body parameter
301
+
302
+
303
+ # set the HTTP header `Accept`
304
+ if 'Accept' not in _header_params:
305
+ _header_params['Accept'] = self.api_client.select_header_accept(
306
+ [
307
+ '*/*'
308
+ ]
309
+ )
310
+
311
+ # set the HTTP header `Content-Type`
312
+ if _content_type:
313
+ _header_params['Content-Type'] = _content_type
314
+ else:
315
+ _default_content_type = (
316
+ self.api_client.select_header_content_type(
317
+ [
318
+ 'multipart/form-data'
319
+ ]
320
+ )
321
+ )
322
+ if _default_content_type is not None:
323
+ _header_params['Content-Type'] = _default_content_type
324
+
325
+ # authentication setting
326
+ _auth_settings: List[str] = [
327
+ 'QAnswer-Api-Key',
328
+ 'Bearer'
329
+ ]
330
+
331
+ return self.api_client.param_serialize(
332
+ method='POST',
333
+ resource_path='/api/connectors/sharepoint/create-with-certificate',
334
+ path_params=_path_params,
335
+ query_params=_query_params,
336
+ header_params=_header_params,
337
+ body=_body_params,
338
+ post_params=_form_params,
339
+ files=_files,
340
+ auth_settings=_auth_settings,
341
+ collection_formats=_collection_formats,
342
+ _host=_host,
343
+ _request_auth=_request_auth
344
+ )
345
+
346
+
347
+
348
+
349
+ @validate_call
350
+ def refresh_sharepoint(
351
+ self,
352
+ username: StrictStr,
353
+ dataset: StrictStr,
354
+ connector_id: StrictInt,
355
+ q_answer_api_key: Optional[StrictStr] = None,
356
+ _request_timeout: Union[
357
+ None,
358
+ Annotated[StrictFloat, Field(gt=0)],
359
+ Tuple[
360
+ Annotated[StrictFloat, Field(gt=0)],
361
+ Annotated[StrictFloat, Field(gt=0)]
362
+ ]
363
+ ] = None,
364
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
365
+ _content_type: Optional[StrictStr] = None,
366
+ _headers: Optional[Dict[StrictStr, Any]] = None,
367
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
368
+ ) -> StatusResponse:
369
+ """refresh_sharepoint
370
+
371
+
372
+ :param username: (required)
373
+ :type username: str
374
+ :param dataset: (required)
375
+ :type dataset: str
376
+ :param connector_id: (required)
377
+ :type connector_id: int
378
+ :param q_answer_api_key:
379
+ :type q_answer_api_key: str
380
+ :param _request_timeout: timeout setting for this request. If one
381
+ number provided, it will be total request
382
+ timeout. It can also be a pair (tuple) of
383
+ (connection, read) timeouts.
384
+ :type _request_timeout: int, tuple(int, int), optional
385
+ :param _request_auth: set to override the auth_settings for an a single
386
+ request; this effectively ignores the
387
+ authentication in the spec for a single request.
388
+ :type _request_auth: dict, optional
389
+ :param _content_type: force content-type for the request.
390
+ :type _content_type: str, Optional
391
+ :param _headers: set to override the headers for a single
392
+ request; this effectively ignores the headers
393
+ in the spec for a single request.
394
+ :type _headers: dict, optional
395
+ :param _host_index: set to override the host_index for a single
396
+ request; this effectively ignores the host_index
397
+ in the spec for a single request.
398
+ :type _host_index: int, optional
399
+ :return: Returns the result object.
400
+ """ # noqa: E501
401
+
402
+ _param = self._refresh_sharepoint_serialize(
403
+ username=username,
404
+ dataset=dataset,
405
+ connector_id=connector_id,
406
+ q_answer_api_key=q_answer_api_key,
407
+ _request_auth=_request_auth,
408
+ _content_type=_content_type,
409
+ _headers=_headers,
410
+ _host_index=_host_index
411
+ )
412
+
413
+ _response_types_map: Dict[str, Optional[str]] = {
414
+ '200': "StatusResponse",
415
+ }
416
+ response_data = self.api_client.call_api(
417
+ *_param,
418
+ _request_timeout=_request_timeout
419
+ )
420
+ response_data.read()
421
+ return self.api_client.response_deserialize(
422
+ response_data=response_data,
423
+ response_types_map=_response_types_map,
424
+ ).data
425
+
426
+
427
+ @validate_call
428
+ def refresh_sharepoint_with_http_info(
429
+ self,
430
+ username: StrictStr,
431
+ dataset: StrictStr,
432
+ connector_id: StrictInt,
433
+ q_answer_api_key: Optional[StrictStr] = None,
434
+ _request_timeout: Union[
435
+ None,
436
+ Annotated[StrictFloat, Field(gt=0)],
437
+ Tuple[
438
+ Annotated[StrictFloat, Field(gt=0)],
439
+ Annotated[StrictFloat, Field(gt=0)]
440
+ ]
441
+ ] = None,
442
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
443
+ _content_type: Optional[StrictStr] = None,
444
+ _headers: Optional[Dict[StrictStr, Any]] = None,
445
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
446
+ ) -> ApiResponse[StatusResponse]:
447
+ """refresh_sharepoint
448
+
449
+
450
+ :param username: (required)
451
+ :type username: str
452
+ :param dataset: (required)
453
+ :type dataset: str
454
+ :param connector_id: (required)
455
+ :type connector_id: int
456
+ :param q_answer_api_key:
457
+ :type q_answer_api_key: str
458
+ :param _request_timeout: timeout setting for this request. If one
459
+ number provided, it will be total request
460
+ timeout. It can also be a pair (tuple) of
461
+ (connection, read) timeouts.
462
+ :type _request_timeout: int, tuple(int, int), optional
463
+ :param _request_auth: set to override the auth_settings for an a single
464
+ request; this effectively ignores the
465
+ authentication in the spec for a single request.
466
+ :type _request_auth: dict, optional
467
+ :param _content_type: force content-type for the request.
468
+ :type _content_type: str, Optional
469
+ :param _headers: set to override the headers for a single
470
+ request; this effectively ignores the headers
471
+ in the spec for a single request.
472
+ :type _headers: dict, optional
473
+ :param _host_index: set to override the host_index for a single
474
+ request; this effectively ignores the host_index
475
+ in the spec for a single request.
476
+ :type _host_index: int, optional
477
+ :return: Returns the result object.
478
+ """ # noqa: E501
479
+
480
+ _param = self._refresh_sharepoint_serialize(
481
+ username=username,
482
+ dataset=dataset,
483
+ connector_id=connector_id,
484
+ q_answer_api_key=q_answer_api_key,
485
+ _request_auth=_request_auth,
486
+ _content_type=_content_type,
487
+ _headers=_headers,
488
+ _host_index=_host_index
489
+ )
490
+
491
+ _response_types_map: Dict[str, Optional[str]] = {
492
+ '200': "StatusResponse",
493
+ }
494
+ response_data = self.api_client.call_api(
495
+ *_param,
496
+ _request_timeout=_request_timeout
497
+ )
498
+ response_data.read()
499
+ return self.api_client.response_deserialize(
500
+ response_data=response_data,
501
+ response_types_map=_response_types_map,
502
+ )
503
+
504
+
505
+ @validate_call
506
+ def refresh_sharepoint_without_preload_content(
507
+ self,
508
+ username: StrictStr,
509
+ dataset: StrictStr,
510
+ connector_id: StrictInt,
511
+ q_answer_api_key: Optional[StrictStr] = None,
512
+ _request_timeout: Union[
513
+ None,
514
+ Annotated[StrictFloat, Field(gt=0)],
515
+ Tuple[
516
+ Annotated[StrictFloat, Field(gt=0)],
517
+ Annotated[StrictFloat, Field(gt=0)]
518
+ ]
519
+ ] = None,
520
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
521
+ _content_type: Optional[StrictStr] = None,
522
+ _headers: Optional[Dict[StrictStr, Any]] = None,
523
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
524
+ ) -> RESTResponseType:
525
+ """refresh_sharepoint
526
+
527
+
528
+ :param username: (required)
529
+ :type username: str
530
+ :param dataset: (required)
531
+ :type dataset: str
532
+ :param connector_id: (required)
533
+ :type connector_id: int
534
+ :param q_answer_api_key:
535
+ :type q_answer_api_key: str
536
+ :param _request_timeout: timeout setting for this request. If one
537
+ number provided, it will be total request
538
+ timeout. It can also be a pair (tuple) of
539
+ (connection, read) timeouts.
540
+ :type _request_timeout: int, tuple(int, int), optional
541
+ :param _request_auth: set to override the auth_settings for an a single
542
+ request; this effectively ignores the
543
+ authentication in the spec for a single request.
544
+ :type _request_auth: dict, optional
545
+ :param _content_type: force content-type for the request.
546
+ :type _content_type: str, Optional
547
+ :param _headers: set to override the headers for a single
548
+ request; this effectively ignores the headers
549
+ in the spec for a single request.
550
+ :type _headers: dict, optional
551
+ :param _host_index: set to override the host_index for a single
552
+ request; this effectively ignores the host_index
553
+ in the spec for a single request.
554
+ :type _host_index: int, optional
555
+ :return: Returns the result object.
556
+ """ # noqa: E501
557
+
558
+ _param = self._refresh_sharepoint_serialize(
559
+ username=username,
560
+ dataset=dataset,
561
+ connector_id=connector_id,
562
+ q_answer_api_key=q_answer_api_key,
563
+ _request_auth=_request_auth,
564
+ _content_type=_content_type,
565
+ _headers=_headers,
566
+ _host_index=_host_index
567
+ )
568
+
569
+ _response_types_map: Dict[str, Optional[str]] = {
570
+ '200': "StatusResponse",
571
+ }
572
+ response_data = self.api_client.call_api(
573
+ *_param,
574
+ _request_timeout=_request_timeout
575
+ )
576
+ return response_data.response
577
+
578
+
579
+ def _refresh_sharepoint_serialize(
580
+ self,
581
+ username,
582
+ dataset,
583
+ connector_id,
584
+ q_answer_api_key,
585
+ _request_auth,
586
+ _content_type,
587
+ _headers,
588
+ _host_index,
589
+ ) -> RequestSerialized:
590
+
591
+ _host = None
592
+
593
+ _collection_formats: Dict[str, str] = {
594
+ }
595
+
596
+ _path_params: Dict[str, str] = {}
597
+ _query_params: List[Tuple[str, str]] = []
598
+ _header_params: Dict[str, Optional[str]] = _headers or {}
599
+ _form_params: List[Tuple[str, str]] = []
600
+ _files: Dict[
601
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
602
+ ] = {}
603
+ _body_params: Optional[bytes] = None
604
+
605
+ # process the path parameters
606
+ # process the query parameters
607
+ if username is not None:
608
+
609
+ _query_params.append(('username', username))
610
+
611
+ if dataset is not None:
612
+
613
+ _query_params.append(('dataset', dataset))
614
+
615
+ if connector_id is not None:
616
+
617
+ _query_params.append(('connectorId', connector_id))
618
+
619
+ # process the header parameters
620
+ if q_answer_api_key is not None:
621
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
622
+ # process the form parameters
623
+ # process the body parameter
624
+
625
+
626
+ # set the HTTP header `Accept`
627
+ if 'Accept' not in _header_params:
628
+ _header_params['Accept'] = self.api_client.select_header_accept(
629
+ [
630
+ '*/*'
631
+ ]
632
+ )
633
+
634
+
635
+ # authentication setting
636
+ _auth_settings: List[str] = [
637
+ 'QAnswer-Api-Key',
638
+ 'Bearer'
639
+ ]
640
+
641
+ return self.api_client.param_serialize(
642
+ method='POST',
643
+ resource_path='/api/connectors/sharepoint/refresh',
644
+ path_params=_path_params,
645
+ query_params=_query_params,
646
+ header_params=_header_params,
647
+ body=_body_params,
648
+ post_params=_form_params,
649
+ files=_files,
650
+ auth_settings=_auth_settings,
651
+ collection_formats=_collection_formats,
652
+ _host=_host,
653
+ _request_auth=_request_auth
654
+ )
655
+
656
+
657
+
658
+
659
+ @validate_call
660
+ def sharepoint_connector_add(
661
+ self,
662
+ share_point_download_request: SharePointDownloadRequest,
663
+ q_answer_api_key: Optional[StrictStr] = None,
664
+ _request_timeout: Union[
665
+ None,
666
+ Annotated[StrictFloat, Field(gt=0)],
667
+ Tuple[
668
+ Annotated[StrictFloat, Field(gt=0)],
669
+ Annotated[StrictFloat, Field(gt=0)]
670
+ ]
671
+ ] = None,
672
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
673
+ _content_type: Optional[StrictStr] = None,
674
+ _headers: Optional[Dict[StrictStr, Any]] = None,
675
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
676
+ ) -> StatusResponse:
677
+ """sharepoint_connector_add
678
+
679
+
680
+ :param share_point_download_request: (required)
681
+ :type share_point_download_request: SharePointDownloadRequest
682
+ :param q_answer_api_key:
683
+ :type q_answer_api_key: str
684
+ :param _request_timeout: timeout setting for this request. If one
685
+ number provided, it will be total request
686
+ timeout. It can also be a pair (tuple) of
687
+ (connection, read) timeouts.
688
+ :type _request_timeout: int, tuple(int, int), optional
689
+ :param _request_auth: set to override the auth_settings for an a single
690
+ request; this effectively ignores the
691
+ authentication in the spec for a single request.
692
+ :type _request_auth: dict, optional
693
+ :param _content_type: force content-type for the request.
694
+ :type _content_type: str, Optional
695
+ :param _headers: set to override the headers for a single
696
+ request; this effectively ignores the headers
697
+ in the spec for a single request.
698
+ :type _headers: dict, optional
699
+ :param _host_index: set to override the host_index for a single
700
+ request; this effectively ignores the host_index
701
+ in the spec for a single request.
702
+ :type _host_index: int, optional
703
+ :return: Returns the result object.
704
+ """ # noqa: E501
705
+
706
+ _param = self._sharepoint_connector_add_serialize(
707
+ share_point_download_request=share_point_download_request,
708
+ q_answer_api_key=q_answer_api_key,
709
+ _request_auth=_request_auth,
710
+ _content_type=_content_type,
711
+ _headers=_headers,
712
+ _host_index=_host_index
713
+ )
714
+
715
+ _response_types_map: Dict[str, Optional[str]] = {
716
+ '200': "StatusResponse",
717
+ }
718
+ response_data = self.api_client.call_api(
719
+ *_param,
720
+ _request_timeout=_request_timeout
721
+ )
722
+ response_data.read()
723
+ return self.api_client.response_deserialize(
724
+ response_data=response_data,
725
+ response_types_map=_response_types_map,
726
+ ).data
727
+
728
+
729
+ @validate_call
730
+ def sharepoint_connector_add_with_http_info(
731
+ self,
732
+ share_point_download_request: SharePointDownloadRequest,
733
+ q_answer_api_key: Optional[StrictStr] = None,
734
+ _request_timeout: Union[
735
+ None,
736
+ Annotated[StrictFloat, Field(gt=0)],
737
+ Tuple[
738
+ Annotated[StrictFloat, Field(gt=0)],
739
+ Annotated[StrictFloat, Field(gt=0)]
740
+ ]
741
+ ] = None,
742
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
743
+ _content_type: Optional[StrictStr] = None,
744
+ _headers: Optional[Dict[StrictStr, Any]] = None,
745
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
746
+ ) -> ApiResponse[StatusResponse]:
747
+ """sharepoint_connector_add
748
+
749
+
750
+ :param share_point_download_request: (required)
751
+ :type share_point_download_request: SharePointDownloadRequest
752
+ :param q_answer_api_key:
753
+ :type q_answer_api_key: str
754
+ :param _request_timeout: timeout setting for this request. If one
755
+ number provided, it will be total request
756
+ timeout. It can also be a pair (tuple) of
757
+ (connection, read) timeouts.
758
+ :type _request_timeout: int, tuple(int, int), optional
759
+ :param _request_auth: set to override the auth_settings for an a single
760
+ request; this effectively ignores the
761
+ authentication in the spec for a single request.
762
+ :type _request_auth: dict, optional
763
+ :param _content_type: force content-type for the request.
764
+ :type _content_type: str, Optional
765
+ :param _headers: set to override the headers for a single
766
+ request; this effectively ignores the headers
767
+ in the spec for a single request.
768
+ :type _headers: dict, optional
769
+ :param _host_index: set to override the host_index for a single
770
+ request; this effectively ignores the host_index
771
+ in the spec for a single request.
772
+ :type _host_index: int, optional
773
+ :return: Returns the result object.
774
+ """ # noqa: E501
775
+
776
+ _param = self._sharepoint_connector_add_serialize(
777
+ share_point_download_request=share_point_download_request,
778
+ q_answer_api_key=q_answer_api_key,
779
+ _request_auth=_request_auth,
780
+ _content_type=_content_type,
781
+ _headers=_headers,
782
+ _host_index=_host_index
783
+ )
784
+
785
+ _response_types_map: Dict[str, Optional[str]] = {
786
+ '200': "StatusResponse",
787
+ }
788
+ response_data = self.api_client.call_api(
789
+ *_param,
790
+ _request_timeout=_request_timeout
791
+ )
792
+ response_data.read()
793
+ return self.api_client.response_deserialize(
794
+ response_data=response_data,
795
+ response_types_map=_response_types_map,
796
+ )
797
+
798
+
799
+ @validate_call
800
+ def sharepoint_connector_add_without_preload_content(
801
+ self,
802
+ share_point_download_request: SharePointDownloadRequest,
803
+ q_answer_api_key: Optional[StrictStr] = None,
804
+ _request_timeout: Union[
805
+ None,
806
+ Annotated[StrictFloat, Field(gt=0)],
807
+ Tuple[
808
+ Annotated[StrictFloat, Field(gt=0)],
809
+ Annotated[StrictFloat, Field(gt=0)]
810
+ ]
811
+ ] = None,
812
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
813
+ _content_type: Optional[StrictStr] = None,
814
+ _headers: Optional[Dict[StrictStr, Any]] = None,
815
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
816
+ ) -> RESTResponseType:
817
+ """sharepoint_connector_add
818
+
819
+
820
+ :param share_point_download_request: (required)
821
+ :type share_point_download_request: SharePointDownloadRequest
822
+ :param q_answer_api_key:
823
+ :type q_answer_api_key: str
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._sharepoint_connector_add_serialize(
847
+ share_point_download_request=share_point_download_request,
848
+ q_answer_api_key=q_answer_api_key,
849
+ _request_auth=_request_auth,
850
+ _content_type=_content_type,
851
+ _headers=_headers,
852
+ _host_index=_host_index
853
+ )
854
+
855
+ _response_types_map: Dict[str, Optional[str]] = {
856
+ '200': "StatusResponse",
857
+ }
858
+ response_data = self.api_client.call_api(
859
+ *_param,
860
+ _request_timeout=_request_timeout
861
+ )
862
+ return response_data.response
863
+
864
+
865
+ def _sharepoint_connector_add_serialize(
866
+ self,
867
+ share_point_download_request,
868
+ q_answer_api_key,
869
+ _request_auth,
870
+ _content_type,
871
+ _headers,
872
+ _host_index,
873
+ ) -> RequestSerialized:
874
+
875
+ _host = None
876
+
877
+ _collection_formats: Dict[str, str] = {
878
+ }
879
+
880
+ _path_params: Dict[str, str] = {}
881
+ _query_params: List[Tuple[str, str]] = []
882
+ _header_params: Dict[str, Optional[str]] = _headers or {}
883
+ _form_params: List[Tuple[str, str]] = []
884
+ _files: Dict[
885
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
886
+ ] = {}
887
+ _body_params: Optional[bytes] = None
888
+
889
+ # process the path parameters
890
+ # process the query parameters
891
+ # process the header parameters
892
+ if q_answer_api_key is not None:
893
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
894
+ # process the form parameters
895
+ # process the body parameter
896
+ if share_point_download_request is not None:
897
+ _body_params = share_point_download_request
898
+
899
+
900
+ # set the HTTP header `Accept`
901
+ if 'Accept' not in _header_params:
902
+ _header_params['Accept'] = self.api_client.select_header_accept(
903
+ [
904
+ '*/*'
905
+ ]
906
+ )
907
+
908
+ # set the HTTP header `Content-Type`
909
+ if _content_type:
910
+ _header_params['Content-Type'] = _content_type
911
+ else:
912
+ _default_content_type = (
913
+ self.api_client.select_header_content_type(
914
+ [
915
+ 'application/json'
916
+ ]
917
+ )
918
+ )
919
+ if _default_content_type is not None:
920
+ _header_params['Content-Type'] = _default_content_type
921
+
922
+ # authentication setting
923
+ _auth_settings: List[str] = [
924
+ 'QAnswer-Api-Key',
925
+ 'Bearer'
926
+ ]
927
+
928
+ return self.api_client.param_serialize(
929
+ method='POST',
930
+ resource_path='/api/connectors/sharepoint/add',
931
+ path_params=_path_params,
932
+ query_params=_query_params,
933
+ header_params=_header_params,
934
+ body=_body_params,
935
+ post_params=_form_params,
936
+ files=_files,
937
+ auth_settings=_auth_settings,
938
+ collection_formats=_collection_formats,
939
+ _host=_host,
940
+ _request_auth=_request_auth
941
+ )
942
+
943
+
944
+
945
+
946
+ @validate_call
947
+ def sharepoint_connector_auth_link(
948
+ self,
949
+ username: StrictStr,
950
+ dataset: StrictStr,
951
+ connector_id: StrictInt,
952
+ chatting_origin: Optional[StrictStr] = None,
953
+ q_answer_api_key: Optional[StrictStr] = None,
954
+ _request_timeout: Union[
955
+ None,
956
+ Annotated[StrictFloat, Field(gt=0)],
957
+ Tuple[
958
+ Annotated[StrictFloat, Field(gt=0)],
959
+ Annotated[StrictFloat, Field(gt=0)]
960
+ ]
961
+ ] = None,
962
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
963
+ _content_type: Optional[StrictStr] = None,
964
+ _headers: Optional[Dict[StrictStr, Any]] = None,
965
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
966
+ ) -> AuthLinkResponse:
967
+ """sharepoint_connector_auth_link
968
+
969
+
970
+ :param username: (required)
971
+ :type username: str
972
+ :param dataset: (required)
973
+ :type dataset: str
974
+ :param connector_id: (required)
975
+ :type connector_id: int
976
+ :param chatting_origin:
977
+ :type chatting_origin: str
978
+ :param q_answer_api_key:
979
+ :type q_answer_api_key: str
980
+ :param _request_timeout: timeout setting for this request. If one
981
+ number provided, it will be total request
982
+ timeout. It can also be a pair (tuple) of
983
+ (connection, read) timeouts.
984
+ :type _request_timeout: int, tuple(int, int), optional
985
+ :param _request_auth: set to override the auth_settings for an a single
986
+ request; this effectively ignores the
987
+ authentication in the spec for a single request.
988
+ :type _request_auth: dict, optional
989
+ :param _content_type: force content-type for the request.
990
+ :type _content_type: str, Optional
991
+ :param _headers: set to override the headers for a single
992
+ request; this effectively ignores the headers
993
+ in the spec for a single request.
994
+ :type _headers: dict, optional
995
+ :param _host_index: set to override the host_index for a single
996
+ request; this effectively ignores the host_index
997
+ in the spec for a single request.
998
+ :type _host_index: int, optional
999
+ :return: Returns the result object.
1000
+ """ # noqa: E501
1001
+
1002
+ _param = self._sharepoint_connector_auth_link_serialize(
1003
+ username=username,
1004
+ dataset=dataset,
1005
+ connector_id=connector_id,
1006
+ chatting_origin=chatting_origin,
1007
+ q_answer_api_key=q_answer_api_key,
1008
+ _request_auth=_request_auth,
1009
+ _content_type=_content_type,
1010
+ _headers=_headers,
1011
+ _host_index=_host_index
1012
+ )
1013
+
1014
+ _response_types_map: Dict[str, Optional[str]] = {
1015
+ '200': "AuthLinkResponse",
1016
+ }
1017
+ response_data = self.api_client.call_api(
1018
+ *_param,
1019
+ _request_timeout=_request_timeout
1020
+ )
1021
+ response_data.read()
1022
+ return self.api_client.response_deserialize(
1023
+ response_data=response_data,
1024
+ response_types_map=_response_types_map,
1025
+ ).data
1026
+
1027
+
1028
+ @validate_call
1029
+ def sharepoint_connector_auth_link_with_http_info(
1030
+ self,
1031
+ username: StrictStr,
1032
+ dataset: StrictStr,
1033
+ connector_id: StrictInt,
1034
+ chatting_origin: Optional[StrictStr] = None,
1035
+ q_answer_api_key: Optional[StrictStr] = None,
1036
+ _request_timeout: Union[
1037
+ None,
1038
+ Annotated[StrictFloat, Field(gt=0)],
1039
+ Tuple[
1040
+ Annotated[StrictFloat, Field(gt=0)],
1041
+ Annotated[StrictFloat, Field(gt=0)]
1042
+ ]
1043
+ ] = None,
1044
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1045
+ _content_type: Optional[StrictStr] = None,
1046
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1047
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1048
+ ) -> ApiResponse[AuthLinkResponse]:
1049
+ """sharepoint_connector_auth_link
1050
+
1051
+
1052
+ :param username: (required)
1053
+ :type username: str
1054
+ :param dataset: (required)
1055
+ :type dataset: str
1056
+ :param connector_id: (required)
1057
+ :type connector_id: int
1058
+ :param chatting_origin:
1059
+ :type chatting_origin: str
1060
+ :param q_answer_api_key:
1061
+ :type q_answer_api_key: str
1062
+ :param _request_timeout: timeout setting for this request. If one
1063
+ number provided, it will be total request
1064
+ timeout. It can also be a pair (tuple) of
1065
+ (connection, read) timeouts.
1066
+ :type _request_timeout: int, tuple(int, int), optional
1067
+ :param _request_auth: set to override the auth_settings for an a single
1068
+ request; this effectively ignores the
1069
+ authentication in the spec for a single request.
1070
+ :type _request_auth: dict, optional
1071
+ :param _content_type: force content-type for the request.
1072
+ :type _content_type: str, Optional
1073
+ :param _headers: set to override the headers for a single
1074
+ request; this effectively ignores the headers
1075
+ in the spec for a single request.
1076
+ :type _headers: dict, optional
1077
+ :param _host_index: set to override the host_index for a single
1078
+ request; this effectively ignores the host_index
1079
+ in the spec for a single request.
1080
+ :type _host_index: int, optional
1081
+ :return: Returns the result object.
1082
+ """ # noqa: E501
1083
+
1084
+ _param = self._sharepoint_connector_auth_link_serialize(
1085
+ username=username,
1086
+ dataset=dataset,
1087
+ connector_id=connector_id,
1088
+ chatting_origin=chatting_origin,
1089
+ q_answer_api_key=q_answer_api_key,
1090
+ _request_auth=_request_auth,
1091
+ _content_type=_content_type,
1092
+ _headers=_headers,
1093
+ _host_index=_host_index
1094
+ )
1095
+
1096
+ _response_types_map: Dict[str, Optional[str]] = {
1097
+ '200': "AuthLinkResponse",
1098
+ }
1099
+ response_data = self.api_client.call_api(
1100
+ *_param,
1101
+ _request_timeout=_request_timeout
1102
+ )
1103
+ response_data.read()
1104
+ return self.api_client.response_deserialize(
1105
+ response_data=response_data,
1106
+ response_types_map=_response_types_map,
1107
+ )
1108
+
1109
+
1110
+ @validate_call
1111
+ def sharepoint_connector_auth_link_without_preload_content(
1112
+ self,
1113
+ username: StrictStr,
1114
+ dataset: StrictStr,
1115
+ connector_id: StrictInt,
1116
+ chatting_origin: Optional[StrictStr] = None,
1117
+ q_answer_api_key: Optional[StrictStr] = None,
1118
+ _request_timeout: Union[
1119
+ None,
1120
+ Annotated[StrictFloat, Field(gt=0)],
1121
+ Tuple[
1122
+ Annotated[StrictFloat, Field(gt=0)],
1123
+ Annotated[StrictFloat, Field(gt=0)]
1124
+ ]
1125
+ ] = None,
1126
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1127
+ _content_type: Optional[StrictStr] = None,
1128
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1129
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1130
+ ) -> RESTResponseType:
1131
+ """sharepoint_connector_auth_link
1132
+
1133
+
1134
+ :param username: (required)
1135
+ :type username: str
1136
+ :param dataset: (required)
1137
+ :type dataset: str
1138
+ :param connector_id: (required)
1139
+ :type connector_id: int
1140
+ :param chatting_origin:
1141
+ :type chatting_origin: str
1142
+ :param q_answer_api_key:
1143
+ :type q_answer_api_key: str
1144
+ :param _request_timeout: timeout setting for this request. If one
1145
+ number provided, it will be total request
1146
+ timeout. It can also be a pair (tuple) of
1147
+ (connection, read) timeouts.
1148
+ :type _request_timeout: int, tuple(int, int), optional
1149
+ :param _request_auth: set to override the auth_settings for an a single
1150
+ request; this effectively ignores the
1151
+ authentication in the spec for a single request.
1152
+ :type _request_auth: dict, optional
1153
+ :param _content_type: force content-type for the request.
1154
+ :type _content_type: str, Optional
1155
+ :param _headers: set to override the headers for a single
1156
+ request; this effectively ignores the headers
1157
+ in the spec for a single request.
1158
+ :type _headers: dict, optional
1159
+ :param _host_index: set to override the host_index for a single
1160
+ request; this effectively ignores the host_index
1161
+ in the spec for a single request.
1162
+ :type _host_index: int, optional
1163
+ :return: Returns the result object.
1164
+ """ # noqa: E501
1165
+
1166
+ _param = self._sharepoint_connector_auth_link_serialize(
1167
+ username=username,
1168
+ dataset=dataset,
1169
+ connector_id=connector_id,
1170
+ chatting_origin=chatting_origin,
1171
+ q_answer_api_key=q_answer_api_key,
1172
+ _request_auth=_request_auth,
1173
+ _content_type=_content_type,
1174
+ _headers=_headers,
1175
+ _host_index=_host_index
1176
+ )
1177
+
1178
+ _response_types_map: Dict[str, Optional[str]] = {
1179
+ '200': "AuthLinkResponse",
1180
+ }
1181
+ response_data = self.api_client.call_api(
1182
+ *_param,
1183
+ _request_timeout=_request_timeout
1184
+ )
1185
+ return response_data.response
1186
+
1187
+
1188
+ def _sharepoint_connector_auth_link_serialize(
1189
+ self,
1190
+ username,
1191
+ dataset,
1192
+ connector_id,
1193
+ chatting_origin,
1194
+ q_answer_api_key,
1195
+ _request_auth,
1196
+ _content_type,
1197
+ _headers,
1198
+ _host_index,
1199
+ ) -> RequestSerialized:
1200
+
1201
+ _host = None
1202
+
1203
+ _collection_formats: Dict[str, str] = {
1204
+ }
1205
+
1206
+ _path_params: Dict[str, str] = {}
1207
+ _query_params: List[Tuple[str, str]] = []
1208
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1209
+ _form_params: List[Tuple[str, str]] = []
1210
+ _files: Dict[
1211
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1212
+ ] = {}
1213
+ _body_params: Optional[bytes] = None
1214
+
1215
+ # process the path parameters
1216
+ # process the query parameters
1217
+ if username is not None:
1218
+
1219
+ _query_params.append(('username', username))
1220
+
1221
+ if dataset is not None:
1222
+
1223
+ _query_params.append(('dataset', dataset))
1224
+
1225
+ if connector_id is not None:
1226
+
1227
+ _query_params.append(('connectorId', connector_id))
1228
+
1229
+ if chatting_origin is not None:
1230
+
1231
+ _query_params.append(('chattingOrigin', chatting_origin))
1232
+
1233
+ # process the header parameters
1234
+ if q_answer_api_key is not None:
1235
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
1236
+ # process the form parameters
1237
+ # process the body parameter
1238
+
1239
+
1240
+ # set the HTTP header `Accept`
1241
+ if 'Accept' not in _header_params:
1242
+ _header_params['Accept'] = self.api_client.select_header_accept(
1243
+ [
1244
+ '*/*'
1245
+ ]
1246
+ )
1247
+
1248
+
1249
+ # authentication setting
1250
+ _auth_settings: List[str] = [
1251
+ 'QAnswer-Api-Key',
1252
+ 'Bearer'
1253
+ ]
1254
+
1255
+ return self.api_client.param_serialize(
1256
+ method='GET',
1257
+ resource_path='/api/connectors/sharepoint/authorisation-link',
1258
+ path_params=_path_params,
1259
+ query_params=_query_params,
1260
+ header_params=_header_params,
1261
+ body=_body_params,
1262
+ post_params=_form_params,
1263
+ files=_files,
1264
+ auth_settings=_auth_settings,
1265
+ collection_formats=_collection_formats,
1266
+ _host=_host,
1267
+ _request_auth=_request_auth
1268
+ )
1269
+
1270
+
1271
+
1272
+
1273
+ @validate_call
1274
+ def sharepoint_connector_callback(
1275
+ self,
1276
+ state: StrictStr,
1277
+ code: Optional[StrictStr] = None,
1278
+ error: Optional[StrictStr] = None,
1279
+ _request_timeout: Union[
1280
+ None,
1281
+ Annotated[StrictFloat, Field(gt=0)],
1282
+ Tuple[
1283
+ Annotated[StrictFloat, Field(gt=0)],
1284
+ Annotated[StrictFloat, Field(gt=0)]
1285
+ ]
1286
+ ] = None,
1287
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1288
+ _content_type: Optional[StrictStr] = None,
1289
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1290
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1291
+ ) -> None:
1292
+ """sharepoint_connector_callback
1293
+
1294
+
1295
+ :param state: (required)
1296
+ :type state: str
1297
+ :param code:
1298
+ :type code: str
1299
+ :param error:
1300
+ :type error: str
1301
+ :param _request_timeout: timeout setting for this request. If one
1302
+ number provided, it will be total request
1303
+ timeout. It can also be a pair (tuple) of
1304
+ (connection, read) timeouts.
1305
+ :type _request_timeout: int, tuple(int, int), optional
1306
+ :param _request_auth: set to override the auth_settings for an a single
1307
+ request; this effectively ignores the
1308
+ authentication in the spec for a single request.
1309
+ :type _request_auth: dict, optional
1310
+ :param _content_type: force content-type for the request.
1311
+ :type _content_type: str, Optional
1312
+ :param _headers: set to override the headers for a single
1313
+ request; this effectively ignores the headers
1314
+ in the spec for a single request.
1315
+ :type _headers: dict, optional
1316
+ :param _host_index: set to override the host_index for a single
1317
+ request; this effectively ignores the host_index
1318
+ in the spec for a single request.
1319
+ :type _host_index: int, optional
1320
+ :return: Returns the result object.
1321
+ """ # noqa: E501
1322
+
1323
+ _param = self._sharepoint_connector_callback_serialize(
1324
+ state=state,
1325
+ code=code,
1326
+ error=error,
1327
+ _request_auth=_request_auth,
1328
+ _content_type=_content_type,
1329
+ _headers=_headers,
1330
+ _host_index=_host_index
1331
+ )
1332
+
1333
+ _response_types_map: Dict[str, Optional[str]] = {
1334
+ '200': None,
1335
+ }
1336
+ response_data = self.api_client.call_api(
1337
+ *_param,
1338
+ _request_timeout=_request_timeout
1339
+ )
1340
+ response_data.read()
1341
+ return self.api_client.response_deserialize(
1342
+ response_data=response_data,
1343
+ response_types_map=_response_types_map,
1344
+ ).data
1345
+
1346
+
1347
+ @validate_call
1348
+ def sharepoint_connector_callback_with_http_info(
1349
+ self,
1350
+ state: StrictStr,
1351
+ code: Optional[StrictStr] = None,
1352
+ error: Optional[StrictStr] = None,
1353
+ _request_timeout: Union[
1354
+ None,
1355
+ Annotated[StrictFloat, Field(gt=0)],
1356
+ Tuple[
1357
+ Annotated[StrictFloat, Field(gt=0)],
1358
+ Annotated[StrictFloat, Field(gt=0)]
1359
+ ]
1360
+ ] = None,
1361
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1362
+ _content_type: Optional[StrictStr] = None,
1363
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1364
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1365
+ ) -> ApiResponse[None]:
1366
+ """sharepoint_connector_callback
1367
+
1368
+
1369
+ :param state: (required)
1370
+ :type state: str
1371
+ :param code:
1372
+ :type code: str
1373
+ :param error:
1374
+ :type error: str
1375
+ :param _request_timeout: timeout setting for this request. If one
1376
+ number provided, it will be total request
1377
+ timeout. It can also be a pair (tuple) of
1378
+ (connection, read) timeouts.
1379
+ :type _request_timeout: int, tuple(int, int), optional
1380
+ :param _request_auth: set to override the auth_settings for an a single
1381
+ request; this effectively ignores the
1382
+ authentication in the spec for a single request.
1383
+ :type _request_auth: dict, optional
1384
+ :param _content_type: force content-type for the request.
1385
+ :type _content_type: str, Optional
1386
+ :param _headers: set to override the headers for a single
1387
+ request; this effectively ignores the headers
1388
+ in the spec for a single request.
1389
+ :type _headers: dict, optional
1390
+ :param _host_index: set to override the host_index for a single
1391
+ request; this effectively ignores the host_index
1392
+ in the spec for a single request.
1393
+ :type _host_index: int, optional
1394
+ :return: Returns the result object.
1395
+ """ # noqa: E501
1396
+
1397
+ _param = self._sharepoint_connector_callback_serialize(
1398
+ state=state,
1399
+ code=code,
1400
+ error=error,
1401
+ _request_auth=_request_auth,
1402
+ _content_type=_content_type,
1403
+ _headers=_headers,
1404
+ _host_index=_host_index
1405
+ )
1406
+
1407
+ _response_types_map: Dict[str, Optional[str]] = {
1408
+ '200': None,
1409
+ }
1410
+ response_data = self.api_client.call_api(
1411
+ *_param,
1412
+ _request_timeout=_request_timeout
1413
+ )
1414
+ response_data.read()
1415
+ return self.api_client.response_deserialize(
1416
+ response_data=response_data,
1417
+ response_types_map=_response_types_map,
1418
+ )
1419
+
1420
+
1421
+ @validate_call
1422
+ def sharepoint_connector_callback_without_preload_content(
1423
+ self,
1424
+ state: StrictStr,
1425
+ code: Optional[StrictStr] = None,
1426
+ error: Optional[StrictStr] = None,
1427
+ _request_timeout: Union[
1428
+ None,
1429
+ Annotated[StrictFloat, Field(gt=0)],
1430
+ Tuple[
1431
+ Annotated[StrictFloat, Field(gt=0)],
1432
+ Annotated[StrictFloat, Field(gt=0)]
1433
+ ]
1434
+ ] = None,
1435
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1436
+ _content_type: Optional[StrictStr] = None,
1437
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1438
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1439
+ ) -> RESTResponseType:
1440
+ """sharepoint_connector_callback
1441
+
1442
+
1443
+ :param state: (required)
1444
+ :type state: str
1445
+ :param code:
1446
+ :type code: str
1447
+ :param error:
1448
+ :type error: str
1449
+ :param _request_timeout: timeout setting for this request. If one
1450
+ number provided, it will be total request
1451
+ timeout. It can also be a pair (tuple) of
1452
+ (connection, read) timeouts.
1453
+ :type _request_timeout: int, tuple(int, int), optional
1454
+ :param _request_auth: set to override the auth_settings for an a single
1455
+ request; this effectively ignores the
1456
+ authentication in the spec for a single request.
1457
+ :type _request_auth: dict, optional
1458
+ :param _content_type: force content-type for the request.
1459
+ :type _content_type: str, Optional
1460
+ :param _headers: set to override the headers for a single
1461
+ request; this effectively ignores the headers
1462
+ in the spec for a single request.
1463
+ :type _headers: dict, optional
1464
+ :param _host_index: set to override the host_index for a single
1465
+ request; this effectively ignores the host_index
1466
+ in the spec for a single request.
1467
+ :type _host_index: int, optional
1468
+ :return: Returns the result object.
1469
+ """ # noqa: E501
1470
+
1471
+ _param = self._sharepoint_connector_callback_serialize(
1472
+ state=state,
1473
+ code=code,
1474
+ error=error,
1475
+ _request_auth=_request_auth,
1476
+ _content_type=_content_type,
1477
+ _headers=_headers,
1478
+ _host_index=_host_index
1479
+ )
1480
+
1481
+ _response_types_map: Dict[str, Optional[str]] = {
1482
+ '200': None,
1483
+ }
1484
+ response_data = self.api_client.call_api(
1485
+ *_param,
1486
+ _request_timeout=_request_timeout
1487
+ )
1488
+ return response_data.response
1489
+
1490
+
1491
+ def _sharepoint_connector_callback_serialize(
1492
+ self,
1493
+ state,
1494
+ code,
1495
+ error,
1496
+ _request_auth,
1497
+ _content_type,
1498
+ _headers,
1499
+ _host_index,
1500
+ ) -> RequestSerialized:
1501
+
1502
+ _host = None
1503
+
1504
+ _collection_formats: Dict[str, str] = {
1505
+ }
1506
+
1507
+ _path_params: Dict[str, str] = {}
1508
+ _query_params: List[Tuple[str, str]] = []
1509
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1510
+ _form_params: List[Tuple[str, str]] = []
1511
+ _files: Dict[
1512
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1513
+ ] = {}
1514
+ _body_params: Optional[bytes] = None
1515
+
1516
+ # process the path parameters
1517
+ # process the query parameters
1518
+ if code is not None:
1519
+
1520
+ _query_params.append(('code', code))
1521
+
1522
+ if error is not None:
1523
+
1524
+ _query_params.append(('error', error))
1525
+
1526
+ if state is not None:
1527
+
1528
+ _query_params.append(('state', state))
1529
+
1530
+ # process the header parameters
1531
+ # process the form parameters
1532
+ # process the body parameter
1533
+
1534
+
1535
+
1536
+
1537
+ # authentication setting
1538
+ _auth_settings: List[str] = [
1539
+ 'QAnswer-Api-Key',
1540
+ 'Bearer'
1541
+ ]
1542
+
1543
+ return self.api_client.param_serialize(
1544
+ method='GET',
1545
+ resource_path='/api/connectors/sharepoint/callback',
1546
+ path_params=_path_params,
1547
+ query_params=_query_params,
1548
+ header_params=_header_params,
1549
+ body=_body_params,
1550
+ post_params=_form_params,
1551
+ files=_files,
1552
+ auth_settings=_auth_settings,
1553
+ collection_formats=_collection_formats,
1554
+ _host=_host,
1555
+ _request_auth=_request_auth
1556
+ )
1557
+
1558
+
1559
+
1560
+
1561
+ @validate_call
1562
+ def sharepoint_connector_create(
1563
+ self,
1564
+ create_sharepoint_connector_request: CreateSharepointConnectorRequest,
1565
+ q_answer_api_key: Optional[StrictStr] = None,
1566
+ _request_timeout: Union[
1567
+ None,
1568
+ Annotated[StrictFloat, Field(gt=0)],
1569
+ Tuple[
1570
+ Annotated[StrictFloat, Field(gt=0)],
1571
+ Annotated[StrictFloat, Field(gt=0)]
1572
+ ]
1573
+ ] = None,
1574
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1575
+ _content_type: Optional[StrictStr] = None,
1576
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1577
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1578
+ ) -> CreateConnectorResponse:
1579
+ """sharepoint_connector_create
1580
+
1581
+
1582
+ :param create_sharepoint_connector_request: (required)
1583
+ :type create_sharepoint_connector_request: CreateSharepointConnectorRequest
1584
+ :param q_answer_api_key:
1585
+ :type q_answer_api_key: str
1586
+ :param _request_timeout: timeout setting for this request. If one
1587
+ number provided, it will be total request
1588
+ timeout. It can also be a pair (tuple) of
1589
+ (connection, read) timeouts.
1590
+ :type _request_timeout: int, tuple(int, int), optional
1591
+ :param _request_auth: set to override the auth_settings for an a single
1592
+ request; this effectively ignores the
1593
+ authentication in the spec for a single request.
1594
+ :type _request_auth: dict, optional
1595
+ :param _content_type: force content-type for the request.
1596
+ :type _content_type: str, Optional
1597
+ :param _headers: set to override the headers for a single
1598
+ request; this effectively ignores the headers
1599
+ in the spec for a single request.
1600
+ :type _headers: dict, optional
1601
+ :param _host_index: set to override the host_index for a single
1602
+ request; this effectively ignores the host_index
1603
+ in the spec for a single request.
1604
+ :type _host_index: int, optional
1605
+ :return: Returns the result object.
1606
+ """ # noqa: E501
1607
+
1608
+ _param = self._sharepoint_connector_create_serialize(
1609
+ create_sharepoint_connector_request=create_sharepoint_connector_request,
1610
+ q_answer_api_key=q_answer_api_key,
1611
+ _request_auth=_request_auth,
1612
+ _content_type=_content_type,
1613
+ _headers=_headers,
1614
+ _host_index=_host_index
1615
+ )
1616
+
1617
+ _response_types_map: Dict[str, Optional[str]] = {
1618
+ '200': "CreateConnectorResponse",
1619
+ }
1620
+ response_data = self.api_client.call_api(
1621
+ *_param,
1622
+ _request_timeout=_request_timeout
1623
+ )
1624
+ response_data.read()
1625
+ return self.api_client.response_deserialize(
1626
+ response_data=response_data,
1627
+ response_types_map=_response_types_map,
1628
+ ).data
1629
+
1630
+
1631
+ @validate_call
1632
+ def sharepoint_connector_create_with_http_info(
1633
+ self,
1634
+ create_sharepoint_connector_request: CreateSharepointConnectorRequest,
1635
+ q_answer_api_key: Optional[StrictStr] = None,
1636
+ _request_timeout: Union[
1637
+ None,
1638
+ Annotated[StrictFloat, Field(gt=0)],
1639
+ Tuple[
1640
+ Annotated[StrictFloat, Field(gt=0)],
1641
+ Annotated[StrictFloat, Field(gt=0)]
1642
+ ]
1643
+ ] = None,
1644
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1645
+ _content_type: Optional[StrictStr] = None,
1646
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1647
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1648
+ ) -> ApiResponse[CreateConnectorResponse]:
1649
+ """sharepoint_connector_create
1650
+
1651
+
1652
+ :param create_sharepoint_connector_request: (required)
1653
+ :type create_sharepoint_connector_request: CreateSharepointConnectorRequest
1654
+ :param q_answer_api_key:
1655
+ :type q_answer_api_key: str
1656
+ :param _request_timeout: timeout setting for this request. If one
1657
+ number provided, it will be total request
1658
+ timeout. It can also be a pair (tuple) of
1659
+ (connection, read) timeouts.
1660
+ :type _request_timeout: int, tuple(int, int), optional
1661
+ :param _request_auth: set to override the auth_settings for an a single
1662
+ request; this effectively ignores the
1663
+ authentication in the spec for a single request.
1664
+ :type _request_auth: dict, optional
1665
+ :param _content_type: force content-type for the request.
1666
+ :type _content_type: str, Optional
1667
+ :param _headers: set to override the headers for a single
1668
+ request; this effectively ignores the headers
1669
+ in the spec for a single request.
1670
+ :type _headers: dict, optional
1671
+ :param _host_index: set to override the host_index for a single
1672
+ request; this effectively ignores the host_index
1673
+ in the spec for a single request.
1674
+ :type _host_index: int, optional
1675
+ :return: Returns the result object.
1676
+ """ # noqa: E501
1677
+
1678
+ _param = self._sharepoint_connector_create_serialize(
1679
+ create_sharepoint_connector_request=create_sharepoint_connector_request,
1680
+ q_answer_api_key=q_answer_api_key,
1681
+ _request_auth=_request_auth,
1682
+ _content_type=_content_type,
1683
+ _headers=_headers,
1684
+ _host_index=_host_index
1685
+ )
1686
+
1687
+ _response_types_map: Dict[str, Optional[str]] = {
1688
+ '200': "CreateConnectorResponse",
1689
+ }
1690
+ response_data = self.api_client.call_api(
1691
+ *_param,
1692
+ _request_timeout=_request_timeout
1693
+ )
1694
+ response_data.read()
1695
+ return self.api_client.response_deserialize(
1696
+ response_data=response_data,
1697
+ response_types_map=_response_types_map,
1698
+ )
1699
+
1700
+
1701
+ @validate_call
1702
+ def sharepoint_connector_create_without_preload_content(
1703
+ self,
1704
+ create_sharepoint_connector_request: CreateSharepointConnectorRequest,
1705
+ q_answer_api_key: Optional[StrictStr] = None,
1706
+ _request_timeout: Union[
1707
+ None,
1708
+ Annotated[StrictFloat, Field(gt=0)],
1709
+ Tuple[
1710
+ Annotated[StrictFloat, Field(gt=0)],
1711
+ Annotated[StrictFloat, Field(gt=0)]
1712
+ ]
1713
+ ] = None,
1714
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1715
+ _content_type: Optional[StrictStr] = None,
1716
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1717
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1718
+ ) -> RESTResponseType:
1719
+ """sharepoint_connector_create
1720
+
1721
+
1722
+ :param create_sharepoint_connector_request: (required)
1723
+ :type create_sharepoint_connector_request: CreateSharepointConnectorRequest
1724
+ :param q_answer_api_key:
1725
+ :type q_answer_api_key: str
1726
+ :param _request_timeout: timeout setting for this request. If one
1727
+ number provided, it will be total request
1728
+ timeout. It can also be a pair (tuple) of
1729
+ (connection, read) timeouts.
1730
+ :type _request_timeout: int, tuple(int, int), optional
1731
+ :param _request_auth: set to override the auth_settings for an a single
1732
+ request; this effectively ignores the
1733
+ authentication in the spec for a single request.
1734
+ :type _request_auth: dict, optional
1735
+ :param _content_type: force content-type for the request.
1736
+ :type _content_type: str, Optional
1737
+ :param _headers: set to override the headers for a single
1738
+ request; this effectively ignores the headers
1739
+ in the spec for a single request.
1740
+ :type _headers: dict, optional
1741
+ :param _host_index: set to override the host_index for a single
1742
+ request; this effectively ignores the host_index
1743
+ in the spec for a single request.
1744
+ :type _host_index: int, optional
1745
+ :return: Returns the result object.
1746
+ """ # noqa: E501
1747
+
1748
+ _param = self._sharepoint_connector_create_serialize(
1749
+ create_sharepoint_connector_request=create_sharepoint_connector_request,
1750
+ q_answer_api_key=q_answer_api_key,
1751
+ _request_auth=_request_auth,
1752
+ _content_type=_content_type,
1753
+ _headers=_headers,
1754
+ _host_index=_host_index
1755
+ )
1756
+
1757
+ _response_types_map: Dict[str, Optional[str]] = {
1758
+ '200': "CreateConnectorResponse",
1759
+ }
1760
+ response_data = self.api_client.call_api(
1761
+ *_param,
1762
+ _request_timeout=_request_timeout
1763
+ )
1764
+ return response_data.response
1765
+
1766
+
1767
+ def _sharepoint_connector_create_serialize(
1768
+ self,
1769
+ create_sharepoint_connector_request,
1770
+ q_answer_api_key,
1771
+ _request_auth,
1772
+ _content_type,
1773
+ _headers,
1774
+ _host_index,
1775
+ ) -> RequestSerialized:
1776
+
1777
+ _host = None
1778
+
1779
+ _collection_formats: Dict[str, str] = {
1780
+ }
1781
+
1782
+ _path_params: Dict[str, str] = {}
1783
+ _query_params: List[Tuple[str, str]] = []
1784
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1785
+ _form_params: List[Tuple[str, str]] = []
1786
+ _files: Dict[
1787
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1788
+ ] = {}
1789
+ _body_params: Optional[bytes] = None
1790
+
1791
+ # process the path parameters
1792
+ # process the query parameters
1793
+ # process the header parameters
1794
+ if q_answer_api_key is not None:
1795
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
1796
+ # process the form parameters
1797
+ # process the body parameter
1798
+ if create_sharepoint_connector_request is not None:
1799
+ _body_params = create_sharepoint_connector_request
1800
+
1801
+
1802
+ # set the HTTP header `Accept`
1803
+ if 'Accept' not in _header_params:
1804
+ _header_params['Accept'] = self.api_client.select_header_accept(
1805
+ [
1806
+ '*/*'
1807
+ ]
1808
+ )
1809
+
1810
+ # set the HTTP header `Content-Type`
1811
+ if _content_type:
1812
+ _header_params['Content-Type'] = _content_type
1813
+ else:
1814
+ _default_content_type = (
1815
+ self.api_client.select_header_content_type(
1816
+ [
1817
+ 'application/json'
1818
+ ]
1819
+ )
1820
+ )
1821
+ if _default_content_type is not None:
1822
+ _header_params['Content-Type'] = _default_content_type
1823
+
1824
+ # authentication setting
1825
+ _auth_settings: List[str] = [
1826
+ 'QAnswer-Api-Key',
1827
+ 'Bearer'
1828
+ ]
1829
+
1830
+ return self.api_client.param_serialize(
1831
+ method='POST',
1832
+ resource_path='/api/connectors/sharepoint/create',
1833
+ path_params=_path_params,
1834
+ query_params=_query_params,
1835
+ header_params=_header_params,
1836
+ body=_body_params,
1837
+ post_params=_form_params,
1838
+ files=_files,
1839
+ auth_settings=_auth_settings,
1840
+ collection_formats=_collection_formats,
1841
+ _host=_host,
1842
+ _request_auth=_request_auth
1843
+ )
1844
+
1845
+
1846
+
1847
+
1848
+ @validate_call
1849
+ def sharepoint_connector_list_files(
1850
+ self,
1851
+ username: StrictStr,
1852
+ dataset: StrictStr,
1853
+ connector_id: StrictInt,
1854
+ site_id: Optional[StrictStr] = None,
1855
+ drive_id: Optional[StrictStr] = None,
1856
+ folder_id: Optional[StrictStr] = None,
1857
+ notebook_id: Optional[StrictStr] = None,
1858
+ q_answer_api_key: Optional[StrictStr] = None,
1859
+ _request_timeout: Union[
1860
+ None,
1861
+ Annotated[StrictFloat, Field(gt=0)],
1862
+ Tuple[
1863
+ Annotated[StrictFloat, Field(gt=0)],
1864
+ Annotated[StrictFloat, Field(gt=0)]
1865
+ ]
1866
+ ] = None,
1867
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1868
+ _content_type: Optional[StrictStr] = None,
1869
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1870
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1871
+ ) -> ListFilesConnectorResponse:
1872
+ """sharepoint_connector_list_files
1873
+
1874
+
1875
+ :param username: (required)
1876
+ :type username: str
1877
+ :param dataset: (required)
1878
+ :type dataset: str
1879
+ :param connector_id: (required)
1880
+ :type connector_id: int
1881
+ :param site_id:
1882
+ :type site_id: str
1883
+ :param drive_id:
1884
+ :type drive_id: str
1885
+ :param folder_id:
1886
+ :type folder_id: str
1887
+ :param notebook_id:
1888
+ :type notebook_id: str
1889
+ :param q_answer_api_key:
1890
+ :type q_answer_api_key: str
1891
+ :param _request_timeout: timeout setting for this request. If one
1892
+ number provided, it will be total request
1893
+ timeout. It can also be a pair (tuple) of
1894
+ (connection, read) timeouts.
1895
+ :type _request_timeout: int, tuple(int, int), optional
1896
+ :param _request_auth: set to override the auth_settings for an a single
1897
+ request; this effectively ignores the
1898
+ authentication in the spec for a single request.
1899
+ :type _request_auth: dict, optional
1900
+ :param _content_type: force content-type for the request.
1901
+ :type _content_type: str, Optional
1902
+ :param _headers: set to override the headers for a single
1903
+ request; this effectively ignores the headers
1904
+ in the spec for a single request.
1905
+ :type _headers: dict, optional
1906
+ :param _host_index: set to override the host_index for a single
1907
+ request; this effectively ignores the host_index
1908
+ in the spec for a single request.
1909
+ :type _host_index: int, optional
1910
+ :return: Returns the result object.
1911
+ """ # noqa: E501
1912
+
1913
+ _param = self._sharepoint_connector_list_files_serialize(
1914
+ username=username,
1915
+ dataset=dataset,
1916
+ connector_id=connector_id,
1917
+ site_id=site_id,
1918
+ drive_id=drive_id,
1919
+ folder_id=folder_id,
1920
+ notebook_id=notebook_id,
1921
+ q_answer_api_key=q_answer_api_key,
1922
+ _request_auth=_request_auth,
1923
+ _content_type=_content_type,
1924
+ _headers=_headers,
1925
+ _host_index=_host_index
1926
+ )
1927
+
1928
+ _response_types_map: Dict[str, Optional[str]] = {
1929
+ '200': "ListFilesConnectorResponse",
1930
+ }
1931
+ response_data = self.api_client.call_api(
1932
+ *_param,
1933
+ _request_timeout=_request_timeout
1934
+ )
1935
+ response_data.read()
1936
+ return self.api_client.response_deserialize(
1937
+ response_data=response_data,
1938
+ response_types_map=_response_types_map,
1939
+ ).data
1940
+
1941
+
1942
+ @validate_call
1943
+ def sharepoint_connector_list_files_with_http_info(
1944
+ self,
1945
+ username: StrictStr,
1946
+ dataset: StrictStr,
1947
+ connector_id: StrictInt,
1948
+ site_id: Optional[StrictStr] = None,
1949
+ drive_id: Optional[StrictStr] = None,
1950
+ folder_id: Optional[StrictStr] = None,
1951
+ notebook_id: Optional[StrictStr] = None,
1952
+ q_answer_api_key: Optional[StrictStr] = None,
1953
+ _request_timeout: Union[
1954
+ None,
1955
+ Annotated[StrictFloat, Field(gt=0)],
1956
+ Tuple[
1957
+ Annotated[StrictFloat, Field(gt=0)],
1958
+ Annotated[StrictFloat, Field(gt=0)]
1959
+ ]
1960
+ ] = None,
1961
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1962
+ _content_type: Optional[StrictStr] = None,
1963
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1964
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1965
+ ) -> ApiResponse[ListFilesConnectorResponse]:
1966
+ """sharepoint_connector_list_files
1967
+
1968
+
1969
+ :param username: (required)
1970
+ :type username: str
1971
+ :param dataset: (required)
1972
+ :type dataset: str
1973
+ :param connector_id: (required)
1974
+ :type connector_id: int
1975
+ :param site_id:
1976
+ :type site_id: str
1977
+ :param drive_id:
1978
+ :type drive_id: str
1979
+ :param folder_id:
1980
+ :type folder_id: str
1981
+ :param notebook_id:
1982
+ :type notebook_id: str
1983
+ :param q_answer_api_key:
1984
+ :type q_answer_api_key: str
1985
+ :param _request_timeout: timeout setting for this request. If one
1986
+ number provided, it will be total request
1987
+ timeout. It can also be a pair (tuple) of
1988
+ (connection, read) timeouts.
1989
+ :type _request_timeout: int, tuple(int, int), optional
1990
+ :param _request_auth: set to override the auth_settings for an a single
1991
+ request; this effectively ignores the
1992
+ authentication in the spec for a single request.
1993
+ :type _request_auth: dict, optional
1994
+ :param _content_type: force content-type for the request.
1995
+ :type _content_type: str, Optional
1996
+ :param _headers: set to override the headers for a single
1997
+ request; this effectively ignores the headers
1998
+ in the spec for a single request.
1999
+ :type _headers: dict, optional
2000
+ :param _host_index: set to override the host_index for a single
2001
+ request; this effectively ignores the host_index
2002
+ in the spec for a single request.
2003
+ :type _host_index: int, optional
2004
+ :return: Returns the result object.
2005
+ """ # noqa: E501
2006
+
2007
+ _param = self._sharepoint_connector_list_files_serialize(
2008
+ username=username,
2009
+ dataset=dataset,
2010
+ connector_id=connector_id,
2011
+ site_id=site_id,
2012
+ drive_id=drive_id,
2013
+ folder_id=folder_id,
2014
+ notebook_id=notebook_id,
2015
+ q_answer_api_key=q_answer_api_key,
2016
+ _request_auth=_request_auth,
2017
+ _content_type=_content_type,
2018
+ _headers=_headers,
2019
+ _host_index=_host_index
2020
+ )
2021
+
2022
+ _response_types_map: Dict[str, Optional[str]] = {
2023
+ '200': "ListFilesConnectorResponse",
2024
+ }
2025
+ response_data = self.api_client.call_api(
2026
+ *_param,
2027
+ _request_timeout=_request_timeout
2028
+ )
2029
+ response_data.read()
2030
+ return self.api_client.response_deserialize(
2031
+ response_data=response_data,
2032
+ response_types_map=_response_types_map,
2033
+ )
2034
+
2035
+
2036
+ @validate_call
2037
+ def sharepoint_connector_list_files_without_preload_content(
2038
+ self,
2039
+ username: StrictStr,
2040
+ dataset: StrictStr,
2041
+ connector_id: StrictInt,
2042
+ site_id: Optional[StrictStr] = None,
2043
+ drive_id: Optional[StrictStr] = None,
2044
+ folder_id: Optional[StrictStr] = None,
2045
+ notebook_id: Optional[StrictStr] = None,
2046
+ q_answer_api_key: Optional[StrictStr] = None,
2047
+ _request_timeout: Union[
2048
+ None,
2049
+ Annotated[StrictFloat, Field(gt=0)],
2050
+ Tuple[
2051
+ Annotated[StrictFloat, Field(gt=0)],
2052
+ Annotated[StrictFloat, Field(gt=0)]
2053
+ ]
2054
+ ] = None,
2055
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2056
+ _content_type: Optional[StrictStr] = None,
2057
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2058
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2059
+ ) -> RESTResponseType:
2060
+ """sharepoint_connector_list_files
2061
+
2062
+
2063
+ :param username: (required)
2064
+ :type username: str
2065
+ :param dataset: (required)
2066
+ :type dataset: str
2067
+ :param connector_id: (required)
2068
+ :type connector_id: int
2069
+ :param site_id:
2070
+ :type site_id: str
2071
+ :param drive_id:
2072
+ :type drive_id: str
2073
+ :param folder_id:
2074
+ :type folder_id: str
2075
+ :param notebook_id:
2076
+ :type notebook_id: str
2077
+ :param q_answer_api_key:
2078
+ :type q_answer_api_key: str
2079
+ :param _request_timeout: timeout setting for this request. If one
2080
+ number provided, it will be total request
2081
+ timeout. It can also be a pair (tuple) of
2082
+ (connection, read) timeouts.
2083
+ :type _request_timeout: int, tuple(int, int), optional
2084
+ :param _request_auth: set to override the auth_settings for an a single
2085
+ request; this effectively ignores the
2086
+ authentication in the spec for a single request.
2087
+ :type _request_auth: dict, optional
2088
+ :param _content_type: force content-type for the request.
2089
+ :type _content_type: str, Optional
2090
+ :param _headers: set to override the headers for a single
2091
+ request; this effectively ignores the headers
2092
+ in the spec for a single request.
2093
+ :type _headers: dict, optional
2094
+ :param _host_index: set to override the host_index for a single
2095
+ request; this effectively ignores the host_index
2096
+ in the spec for a single request.
2097
+ :type _host_index: int, optional
2098
+ :return: Returns the result object.
2099
+ """ # noqa: E501
2100
+
2101
+ _param = self._sharepoint_connector_list_files_serialize(
2102
+ username=username,
2103
+ dataset=dataset,
2104
+ connector_id=connector_id,
2105
+ site_id=site_id,
2106
+ drive_id=drive_id,
2107
+ folder_id=folder_id,
2108
+ notebook_id=notebook_id,
2109
+ q_answer_api_key=q_answer_api_key,
2110
+ _request_auth=_request_auth,
2111
+ _content_type=_content_type,
2112
+ _headers=_headers,
2113
+ _host_index=_host_index
2114
+ )
2115
+
2116
+ _response_types_map: Dict[str, Optional[str]] = {
2117
+ '200': "ListFilesConnectorResponse",
2118
+ }
2119
+ response_data = self.api_client.call_api(
2120
+ *_param,
2121
+ _request_timeout=_request_timeout
2122
+ )
2123
+ return response_data.response
2124
+
2125
+
2126
+ def _sharepoint_connector_list_files_serialize(
2127
+ self,
2128
+ username,
2129
+ dataset,
2130
+ connector_id,
2131
+ site_id,
2132
+ drive_id,
2133
+ folder_id,
2134
+ notebook_id,
2135
+ q_answer_api_key,
2136
+ _request_auth,
2137
+ _content_type,
2138
+ _headers,
2139
+ _host_index,
2140
+ ) -> RequestSerialized:
2141
+
2142
+ _host = None
2143
+
2144
+ _collection_formats: Dict[str, str] = {
2145
+ }
2146
+
2147
+ _path_params: Dict[str, str] = {}
2148
+ _query_params: List[Tuple[str, str]] = []
2149
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2150
+ _form_params: List[Tuple[str, str]] = []
2151
+ _files: Dict[
2152
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2153
+ ] = {}
2154
+ _body_params: Optional[bytes] = None
2155
+
2156
+ # process the path parameters
2157
+ # process the query parameters
2158
+ if username is not None:
2159
+
2160
+ _query_params.append(('username', username))
2161
+
2162
+ if dataset is not None:
2163
+
2164
+ _query_params.append(('dataset', dataset))
2165
+
2166
+ if connector_id is not None:
2167
+
2168
+ _query_params.append(('connectorId', connector_id))
2169
+
2170
+ if site_id is not None:
2171
+
2172
+ _query_params.append(('siteId', site_id))
2173
+
2174
+ if drive_id is not None:
2175
+
2176
+ _query_params.append(('driveId', drive_id))
2177
+
2178
+ if folder_id is not None:
2179
+
2180
+ _query_params.append(('folderId', folder_id))
2181
+
2182
+ if notebook_id is not None:
2183
+
2184
+ _query_params.append(('notebookId', notebook_id))
2185
+
2186
+ # process the header parameters
2187
+ if q_answer_api_key is not None:
2188
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
2189
+ # process the form parameters
2190
+ # process the body parameter
2191
+
2192
+
2193
+ # set the HTTP header `Accept`
2194
+ if 'Accept' not in _header_params:
2195
+ _header_params['Accept'] = self.api_client.select_header_accept(
2196
+ [
2197
+ '*/*'
2198
+ ]
2199
+ )
2200
+
2201
+
2202
+ # authentication setting
2203
+ _auth_settings: List[str] = [
2204
+ 'QAnswer-Api-Key',
2205
+ 'Bearer'
2206
+ ]
2207
+
2208
+ return self.api_client.param_serialize(
2209
+ method='GET',
2210
+ resource_path='/api/connectors/sharepoint/list',
2211
+ path_params=_path_params,
2212
+ query_params=_query_params,
2213
+ header_params=_header_params,
2214
+ body=_body_params,
2215
+ post_params=_form_params,
2216
+ files=_files,
2217
+ auth_settings=_auth_settings,
2218
+ collection_formats=_collection_formats,
2219
+ _host=_host,
2220
+ _request_auth=_request_auth
2221
+ )
2222
+
2223
+
2224
+
2225
+
2226
+ @validate_call
2227
+ def sharepoint_search_files(
2228
+ self,
2229
+ username: StrictStr,
2230
+ dataset: StrictStr,
2231
+ connector_id: StrictInt,
2232
+ query: StrictStr,
2233
+ item_type: Optional[StrictStr] = None,
2234
+ site_id: Optional[StrictStr] = None,
2235
+ q_answer_api_key: Optional[StrictStr] = None,
2236
+ _request_timeout: Union[
2237
+ None,
2238
+ Annotated[StrictFloat, Field(gt=0)],
2239
+ Tuple[
2240
+ Annotated[StrictFloat, Field(gt=0)],
2241
+ Annotated[StrictFloat, Field(gt=0)]
2242
+ ]
2243
+ ] = None,
2244
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2245
+ _content_type: Optional[StrictStr] = None,
2246
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2247
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2248
+ ) -> ListFilesConnectorResponse:
2249
+ """sharepoint_search_files
2250
+
2251
+
2252
+ :param username: (required)
2253
+ :type username: str
2254
+ :param dataset: (required)
2255
+ :type dataset: str
2256
+ :param connector_id: (required)
2257
+ :type connector_id: int
2258
+ :param query: (required)
2259
+ :type query: str
2260
+ :param item_type:
2261
+ :type item_type: str
2262
+ :param site_id:
2263
+ :type site_id: str
2264
+ :param q_answer_api_key:
2265
+ :type q_answer_api_key: str
2266
+ :param _request_timeout: timeout setting for this request. If one
2267
+ number provided, it will be total request
2268
+ timeout. It can also be a pair (tuple) of
2269
+ (connection, read) timeouts.
2270
+ :type _request_timeout: int, tuple(int, int), optional
2271
+ :param _request_auth: set to override the auth_settings for an a single
2272
+ request; this effectively ignores the
2273
+ authentication in the spec for a single request.
2274
+ :type _request_auth: dict, optional
2275
+ :param _content_type: force content-type for the request.
2276
+ :type _content_type: str, Optional
2277
+ :param _headers: set to override the headers for a single
2278
+ request; this effectively ignores the headers
2279
+ in the spec for a single request.
2280
+ :type _headers: dict, optional
2281
+ :param _host_index: set to override the host_index for a single
2282
+ request; this effectively ignores the host_index
2283
+ in the spec for a single request.
2284
+ :type _host_index: int, optional
2285
+ :return: Returns the result object.
2286
+ """ # noqa: E501
2287
+
2288
+ _param = self._sharepoint_search_files_serialize(
2289
+ username=username,
2290
+ dataset=dataset,
2291
+ connector_id=connector_id,
2292
+ query=query,
2293
+ item_type=item_type,
2294
+ site_id=site_id,
2295
+ q_answer_api_key=q_answer_api_key,
2296
+ _request_auth=_request_auth,
2297
+ _content_type=_content_type,
2298
+ _headers=_headers,
2299
+ _host_index=_host_index
2300
+ )
2301
+
2302
+ _response_types_map: Dict[str, Optional[str]] = {
2303
+ '200': "ListFilesConnectorResponse",
2304
+ }
2305
+ response_data = self.api_client.call_api(
2306
+ *_param,
2307
+ _request_timeout=_request_timeout
2308
+ )
2309
+ response_data.read()
2310
+ return self.api_client.response_deserialize(
2311
+ response_data=response_data,
2312
+ response_types_map=_response_types_map,
2313
+ ).data
2314
+
2315
+
2316
+ @validate_call
2317
+ def sharepoint_search_files_with_http_info(
2318
+ self,
2319
+ username: StrictStr,
2320
+ dataset: StrictStr,
2321
+ connector_id: StrictInt,
2322
+ query: StrictStr,
2323
+ item_type: Optional[StrictStr] = None,
2324
+ site_id: Optional[StrictStr] = None,
2325
+ q_answer_api_key: Optional[StrictStr] = None,
2326
+ _request_timeout: Union[
2327
+ None,
2328
+ Annotated[StrictFloat, Field(gt=0)],
2329
+ Tuple[
2330
+ Annotated[StrictFloat, Field(gt=0)],
2331
+ Annotated[StrictFloat, Field(gt=0)]
2332
+ ]
2333
+ ] = None,
2334
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2335
+ _content_type: Optional[StrictStr] = None,
2336
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2337
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2338
+ ) -> ApiResponse[ListFilesConnectorResponse]:
2339
+ """sharepoint_search_files
2340
+
2341
+
2342
+ :param username: (required)
2343
+ :type username: str
2344
+ :param dataset: (required)
2345
+ :type dataset: str
2346
+ :param connector_id: (required)
2347
+ :type connector_id: int
2348
+ :param query: (required)
2349
+ :type query: str
2350
+ :param item_type:
2351
+ :type item_type: str
2352
+ :param site_id:
2353
+ :type site_id: str
2354
+ :param q_answer_api_key:
2355
+ :type q_answer_api_key: str
2356
+ :param _request_timeout: timeout setting for this request. If one
2357
+ number provided, it will be total request
2358
+ timeout. It can also be a pair (tuple) of
2359
+ (connection, read) timeouts.
2360
+ :type _request_timeout: int, tuple(int, int), optional
2361
+ :param _request_auth: set to override the auth_settings for an a single
2362
+ request; this effectively ignores the
2363
+ authentication in the spec for a single request.
2364
+ :type _request_auth: dict, optional
2365
+ :param _content_type: force content-type for the request.
2366
+ :type _content_type: str, Optional
2367
+ :param _headers: set to override the headers for a single
2368
+ request; this effectively ignores the headers
2369
+ in the spec for a single request.
2370
+ :type _headers: dict, optional
2371
+ :param _host_index: set to override the host_index for a single
2372
+ request; this effectively ignores the host_index
2373
+ in the spec for a single request.
2374
+ :type _host_index: int, optional
2375
+ :return: Returns the result object.
2376
+ """ # noqa: E501
2377
+
2378
+ _param = self._sharepoint_search_files_serialize(
2379
+ username=username,
2380
+ dataset=dataset,
2381
+ connector_id=connector_id,
2382
+ query=query,
2383
+ item_type=item_type,
2384
+ site_id=site_id,
2385
+ q_answer_api_key=q_answer_api_key,
2386
+ _request_auth=_request_auth,
2387
+ _content_type=_content_type,
2388
+ _headers=_headers,
2389
+ _host_index=_host_index
2390
+ )
2391
+
2392
+ _response_types_map: Dict[str, Optional[str]] = {
2393
+ '200': "ListFilesConnectorResponse",
2394
+ }
2395
+ response_data = self.api_client.call_api(
2396
+ *_param,
2397
+ _request_timeout=_request_timeout
2398
+ )
2399
+ response_data.read()
2400
+ return self.api_client.response_deserialize(
2401
+ response_data=response_data,
2402
+ response_types_map=_response_types_map,
2403
+ )
2404
+
2405
+
2406
+ @validate_call
2407
+ def sharepoint_search_files_without_preload_content(
2408
+ self,
2409
+ username: StrictStr,
2410
+ dataset: StrictStr,
2411
+ connector_id: StrictInt,
2412
+ query: StrictStr,
2413
+ item_type: Optional[StrictStr] = None,
2414
+ site_id: Optional[StrictStr] = None,
2415
+ q_answer_api_key: Optional[StrictStr] = None,
2416
+ _request_timeout: Union[
2417
+ None,
2418
+ Annotated[StrictFloat, Field(gt=0)],
2419
+ Tuple[
2420
+ Annotated[StrictFloat, Field(gt=0)],
2421
+ Annotated[StrictFloat, Field(gt=0)]
2422
+ ]
2423
+ ] = None,
2424
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2425
+ _content_type: Optional[StrictStr] = None,
2426
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2427
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2428
+ ) -> RESTResponseType:
2429
+ """sharepoint_search_files
2430
+
2431
+
2432
+ :param username: (required)
2433
+ :type username: str
2434
+ :param dataset: (required)
2435
+ :type dataset: str
2436
+ :param connector_id: (required)
2437
+ :type connector_id: int
2438
+ :param query: (required)
2439
+ :type query: str
2440
+ :param item_type:
2441
+ :type item_type: str
2442
+ :param site_id:
2443
+ :type site_id: str
2444
+ :param q_answer_api_key:
2445
+ :type q_answer_api_key: str
2446
+ :param _request_timeout: timeout setting for this request. If one
2447
+ number provided, it will be total request
2448
+ timeout. It can also be a pair (tuple) of
2449
+ (connection, read) timeouts.
2450
+ :type _request_timeout: int, tuple(int, int), optional
2451
+ :param _request_auth: set to override the auth_settings for an a single
2452
+ request; this effectively ignores the
2453
+ authentication in the spec for a single request.
2454
+ :type _request_auth: dict, optional
2455
+ :param _content_type: force content-type for the request.
2456
+ :type _content_type: str, Optional
2457
+ :param _headers: set to override the headers for a single
2458
+ request; this effectively ignores the headers
2459
+ in the spec for a single request.
2460
+ :type _headers: dict, optional
2461
+ :param _host_index: set to override the host_index for a single
2462
+ request; this effectively ignores the host_index
2463
+ in the spec for a single request.
2464
+ :type _host_index: int, optional
2465
+ :return: Returns the result object.
2466
+ """ # noqa: E501
2467
+
2468
+ _param = self._sharepoint_search_files_serialize(
2469
+ username=username,
2470
+ dataset=dataset,
2471
+ connector_id=connector_id,
2472
+ query=query,
2473
+ item_type=item_type,
2474
+ site_id=site_id,
2475
+ q_answer_api_key=q_answer_api_key,
2476
+ _request_auth=_request_auth,
2477
+ _content_type=_content_type,
2478
+ _headers=_headers,
2479
+ _host_index=_host_index
2480
+ )
2481
+
2482
+ _response_types_map: Dict[str, Optional[str]] = {
2483
+ '200': "ListFilesConnectorResponse",
2484
+ }
2485
+ response_data = self.api_client.call_api(
2486
+ *_param,
2487
+ _request_timeout=_request_timeout
2488
+ )
2489
+ return response_data.response
2490
+
2491
+
2492
+ def _sharepoint_search_files_serialize(
2493
+ self,
2494
+ username,
2495
+ dataset,
2496
+ connector_id,
2497
+ query,
2498
+ item_type,
2499
+ site_id,
2500
+ q_answer_api_key,
2501
+ _request_auth,
2502
+ _content_type,
2503
+ _headers,
2504
+ _host_index,
2505
+ ) -> RequestSerialized:
2506
+
2507
+ _host = None
2508
+
2509
+ _collection_formats: Dict[str, str] = {
2510
+ }
2511
+
2512
+ _path_params: Dict[str, str] = {}
2513
+ _query_params: List[Tuple[str, str]] = []
2514
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2515
+ _form_params: List[Tuple[str, str]] = []
2516
+ _files: Dict[
2517
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2518
+ ] = {}
2519
+ _body_params: Optional[bytes] = None
2520
+
2521
+ # process the path parameters
2522
+ # process the query parameters
2523
+ if username is not None:
2524
+
2525
+ _query_params.append(('username', username))
2526
+
2527
+ if dataset is not None:
2528
+
2529
+ _query_params.append(('dataset', dataset))
2530
+
2531
+ if connector_id is not None:
2532
+
2533
+ _query_params.append(('connectorId', connector_id))
2534
+
2535
+ if query is not None:
2536
+
2537
+ _query_params.append(('query', query))
2538
+
2539
+ if item_type is not None:
2540
+
2541
+ _query_params.append(('itemType', item_type))
2542
+
2543
+ if site_id is not None:
2544
+
2545
+ _query_params.append(('siteId', site_id))
2546
+
2547
+ # process the header parameters
2548
+ if q_answer_api_key is not None:
2549
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
2550
+ # process the form parameters
2551
+ # process the body parameter
2552
+
2553
+
2554
+ # set the HTTP header `Accept`
2555
+ if 'Accept' not in _header_params:
2556
+ _header_params['Accept'] = self.api_client.select_header_accept(
2557
+ [
2558
+ '*/*'
2559
+ ]
2560
+ )
2561
+
2562
+
2563
+ # authentication setting
2564
+ _auth_settings: List[str] = [
2565
+ 'QAnswer-Api-Key',
2566
+ 'Bearer'
2567
+ ]
2568
+
2569
+ return self.api_client.param_serialize(
2570
+ method='GET',
2571
+ resource_path='/api/connectors/sharepoint/search',
2572
+ path_params=_path_params,
2573
+ query_params=_query_params,
2574
+ header_params=_header_params,
2575
+ body=_body_params,
2576
+ post_params=_form_params,
2577
+ files=_files,
2578
+ auth_settings=_auth_settings,
2579
+ collection_formats=_collection_formats,
2580
+ _host=_host,
2581
+ _request_auth=_request_auth
2582
+ )
2583
+
2584
+