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,2396 @@
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 StrictStr
20
+ from typing import List, Optional
21
+ from qanswer_sdk.models.qa_metadata_payload import QaMetadataPayload
22
+ from qanswer_sdk.models.tag_payload import TagPayload
23
+ from qanswer_sdk.models.tag_qa_list_payload import TagQAListPayload
24
+
25
+ from qanswer_sdk.api_client import ApiClient, RequestSerialized
26
+ from qanswer_sdk.api_response import ApiResponse
27
+ from qanswer_sdk.rest import RESTResponseType
28
+
29
+
30
+ class TagApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ def add_tag(
45
+ self,
46
+ tag: StrictStr,
47
+ dataset: StrictStr,
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> None:
61
+ """Add a tag to a dataset
62
+
63
+
64
+ :param tag: (required)
65
+ :type tag: str
66
+ :param dataset: (required)
67
+ :type dataset: str
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+
90
+ _param = self._add_tag_serialize(
91
+ tag=tag,
92
+ dataset=dataset,
93
+ _request_auth=_request_auth,
94
+ _content_type=_content_type,
95
+ _headers=_headers,
96
+ _host_index=_host_index
97
+ )
98
+
99
+ _response_types_map: Dict[str, Optional[str]] = {
100
+ '200': None,
101
+ }
102
+ response_data = self.api_client.call_api(
103
+ *_param,
104
+ _request_timeout=_request_timeout
105
+ )
106
+ response_data.read()
107
+ return self.api_client.response_deserialize(
108
+ response_data=response_data,
109
+ response_types_map=_response_types_map,
110
+ ).data
111
+
112
+
113
+ @validate_call
114
+ def add_tag_with_http_info(
115
+ self,
116
+ tag: StrictStr,
117
+ dataset: StrictStr,
118
+ _request_timeout: Union[
119
+ None,
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Tuple[
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Annotated[StrictFloat, Field(gt=0)]
124
+ ]
125
+ ] = None,
126
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
127
+ _content_type: Optional[StrictStr] = None,
128
+ _headers: Optional[Dict[StrictStr, Any]] = None,
129
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
+ ) -> ApiResponse[None]:
131
+ """Add a tag to a dataset
132
+
133
+
134
+ :param tag: (required)
135
+ :type tag: str
136
+ :param dataset: (required)
137
+ :type dataset: str
138
+ :param _request_timeout: timeout setting for this request. If one
139
+ number provided, it will be total request
140
+ timeout. It can also be a pair (tuple) of
141
+ (connection, read) timeouts.
142
+ :type _request_timeout: int, tuple(int, int), optional
143
+ :param _request_auth: set to override the auth_settings for an a single
144
+ request; this effectively ignores the
145
+ authentication in the spec for a single request.
146
+ :type _request_auth: dict, optional
147
+ :param _content_type: force content-type for the request.
148
+ :type _content_type: str, Optional
149
+ :param _headers: set to override the headers for a single
150
+ request; this effectively ignores the headers
151
+ in the spec for a single request.
152
+ :type _headers: dict, optional
153
+ :param _host_index: set to override the host_index for a single
154
+ request; this effectively ignores the host_index
155
+ in the spec for a single request.
156
+ :type _host_index: int, optional
157
+ :return: Returns the result object.
158
+ """ # noqa: E501
159
+
160
+ _param = self._add_tag_serialize(
161
+ tag=tag,
162
+ dataset=dataset,
163
+ _request_auth=_request_auth,
164
+ _content_type=_content_type,
165
+ _headers=_headers,
166
+ _host_index=_host_index
167
+ )
168
+
169
+ _response_types_map: Dict[str, Optional[str]] = {
170
+ '200': None,
171
+ }
172
+ response_data = self.api_client.call_api(
173
+ *_param,
174
+ _request_timeout=_request_timeout
175
+ )
176
+ response_data.read()
177
+ return self.api_client.response_deserialize(
178
+ response_data=response_data,
179
+ response_types_map=_response_types_map,
180
+ )
181
+
182
+
183
+ @validate_call
184
+ def add_tag_without_preload_content(
185
+ self,
186
+ tag: StrictStr,
187
+ dataset: StrictStr,
188
+ _request_timeout: Union[
189
+ None,
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Tuple[
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Annotated[StrictFloat, Field(gt=0)]
194
+ ]
195
+ ] = None,
196
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
197
+ _content_type: Optional[StrictStr] = None,
198
+ _headers: Optional[Dict[StrictStr, Any]] = None,
199
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
+ ) -> RESTResponseType:
201
+ """Add a tag to a dataset
202
+
203
+
204
+ :param tag: (required)
205
+ :type tag: str
206
+ :param dataset: (required)
207
+ :type dataset: str
208
+ :param _request_timeout: timeout setting for this request. If one
209
+ number provided, it will be total request
210
+ timeout. It can also be a pair (tuple) of
211
+ (connection, read) timeouts.
212
+ :type _request_timeout: int, tuple(int, int), optional
213
+ :param _request_auth: set to override the auth_settings for an a single
214
+ request; this effectively ignores the
215
+ authentication in the spec for a single request.
216
+ :type _request_auth: dict, optional
217
+ :param _content_type: force content-type for the request.
218
+ :type _content_type: str, Optional
219
+ :param _headers: set to override the headers for a single
220
+ request; this effectively ignores the headers
221
+ in the spec for a single request.
222
+ :type _headers: dict, optional
223
+ :param _host_index: set to override the host_index for a single
224
+ request; this effectively ignores the host_index
225
+ in the spec for a single request.
226
+ :type _host_index: int, optional
227
+ :return: Returns the result object.
228
+ """ # noqa: E501
229
+
230
+ _param = self._add_tag_serialize(
231
+ tag=tag,
232
+ dataset=dataset,
233
+ _request_auth=_request_auth,
234
+ _content_type=_content_type,
235
+ _headers=_headers,
236
+ _host_index=_host_index
237
+ )
238
+
239
+ _response_types_map: Dict[str, Optional[str]] = {
240
+ '200': None,
241
+ }
242
+ response_data = self.api_client.call_api(
243
+ *_param,
244
+ _request_timeout=_request_timeout
245
+ )
246
+ return response_data.response
247
+
248
+
249
+ def _add_tag_serialize(
250
+ self,
251
+ tag,
252
+ dataset,
253
+ _request_auth,
254
+ _content_type,
255
+ _headers,
256
+ _host_index,
257
+ ) -> RequestSerialized:
258
+
259
+ _host = None
260
+
261
+ _collection_formats: Dict[str, str] = {
262
+ }
263
+
264
+ _path_params: Dict[str, str] = {}
265
+ _query_params: List[Tuple[str, str]] = []
266
+ _header_params: Dict[str, Optional[str]] = _headers or {}
267
+ _form_params: List[Tuple[str, str]] = []
268
+ _files: Dict[
269
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
270
+ ] = {}
271
+ _body_params: Optional[bytes] = None
272
+
273
+ # process the path parameters
274
+ # process the query parameters
275
+ if tag is not None:
276
+
277
+ _query_params.append(('tag', tag))
278
+
279
+ if dataset is not None:
280
+
281
+ _query_params.append(('dataset', dataset))
282
+
283
+ # process the header parameters
284
+ # process the form parameters
285
+ # process the body parameter
286
+
287
+
288
+
289
+
290
+ # authentication setting
291
+ _auth_settings: List[str] = [
292
+ 'QAnswer-Api-Key',
293
+ 'Bearer'
294
+ ]
295
+
296
+ return self.api_client.param_serialize(
297
+ method='POST',
298
+ resource_path='/api/tag/qa/add',
299
+ path_params=_path_params,
300
+ query_params=_query_params,
301
+ header_params=_header_params,
302
+ body=_body_params,
303
+ post_params=_form_params,
304
+ files=_files,
305
+ auth_settings=_auth_settings,
306
+ collection_formats=_collection_formats,
307
+ _host=_host,
308
+ _request_auth=_request_auth
309
+ )
310
+
311
+
312
+
313
+
314
+ @validate_call
315
+ def create_tag(
316
+ self,
317
+ name: StrictStr,
318
+ _request_timeout: Union[
319
+ None,
320
+ Annotated[StrictFloat, Field(gt=0)],
321
+ Tuple[
322
+ Annotated[StrictFloat, Field(gt=0)],
323
+ Annotated[StrictFloat, Field(gt=0)]
324
+ ]
325
+ ] = None,
326
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
327
+ _content_type: Optional[StrictStr] = None,
328
+ _headers: Optional[Dict[StrictStr, Any]] = None,
329
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
330
+ ) -> None:
331
+ """Create a new tag
332
+
333
+
334
+ :param name: (required)
335
+ :type name: str
336
+ :param _request_timeout: timeout setting for this request. If one
337
+ number provided, it will be total request
338
+ timeout. It can also be a pair (tuple) of
339
+ (connection, read) timeouts.
340
+ :type _request_timeout: int, tuple(int, int), optional
341
+ :param _request_auth: set to override the auth_settings for an a single
342
+ request; this effectively ignores the
343
+ authentication in the spec for a single request.
344
+ :type _request_auth: dict, optional
345
+ :param _content_type: force content-type for the request.
346
+ :type _content_type: str, Optional
347
+ :param _headers: set to override the headers for a single
348
+ request; this effectively ignores the headers
349
+ in the spec for a single request.
350
+ :type _headers: dict, optional
351
+ :param _host_index: set to override the host_index for a single
352
+ request; this effectively ignores the host_index
353
+ in the spec for a single request.
354
+ :type _host_index: int, optional
355
+ :return: Returns the result object.
356
+ """ # noqa: E501
357
+
358
+ _param = self._create_tag_serialize(
359
+ name=name,
360
+ _request_auth=_request_auth,
361
+ _content_type=_content_type,
362
+ _headers=_headers,
363
+ _host_index=_host_index
364
+ )
365
+
366
+ _response_types_map: Dict[str, Optional[str]] = {
367
+ '200': None,
368
+ }
369
+ response_data = self.api_client.call_api(
370
+ *_param,
371
+ _request_timeout=_request_timeout
372
+ )
373
+ response_data.read()
374
+ return self.api_client.response_deserialize(
375
+ response_data=response_data,
376
+ response_types_map=_response_types_map,
377
+ ).data
378
+
379
+
380
+ @validate_call
381
+ def create_tag_with_http_info(
382
+ self,
383
+ name: StrictStr,
384
+ _request_timeout: Union[
385
+ None,
386
+ Annotated[StrictFloat, Field(gt=0)],
387
+ Tuple[
388
+ Annotated[StrictFloat, Field(gt=0)],
389
+ Annotated[StrictFloat, Field(gt=0)]
390
+ ]
391
+ ] = None,
392
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
393
+ _content_type: Optional[StrictStr] = None,
394
+ _headers: Optional[Dict[StrictStr, Any]] = None,
395
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
396
+ ) -> ApiResponse[None]:
397
+ """Create a new tag
398
+
399
+
400
+ :param name: (required)
401
+ :type name: str
402
+ :param _request_timeout: timeout setting for this request. If one
403
+ number provided, it will be total request
404
+ timeout. It can also be a pair (tuple) of
405
+ (connection, read) timeouts.
406
+ :type _request_timeout: int, tuple(int, int), optional
407
+ :param _request_auth: set to override the auth_settings for an a single
408
+ request; this effectively ignores the
409
+ authentication in the spec for a single request.
410
+ :type _request_auth: dict, optional
411
+ :param _content_type: force content-type for the request.
412
+ :type _content_type: str, Optional
413
+ :param _headers: set to override the headers for a single
414
+ request; this effectively ignores the headers
415
+ in the spec for a single request.
416
+ :type _headers: dict, optional
417
+ :param _host_index: set to override the host_index for a single
418
+ request; this effectively ignores the host_index
419
+ in the spec for a single request.
420
+ :type _host_index: int, optional
421
+ :return: Returns the result object.
422
+ """ # noqa: E501
423
+
424
+ _param = self._create_tag_serialize(
425
+ name=name,
426
+ _request_auth=_request_auth,
427
+ _content_type=_content_type,
428
+ _headers=_headers,
429
+ _host_index=_host_index
430
+ )
431
+
432
+ _response_types_map: Dict[str, Optional[str]] = {
433
+ '200': None,
434
+ }
435
+ response_data = self.api_client.call_api(
436
+ *_param,
437
+ _request_timeout=_request_timeout
438
+ )
439
+ response_data.read()
440
+ return self.api_client.response_deserialize(
441
+ response_data=response_data,
442
+ response_types_map=_response_types_map,
443
+ )
444
+
445
+
446
+ @validate_call
447
+ def create_tag_without_preload_content(
448
+ self,
449
+ name: StrictStr,
450
+ _request_timeout: Union[
451
+ None,
452
+ Annotated[StrictFloat, Field(gt=0)],
453
+ Tuple[
454
+ Annotated[StrictFloat, Field(gt=0)],
455
+ Annotated[StrictFloat, Field(gt=0)]
456
+ ]
457
+ ] = None,
458
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
459
+ _content_type: Optional[StrictStr] = None,
460
+ _headers: Optional[Dict[StrictStr, Any]] = None,
461
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
462
+ ) -> RESTResponseType:
463
+ """Create a new tag
464
+
465
+
466
+ :param name: (required)
467
+ :type name: str
468
+ :param _request_timeout: timeout setting for this request. If one
469
+ number provided, it will be total request
470
+ timeout. It can also be a pair (tuple) of
471
+ (connection, read) timeouts.
472
+ :type _request_timeout: int, tuple(int, int), optional
473
+ :param _request_auth: set to override the auth_settings for an a single
474
+ request; this effectively ignores the
475
+ authentication in the spec for a single request.
476
+ :type _request_auth: dict, optional
477
+ :param _content_type: force content-type for the request.
478
+ :type _content_type: str, Optional
479
+ :param _headers: set to override the headers for a single
480
+ request; this effectively ignores the headers
481
+ in the spec for a single request.
482
+ :type _headers: dict, optional
483
+ :param _host_index: set to override the host_index for a single
484
+ request; this effectively ignores the host_index
485
+ in the spec for a single request.
486
+ :type _host_index: int, optional
487
+ :return: Returns the result object.
488
+ """ # noqa: E501
489
+
490
+ _param = self._create_tag_serialize(
491
+ name=name,
492
+ _request_auth=_request_auth,
493
+ _content_type=_content_type,
494
+ _headers=_headers,
495
+ _host_index=_host_index
496
+ )
497
+
498
+ _response_types_map: Dict[str, Optional[str]] = {
499
+ '200': None,
500
+ }
501
+ response_data = self.api_client.call_api(
502
+ *_param,
503
+ _request_timeout=_request_timeout
504
+ )
505
+ return response_data.response
506
+
507
+
508
+ def _create_tag_serialize(
509
+ self,
510
+ name,
511
+ _request_auth,
512
+ _content_type,
513
+ _headers,
514
+ _host_index,
515
+ ) -> RequestSerialized:
516
+
517
+ _host = None
518
+
519
+ _collection_formats: Dict[str, str] = {
520
+ }
521
+
522
+ _path_params: Dict[str, str] = {}
523
+ _query_params: List[Tuple[str, str]] = []
524
+ _header_params: Dict[str, Optional[str]] = _headers or {}
525
+ _form_params: List[Tuple[str, str]] = []
526
+ _files: Dict[
527
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
528
+ ] = {}
529
+ _body_params: Optional[bytes] = None
530
+
531
+ # process the path parameters
532
+ # process the query parameters
533
+ if name is not None:
534
+
535
+ _query_params.append(('name', name))
536
+
537
+ # process the header parameters
538
+ # process the form parameters
539
+ # process the body parameter
540
+
541
+
542
+
543
+
544
+ # authentication setting
545
+ _auth_settings: List[str] = [
546
+ 'QAnswer-Api-Key',
547
+ 'Bearer'
548
+ ]
549
+
550
+ return self.api_client.param_serialize(
551
+ method='POST',
552
+ resource_path='/api/tag/create',
553
+ path_params=_path_params,
554
+ query_params=_query_params,
555
+ header_params=_header_params,
556
+ body=_body_params,
557
+ post_params=_form_params,
558
+ files=_files,
559
+ auth_settings=_auth_settings,
560
+ collection_formats=_collection_formats,
561
+ _host=_host,
562
+ _request_auth=_request_auth
563
+ )
564
+
565
+
566
+
567
+
568
+ @validate_call
569
+ def delete_tag(
570
+ self,
571
+ name: StrictStr,
572
+ _request_timeout: Union[
573
+ None,
574
+ Annotated[StrictFloat, Field(gt=0)],
575
+ Tuple[
576
+ Annotated[StrictFloat, Field(gt=0)],
577
+ Annotated[StrictFloat, Field(gt=0)]
578
+ ]
579
+ ] = None,
580
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
581
+ _content_type: Optional[StrictStr] = None,
582
+ _headers: Optional[Dict[StrictStr, Any]] = None,
583
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
584
+ ) -> None:
585
+ """Delete a tag
586
+
587
+
588
+ :param name: (required)
589
+ :type name: str
590
+ :param _request_timeout: timeout setting for this request. If one
591
+ number provided, it will be total request
592
+ timeout. It can also be a pair (tuple) of
593
+ (connection, read) timeouts.
594
+ :type _request_timeout: int, tuple(int, int), optional
595
+ :param _request_auth: set to override the auth_settings for an a single
596
+ request; this effectively ignores the
597
+ authentication in the spec for a single request.
598
+ :type _request_auth: dict, optional
599
+ :param _content_type: force content-type for the request.
600
+ :type _content_type: str, Optional
601
+ :param _headers: set to override the headers for a single
602
+ request; this effectively ignores the headers
603
+ in the spec for a single request.
604
+ :type _headers: dict, optional
605
+ :param _host_index: set to override the host_index for a single
606
+ request; this effectively ignores the host_index
607
+ in the spec for a single request.
608
+ :type _host_index: int, optional
609
+ :return: Returns the result object.
610
+ """ # noqa: E501
611
+
612
+ _param = self._delete_tag_serialize(
613
+ name=name,
614
+ _request_auth=_request_auth,
615
+ _content_type=_content_type,
616
+ _headers=_headers,
617
+ _host_index=_host_index
618
+ )
619
+
620
+ _response_types_map: Dict[str, Optional[str]] = {
621
+ '200': None,
622
+ }
623
+ response_data = self.api_client.call_api(
624
+ *_param,
625
+ _request_timeout=_request_timeout
626
+ )
627
+ response_data.read()
628
+ return self.api_client.response_deserialize(
629
+ response_data=response_data,
630
+ response_types_map=_response_types_map,
631
+ ).data
632
+
633
+
634
+ @validate_call
635
+ def delete_tag_with_http_info(
636
+ self,
637
+ name: StrictStr,
638
+ _request_timeout: Union[
639
+ None,
640
+ Annotated[StrictFloat, Field(gt=0)],
641
+ Tuple[
642
+ Annotated[StrictFloat, Field(gt=0)],
643
+ Annotated[StrictFloat, Field(gt=0)]
644
+ ]
645
+ ] = None,
646
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
647
+ _content_type: Optional[StrictStr] = None,
648
+ _headers: Optional[Dict[StrictStr, Any]] = None,
649
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
650
+ ) -> ApiResponse[None]:
651
+ """Delete a tag
652
+
653
+
654
+ :param name: (required)
655
+ :type name: str
656
+ :param _request_timeout: timeout setting for this request. If one
657
+ number provided, it will be total request
658
+ timeout. It can also be a pair (tuple) of
659
+ (connection, read) timeouts.
660
+ :type _request_timeout: int, tuple(int, int), optional
661
+ :param _request_auth: set to override the auth_settings for an a single
662
+ request; this effectively ignores the
663
+ authentication in the spec for a single request.
664
+ :type _request_auth: dict, optional
665
+ :param _content_type: force content-type for the request.
666
+ :type _content_type: str, Optional
667
+ :param _headers: set to override the headers for a single
668
+ request; this effectively ignores the headers
669
+ in the spec for a single request.
670
+ :type _headers: dict, optional
671
+ :param _host_index: set to override the host_index for a single
672
+ request; this effectively ignores the host_index
673
+ in the spec for a single request.
674
+ :type _host_index: int, optional
675
+ :return: Returns the result object.
676
+ """ # noqa: E501
677
+
678
+ _param = self._delete_tag_serialize(
679
+ name=name,
680
+ _request_auth=_request_auth,
681
+ _content_type=_content_type,
682
+ _headers=_headers,
683
+ _host_index=_host_index
684
+ )
685
+
686
+ _response_types_map: Dict[str, Optional[str]] = {
687
+ '200': None,
688
+ }
689
+ response_data = self.api_client.call_api(
690
+ *_param,
691
+ _request_timeout=_request_timeout
692
+ )
693
+ response_data.read()
694
+ return self.api_client.response_deserialize(
695
+ response_data=response_data,
696
+ response_types_map=_response_types_map,
697
+ )
698
+
699
+
700
+ @validate_call
701
+ def delete_tag_without_preload_content(
702
+ self,
703
+ name: StrictStr,
704
+ _request_timeout: Union[
705
+ None,
706
+ Annotated[StrictFloat, Field(gt=0)],
707
+ Tuple[
708
+ Annotated[StrictFloat, Field(gt=0)],
709
+ Annotated[StrictFloat, Field(gt=0)]
710
+ ]
711
+ ] = None,
712
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
713
+ _content_type: Optional[StrictStr] = None,
714
+ _headers: Optional[Dict[StrictStr, Any]] = None,
715
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
716
+ ) -> RESTResponseType:
717
+ """Delete a tag
718
+
719
+
720
+ :param name: (required)
721
+ :type name: str
722
+ :param _request_timeout: timeout setting for this request. If one
723
+ number provided, it will be total request
724
+ timeout. It can also be a pair (tuple) of
725
+ (connection, read) timeouts.
726
+ :type _request_timeout: int, tuple(int, int), optional
727
+ :param _request_auth: set to override the auth_settings for an a single
728
+ request; this effectively ignores the
729
+ authentication in the spec for a single request.
730
+ :type _request_auth: dict, optional
731
+ :param _content_type: force content-type for the request.
732
+ :type _content_type: str, Optional
733
+ :param _headers: set to override the headers for a single
734
+ request; this effectively ignores the headers
735
+ in the spec for a single request.
736
+ :type _headers: dict, optional
737
+ :param _host_index: set to override the host_index for a single
738
+ request; this effectively ignores the host_index
739
+ in the spec for a single request.
740
+ :type _host_index: int, optional
741
+ :return: Returns the result object.
742
+ """ # noqa: E501
743
+
744
+ _param = self._delete_tag_serialize(
745
+ name=name,
746
+ _request_auth=_request_auth,
747
+ _content_type=_content_type,
748
+ _headers=_headers,
749
+ _host_index=_host_index
750
+ )
751
+
752
+ _response_types_map: Dict[str, Optional[str]] = {
753
+ '200': None,
754
+ }
755
+ response_data = self.api_client.call_api(
756
+ *_param,
757
+ _request_timeout=_request_timeout
758
+ )
759
+ return response_data.response
760
+
761
+
762
+ def _delete_tag_serialize(
763
+ self,
764
+ name,
765
+ _request_auth,
766
+ _content_type,
767
+ _headers,
768
+ _host_index,
769
+ ) -> RequestSerialized:
770
+
771
+ _host = None
772
+
773
+ _collection_formats: Dict[str, str] = {
774
+ }
775
+
776
+ _path_params: Dict[str, str] = {}
777
+ _query_params: List[Tuple[str, str]] = []
778
+ _header_params: Dict[str, Optional[str]] = _headers or {}
779
+ _form_params: List[Tuple[str, str]] = []
780
+ _files: Dict[
781
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
782
+ ] = {}
783
+ _body_params: Optional[bytes] = None
784
+
785
+ # process the path parameters
786
+ # process the query parameters
787
+ if name is not None:
788
+
789
+ _query_params.append(('name', name))
790
+
791
+ # process the header parameters
792
+ # process the form parameters
793
+ # process the body parameter
794
+
795
+
796
+
797
+
798
+ # authentication setting
799
+ _auth_settings: List[str] = [
800
+ 'QAnswer-Api-Key',
801
+ 'Bearer'
802
+ ]
803
+
804
+ return self.api_client.param_serialize(
805
+ method='DELETE',
806
+ resource_path='/api/tag/delete',
807
+ path_params=_path_params,
808
+ query_params=_query_params,
809
+ header_params=_header_params,
810
+ body=_body_params,
811
+ post_params=_form_params,
812
+ files=_files,
813
+ auth_settings=_auth_settings,
814
+ collection_formats=_collection_formats,
815
+ _host=_host,
816
+ _request_auth=_request_auth
817
+ )
818
+
819
+
820
+
821
+
822
+ @validate_call
823
+ def get1(
824
+ self,
825
+ owner: StrictStr,
826
+ dataset: StrictStr,
827
+ _request_timeout: Union[
828
+ None,
829
+ Annotated[StrictFloat, Field(gt=0)],
830
+ Tuple[
831
+ Annotated[StrictFloat, Field(gt=0)],
832
+ Annotated[StrictFloat, Field(gt=0)]
833
+ ]
834
+ ] = None,
835
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
836
+ _content_type: Optional[StrictStr] = None,
837
+ _headers: Optional[Dict[StrictStr, Any]] = None,
838
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
839
+ ) -> QaMetadataPayload:
840
+ """get1
841
+
842
+
843
+ :param owner: (required)
844
+ :type owner: str
845
+ :param dataset: (required)
846
+ :type dataset: str
847
+ :param _request_timeout: timeout setting for this request. If one
848
+ number provided, it will be total request
849
+ timeout. It can also be a pair (tuple) of
850
+ (connection, read) timeouts.
851
+ :type _request_timeout: int, tuple(int, int), optional
852
+ :param _request_auth: set to override the auth_settings for an a single
853
+ request; this effectively ignores the
854
+ authentication in the spec for a single request.
855
+ :type _request_auth: dict, optional
856
+ :param _content_type: force content-type for the request.
857
+ :type _content_type: str, Optional
858
+ :param _headers: set to override the headers for a single
859
+ request; this effectively ignores the headers
860
+ in the spec for a single request.
861
+ :type _headers: dict, optional
862
+ :param _host_index: set to override the host_index for a single
863
+ request; this effectively ignores the host_index
864
+ in the spec for a single request.
865
+ :type _host_index: int, optional
866
+ :return: Returns the result object.
867
+ """ # noqa: E501
868
+
869
+ _param = self._get1_serialize(
870
+ owner=owner,
871
+ dataset=dataset,
872
+ _request_auth=_request_auth,
873
+ _content_type=_content_type,
874
+ _headers=_headers,
875
+ _host_index=_host_index
876
+ )
877
+
878
+ _response_types_map: Dict[str, Optional[str]] = {
879
+ '200': "QaMetadataPayload",
880
+ }
881
+ response_data = self.api_client.call_api(
882
+ *_param,
883
+ _request_timeout=_request_timeout
884
+ )
885
+ response_data.read()
886
+ return self.api_client.response_deserialize(
887
+ response_data=response_data,
888
+ response_types_map=_response_types_map,
889
+ ).data
890
+
891
+
892
+ @validate_call
893
+ def get1_with_http_info(
894
+ self,
895
+ owner: StrictStr,
896
+ dataset: StrictStr,
897
+ _request_timeout: Union[
898
+ None,
899
+ Annotated[StrictFloat, Field(gt=0)],
900
+ Tuple[
901
+ Annotated[StrictFloat, Field(gt=0)],
902
+ Annotated[StrictFloat, Field(gt=0)]
903
+ ]
904
+ ] = None,
905
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
906
+ _content_type: Optional[StrictStr] = None,
907
+ _headers: Optional[Dict[StrictStr, Any]] = None,
908
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
909
+ ) -> ApiResponse[QaMetadataPayload]:
910
+ """get1
911
+
912
+
913
+ :param owner: (required)
914
+ :type owner: str
915
+ :param dataset: (required)
916
+ :type dataset: str
917
+ :param _request_timeout: timeout setting for this request. If one
918
+ number provided, it will be total request
919
+ timeout. It can also be a pair (tuple) of
920
+ (connection, read) timeouts.
921
+ :type _request_timeout: int, tuple(int, int), optional
922
+ :param _request_auth: set to override the auth_settings for an a single
923
+ request; this effectively ignores the
924
+ authentication in the spec for a single request.
925
+ :type _request_auth: dict, optional
926
+ :param _content_type: force content-type for the request.
927
+ :type _content_type: str, Optional
928
+ :param _headers: set to override the headers for a single
929
+ request; this effectively ignores the headers
930
+ in the spec for a single request.
931
+ :type _headers: dict, optional
932
+ :param _host_index: set to override the host_index for a single
933
+ request; this effectively ignores the host_index
934
+ in the spec for a single request.
935
+ :type _host_index: int, optional
936
+ :return: Returns the result object.
937
+ """ # noqa: E501
938
+
939
+ _param = self._get1_serialize(
940
+ owner=owner,
941
+ dataset=dataset,
942
+ _request_auth=_request_auth,
943
+ _content_type=_content_type,
944
+ _headers=_headers,
945
+ _host_index=_host_index
946
+ )
947
+
948
+ _response_types_map: Dict[str, Optional[str]] = {
949
+ '200': "QaMetadataPayload",
950
+ }
951
+ response_data = self.api_client.call_api(
952
+ *_param,
953
+ _request_timeout=_request_timeout
954
+ )
955
+ response_data.read()
956
+ return self.api_client.response_deserialize(
957
+ response_data=response_data,
958
+ response_types_map=_response_types_map,
959
+ )
960
+
961
+
962
+ @validate_call
963
+ def get1_without_preload_content(
964
+ self,
965
+ owner: StrictStr,
966
+ dataset: StrictStr,
967
+ _request_timeout: Union[
968
+ None,
969
+ Annotated[StrictFloat, Field(gt=0)],
970
+ Tuple[
971
+ Annotated[StrictFloat, Field(gt=0)],
972
+ Annotated[StrictFloat, Field(gt=0)]
973
+ ]
974
+ ] = None,
975
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
976
+ _content_type: Optional[StrictStr] = None,
977
+ _headers: Optional[Dict[StrictStr, Any]] = None,
978
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
979
+ ) -> RESTResponseType:
980
+ """get1
981
+
982
+
983
+ :param owner: (required)
984
+ :type owner: str
985
+ :param dataset: (required)
986
+ :type dataset: str
987
+ :param _request_timeout: timeout setting for this request. If one
988
+ number provided, it will be total request
989
+ timeout. It can also be a pair (tuple) of
990
+ (connection, read) timeouts.
991
+ :type _request_timeout: int, tuple(int, int), optional
992
+ :param _request_auth: set to override the auth_settings for an a single
993
+ request; this effectively ignores the
994
+ authentication in the spec for a single request.
995
+ :type _request_auth: dict, optional
996
+ :param _content_type: force content-type for the request.
997
+ :type _content_type: str, Optional
998
+ :param _headers: set to override the headers for a single
999
+ request; this effectively ignores the headers
1000
+ in the spec for a single request.
1001
+ :type _headers: dict, optional
1002
+ :param _host_index: set to override the host_index for a single
1003
+ request; this effectively ignores the host_index
1004
+ in the spec for a single request.
1005
+ :type _host_index: int, optional
1006
+ :return: Returns the result object.
1007
+ """ # noqa: E501
1008
+
1009
+ _param = self._get1_serialize(
1010
+ owner=owner,
1011
+ dataset=dataset,
1012
+ _request_auth=_request_auth,
1013
+ _content_type=_content_type,
1014
+ _headers=_headers,
1015
+ _host_index=_host_index
1016
+ )
1017
+
1018
+ _response_types_map: Dict[str, Optional[str]] = {
1019
+ '200': "QaMetadataPayload",
1020
+ }
1021
+ response_data = self.api_client.call_api(
1022
+ *_param,
1023
+ _request_timeout=_request_timeout
1024
+ )
1025
+ return response_data.response
1026
+
1027
+
1028
+ def _get1_serialize(
1029
+ self,
1030
+ owner,
1031
+ dataset,
1032
+ _request_auth,
1033
+ _content_type,
1034
+ _headers,
1035
+ _host_index,
1036
+ ) -> RequestSerialized:
1037
+
1038
+ _host = None
1039
+
1040
+ _collection_formats: Dict[str, str] = {
1041
+ }
1042
+
1043
+ _path_params: Dict[str, str] = {}
1044
+ _query_params: List[Tuple[str, str]] = []
1045
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1046
+ _form_params: List[Tuple[str, str]] = []
1047
+ _files: Dict[
1048
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1049
+ ] = {}
1050
+ _body_params: Optional[bytes] = None
1051
+
1052
+ # process the path parameters
1053
+ # process the query parameters
1054
+ if owner is not None:
1055
+
1056
+ _query_params.append(('owner', owner))
1057
+
1058
+ if dataset is not None:
1059
+
1060
+ _query_params.append(('dataset', dataset))
1061
+
1062
+ # process the header parameters
1063
+ # process the form parameters
1064
+ # process the body parameter
1065
+
1066
+
1067
+ # set the HTTP header `Accept`
1068
+ if 'Accept' not in _header_params:
1069
+ _header_params['Accept'] = self.api_client.select_header_accept(
1070
+ [
1071
+ '*/*'
1072
+ ]
1073
+ )
1074
+
1075
+
1076
+ # authentication setting
1077
+ _auth_settings: List[str] = [
1078
+ 'QAnswer-Api-Key',
1079
+ 'Bearer'
1080
+ ]
1081
+
1082
+ return self.api_client.param_serialize(
1083
+ method='GET',
1084
+ resource_path='/api/tag/qaMetadata/get',
1085
+ path_params=_path_params,
1086
+ query_params=_query_params,
1087
+ header_params=_header_params,
1088
+ body=_body_params,
1089
+ post_params=_form_params,
1090
+ files=_files,
1091
+ auth_settings=_auth_settings,
1092
+ collection_formats=_collection_formats,
1093
+ _host=_host,
1094
+ _request_auth=_request_auth
1095
+ )
1096
+
1097
+
1098
+
1099
+
1100
+ @validate_call
1101
+ def get_tags(
1102
+ self,
1103
+ tag: Optional[StrictStr] = None,
1104
+ _request_timeout: Union[
1105
+ None,
1106
+ Annotated[StrictFloat, Field(gt=0)],
1107
+ Tuple[
1108
+ Annotated[StrictFloat, Field(gt=0)],
1109
+ Annotated[StrictFloat, Field(gt=0)]
1110
+ ]
1111
+ ] = None,
1112
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1113
+ _content_type: Optional[StrictStr] = None,
1114
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1115
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1116
+ ) -> TagQAListPayload:
1117
+ """Get the list of dataset form a tag
1118
+
1119
+
1120
+ :param tag:
1121
+ :type tag: str
1122
+ :param _request_timeout: timeout setting for this request. If one
1123
+ number provided, it will be total request
1124
+ timeout. It can also be a pair (tuple) of
1125
+ (connection, read) timeouts.
1126
+ :type _request_timeout: int, tuple(int, int), optional
1127
+ :param _request_auth: set to override the auth_settings for an a single
1128
+ request; this effectively ignores the
1129
+ authentication in the spec for a single request.
1130
+ :type _request_auth: dict, optional
1131
+ :param _content_type: force content-type for the request.
1132
+ :type _content_type: str, Optional
1133
+ :param _headers: set to override the headers for a single
1134
+ request; this effectively ignores the headers
1135
+ in the spec for a single request.
1136
+ :type _headers: dict, optional
1137
+ :param _host_index: set to override the host_index for a single
1138
+ request; this effectively ignores the host_index
1139
+ in the spec for a single request.
1140
+ :type _host_index: int, optional
1141
+ :return: Returns the result object.
1142
+ """ # noqa: E501
1143
+
1144
+ _param = self._get_tags_serialize(
1145
+ tag=tag,
1146
+ _request_auth=_request_auth,
1147
+ _content_type=_content_type,
1148
+ _headers=_headers,
1149
+ _host_index=_host_index
1150
+ )
1151
+
1152
+ _response_types_map: Dict[str, Optional[str]] = {
1153
+ '200': "TagQAListPayload",
1154
+ }
1155
+ response_data = self.api_client.call_api(
1156
+ *_param,
1157
+ _request_timeout=_request_timeout
1158
+ )
1159
+ response_data.read()
1160
+ return self.api_client.response_deserialize(
1161
+ response_data=response_data,
1162
+ response_types_map=_response_types_map,
1163
+ ).data
1164
+
1165
+
1166
+ @validate_call
1167
+ def get_tags_with_http_info(
1168
+ self,
1169
+ tag: Optional[StrictStr] = None,
1170
+ _request_timeout: Union[
1171
+ None,
1172
+ Annotated[StrictFloat, Field(gt=0)],
1173
+ Tuple[
1174
+ Annotated[StrictFloat, Field(gt=0)],
1175
+ Annotated[StrictFloat, Field(gt=0)]
1176
+ ]
1177
+ ] = None,
1178
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1179
+ _content_type: Optional[StrictStr] = None,
1180
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1181
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1182
+ ) -> ApiResponse[TagQAListPayload]:
1183
+ """Get the list of dataset form a tag
1184
+
1185
+
1186
+ :param tag:
1187
+ :type tag: str
1188
+ :param _request_timeout: timeout setting for this request. If one
1189
+ number provided, it will be total request
1190
+ timeout. It can also be a pair (tuple) of
1191
+ (connection, read) timeouts.
1192
+ :type _request_timeout: int, tuple(int, int), optional
1193
+ :param _request_auth: set to override the auth_settings for an a single
1194
+ request; this effectively ignores the
1195
+ authentication in the spec for a single request.
1196
+ :type _request_auth: dict, optional
1197
+ :param _content_type: force content-type for the request.
1198
+ :type _content_type: str, Optional
1199
+ :param _headers: set to override the headers for a single
1200
+ request; this effectively ignores the headers
1201
+ in the spec for a single request.
1202
+ :type _headers: dict, optional
1203
+ :param _host_index: set to override the host_index for a single
1204
+ request; this effectively ignores the host_index
1205
+ in the spec for a single request.
1206
+ :type _host_index: int, optional
1207
+ :return: Returns the result object.
1208
+ """ # noqa: E501
1209
+
1210
+ _param = self._get_tags_serialize(
1211
+ tag=tag,
1212
+ _request_auth=_request_auth,
1213
+ _content_type=_content_type,
1214
+ _headers=_headers,
1215
+ _host_index=_host_index
1216
+ )
1217
+
1218
+ _response_types_map: Dict[str, Optional[str]] = {
1219
+ '200': "TagQAListPayload",
1220
+ }
1221
+ response_data = self.api_client.call_api(
1222
+ *_param,
1223
+ _request_timeout=_request_timeout
1224
+ )
1225
+ response_data.read()
1226
+ return self.api_client.response_deserialize(
1227
+ response_data=response_data,
1228
+ response_types_map=_response_types_map,
1229
+ )
1230
+
1231
+
1232
+ @validate_call
1233
+ def get_tags_without_preload_content(
1234
+ self,
1235
+ tag: Optional[StrictStr] = None,
1236
+ _request_timeout: Union[
1237
+ None,
1238
+ Annotated[StrictFloat, Field(gt=0)],
1239
+ Tuple[
1240
+ Annotated[StrictFloat, Field(gt=0)],
1241
+ Annotated[StrictFloat, Field(gt=0)]
1242
+ ]
1243
+ ] = None,
1244
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1245
+ _content_type: Optional[StrictStr] = None,
1246
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1247
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1248
+ ) -> RESTResponseType:
1249
+ """Get the list of dataset form a tag
1250
+
1251
+
1252
+ :param tag:
1253
+ :type tag: str
1254
+ :param _request_timeout: timeout setting for this request. If one
1255
+ number provided, it will be total request
1256
+ timeout. It can also be a pair (tuple) of
1257
+ (connection, read) timeouts.
1258
+ :type _request_timeout: int, tuple(int, int), optional
1259
+ :param _request_auth: set to override the auth_settings for an a single
1260
+ request; this effectively ignores the
1261
+ authentication in the spec for a single request.
1262
+ :type _request_auth: dict, optional
1263
+ :param _content_type: force content-type for the request.
1264
+ :type _content_type: str, Optional
1265
+ :param _headers: set to override the headers for a single
1266
+ request; this effectively ignores the headers
1267
+ in the spec for a single request.
1268
+ :type _headers: dict, optional
1269
+ :param _host_index: set to override the host_index for a single
1270
+ request; this effectively ignores the host_index
1271
+ in the spec for a single request.
1272
+ :type _host_index: int, optional
1273
+ :return: Returns the result object.
1274
+ """ # noqa: E501
1275
+
1276
+ _param = self._get_tags_serialize(
1277
+ tag=tag,
1278
+ _request_auth=_request_auth,
1279
+ _content_type=_content_type,
1280
+ _headers=_headers,
1281
+ _host_index=_host_index
1282
+ )
1283
+
1284
+ _response_types_map: Dict[str, Optional[str]] = {
1285
+ '200': "TagQAListPayload",
1286
+ }
1287
+ response_data = self.api_client.call_api(
1288
+ *_param,
1289
+ _request_timeout=_request_timeout
1290
+ )
1291
+ return response_data.response
1292
+
1293
+
1294
+ def _get_tags_serialize(
1295
+ self,
1296
+ tag,
1297
+ _request_auth,
1298
+ _content_type,
1299
+ _headers,
1300
+ _host_index,
1301
+ ) -> RequestSerialized:
1302
+
1303
+ _host = None
1304
+
1305
+ _collection_formats: Dict[str, str] = {
1306
+ }
1307
+
1308
+ _path_params: Dict[str, str] = {}
1309
+ _query_params: List[Tuple[str, str]] = []
1310
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1311
+ _form_params: List[Tuple[str, str]] = []
1312
+ _files: Dict[
1313
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1314
+ ] = {}
1315
+ _body_params: Optional[bytes] = None
1316
+
1317
+ # process the path parameters
1318
+ # process the query parameters
1319
+ if tag is not None:
1320
+
1321
+ _query_params.append(('tag', tag))
1322
+
1323
+ # process the header parameters
1324
+ # process the form parameters
1325
+ # process the body parameter
1326
+
1327
+
1328
+ # set the HTTP header `Accept`
1329
+ if 'Accept' not in _header_params:
1330
+ _header_params['Accept'] = self.api_client.select_header_accept(
1331
+ [
1332
+ '*/*'
1333
+ ]
1334
+ )
1335
+
1336
+
1337
+ # authentication setting
1338
+ _auth_settings: List[str] = [
1339
+ 'QAnswer-Api-Key',
1340
+ 'Bearer'
1341
+ ]
1342
+
1343
+ return self.api_client.param_serialize(
1344
+ method='GET',
1345
+ resource_path='/api/tag/qa/list',
1346
+ path_params=_path_params,
1347
+ query_params=_query_params,
1348
+ header_params=_header_params,
1349
+ body=_body_params,
1350
+ post_params=_form_params,
1351
+ files=_files,
1352
+ auth_settings=_auth_settings,
1353
+ collection_formats=_collection_formats,
1354
+ _host=_host,
1355
+ _request_auth=_request_auth
1356
+ )
1357
+
1358
+
1359
+
1360
+
1361
+ @validate_call
1362
+ def get_tags1(
1363
+ self,
1364
+ _request_timeout: Union[
1365
+ None,
1366
+ Annotated[StrictFloat, Field(gt=0)],
1367
+ Tuple[
1368
+ Annotated[StrictFloat, Field(gt=0)],
1369
+ Annotated[StrictFloat, Field(gt=0)]
1370
+ ]
1371
+ ] = None,
1372
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1373
+ _content_type: Optional[StrictStr] = None,
1374
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1375
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1376
+ ) -> List[TagPayload]:
1377
+ """Get the list of tags form the user
1378
+
1379
+
1380
+ :param _request_timeout: timeout setting for this request. If one
1381
+ number provided, it will be total request
1382
+ timeout. It can also be a pair (tuple) of
1383
+ (connection, read) timeouts.
1384
+ :type _request_timeout: int, tuple(int, int), optional
1385
+ :param _request_auth: set to override the auth_settings for an a single
1386
+ request; this effectively ignores the
1387
+ authentication in the spec for a single request.
1388
+ :type _request_auth: dict, optional
1389
+ :param _content_type: force content-type for the request.
1390
+ :type _content_type: str, Optional
1391
+ :param _headers: set to override the headers for a single
1392
+ request; this effectively ignores the headers
1393
+ in the spec for a single request.
1394
+ :type _headers: dict, optional
1395
+ :param _host_index: set to override the host_index for a single
1396
+ request; this effectively ignores the host_index
1397
+ in the spec for a single request.
1398
+ :type _host_index: int, optional
1399
+ :return: Returns the result object.
1400
+ """ # noqa: E501
1401
+
1402
+ _param = self._get_tags1_serialize(
1403
+ _request_auth=_request_auth,
1404
+ _content_type=_content_type,
1405
+ _headers=_headers,
1406
+ _host_index=_host_index
1407
+ )
1408
+
1409
+ _response_types_map: Dict[str, Optional[str]] = {
1410
+ '200': "List[TagPayload]",
1411
+ }
1412
+ response_data = self.api_client.call_api(
1413
+ *_param,
1414
+ _request_timeout=_request_timeout
1415
+ )
1416
+ response_data.read()
1417
+ return self.api_client.response_deserialize(
1418
+ response_data=response_data,
1419
+ response_types_map=_response_types_map,
1420
+ ).data
1421
+
1422
+
1423
+ @validate_call
1424
+ def get_tags1_with_http_info(
1425
+ self,
1426
+ _request_timeout: Union[
1427
+ None,
1428
+ Annotated[StrictFloat, Field(gt=0)],
1429
+ Tuple[
1430
+ Annotated[StrictFloat, Field(gt=0)],
1431
+ Annotated[StrictFloat, Field(gt=0)]
1432
+ ]
1433
+ ] = None,
1434
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1435
+ _content_type: Optional[StrictStr] = None,
1436
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1437
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1438
+ ) -> ApiResponse[List[TagPayload]]:
1439
+ """Get the list of tags form the user
1440
+
1441
+
1442
+ :param _request_timeout: timeout setting for this request. If one
1443
+ number provided, it will be total request
1444
+ timeout. It can also be a pair (tuple) of
1445
+ (connection, read) timeouts.
1446
+ :type _request_timeout: int, tuple(int, int), optional
1447
+ :param _request_auth: set to override the auth_settings for an a single
1448
+ request; this effectively ignores the
1449
+ authentication in the spec for a single request.
1450
+ :type _request_auth: dict, optional
1451
+ :param _content_type: force content-type for the request.
1452
+ :type _content_type: str, Optional
1453
+ :param _headers: set to override the headers for a single
1454
+ request; this effectively ignores the headers
1455
+ in the spec for a single request.
1456
+ :type _headers: dict, optional
1457
+ :param _host_index: set to override the host_index for a single
1458
+ request; this effectively ignores the host_index
1459
+ in the spec for a single request.
1460
+ :type _host_index: int, optional
1461
+ :return: Returns the result object.
1462
+ """ # noqa: E501
1463
+
1464
+ _param = self._get_tags1_serialize(
1465
+ _request_auth=_request_auth,
1466
+ _content_type=_content_type,
1467
+ _headers=_headers,
1468
+ _host_index=_host_index
1469
+ )
1470
+
1471
+ _response_types_map: Dict[str, Optional[str]] = {
1472
+ '200': "List[TagPayload]",
1473
+ }
1474
+ response_data = self.api_client.call_api(
1475
+ *_param,
1476
+ _request_timeout=_request_timeout
1477
+ )
1478
+ response_data.read()
1479
+ return self.api_client.response_deserialize(
1480
+ response_data=response_data,
1481
+ response_types_map=_response_types_map,
1482
+ )
1483
+
1484
+
1485
+ @validate_call
1486
+ def get_tags1_without_preload_content(
1487
+ self,
1488
+ _request_timeout: Union[
1489
+ None,
1490
+ Annotated[StrictFloat, Field(gt=0)],
1491
+ Tuple[
1492
+ Annotated[StrictFloat, Field(gt=0)],
1493
+ Annotated[StrictFloat, Field(gt=0)]
1494
+ ]
1495
+ ] = None,
1496
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1497
+ _content_type: Optional[StrictStr] = None,
1498
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1499
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1500
+ ) -> RESTResponseType:
1501
+ """Get the list of tags form the user
1502
+
1503
+
1504
+ :param _request_timeout: timeout setting for this request. If one
1505
+ number provided, it will be total request
1506
+ timeout. It can also be a pair (tuple) of
1507
+ (connection, read) timeouts.
1508
+ :type _request_timeout: int, tuple(int, int), optional
1509
+ :param _request_auth: set to override the auth_settings for an a single
1510
+ request; this effectively ignores the
1511
+ authentication in the spec for a single request.
1512
+ :type _request_auth: dict, optional
1513
+ :param _content_type: force content-type for the request.
1514
+ :type _content_type: str, Optional
1515
+ :param _headers: set to override the headers for a single
1516
+ request; this effectively ignores the headers
1517
+ in the spec for a single request.
1518
+ :type _headers: dict, optional
1519
+ :param _host_index: set to override the host_index for a single
1520
+ request; this effectively ignores the host_index
1521
+ in the spec for a single request.
1522
+ :type _host_index: int, optional
1523
+ :return: Returns the result object.
1524
+ """ # noqa: E501
1525
+
1526
+ _param = self._get_tags1_serialize(
1527
+ _request_auth=_request_auth,
1528
+ _content_type=_content_type,
1529
+ _headers=_headers,
1530
+ _host_index=_host_index
1531
+ )
1532
+
1533
+ _response_types_map: Dict[str, Optional[str]] = {
1534
+ '200': "List[TagPayload]",
1535
+ }
1536
+ response_data = self.api_client.call_api(
1537
+ *_param,
1538
+ _request_timeout=_request_timeout
1539
+ )
1540
+ return response_data.response
1541
+
1542
+
1543
+ def _get_tags1_serialize(
1544
+ self,
1545
+ _request_auth,
1546
+ _content_type,
1547
+ _headers,
1548
+ _host_index,
1549
+ ) -> RequestSerialized:
1550
+
1551
+ _host = None
1552
+
1553
+ _collection_formats: Dict[str, str] = {
1554
+ }
1555
+
1556
+ _path_params: Dict[str, str] = {}
1557
+ _query_params: List[Tuple[str, str]] = []
1558
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1559
+ _form_params: List[Tuple[str, str]] = []
1560
+ _files: Dict[
1561
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1562
+ ] = {}
1563
+ _body_params: Optional[bytes] = None
1564
+
1565
+ # process the path parameters
1566
+ # process the query parameters
1567
+ # process the header parameters
1568
+ # process the form parameters
1569
+ # process the body parameter
1570
+
1571
+
1572
+ # set the HTTP header `Accept`
1573
+ if 'Accept' not in _header_params:
1574
+ _header_params['Accept'] = self.api_client.select_header_accept(
1575
+ [
1576
+ '*/*'
1577
+ ]
1578
+ )
1579
+
1580
+
1581
+ # authentication setting
1582
+ _auth_settings: List[str] = [
1583
+ 'QAnswer-Api-Key',
1584
+ 'Bearer'
1585
+ ]
1586
+
1587
+ return self.api_client.param_serialize(
1588
+ method='GET',
1589
+ resource_path='/api/tag/list',
1590
+ path_params=_path_params,
1591
+ query_params=_query_params,
1592
+ header_params=_header_params,
1593
+ body=_body_params,
1594
+ post_params=_form_params,
1595
+ files=_files,
1596
+ auth_settings=_auth_settings,
1597
+ collection_formats=_collection_formats,
1598
+ _host=_host,
1599
+ _request_auth=_request_auth
1600
+ )
1601
+
1602
+
1603
+
1604
+
1605
+ @validate_call
1606
+ def get_tags_sub(
1607
+ self,
1608
+ tag: Optional[StrictStr] = None,
1609
+ _request_timeout: Union[
1610
+ None,
1611
+ Annotated[StrictFloat, Field(gt=0)],
1612
+ Tuple[
1613
+ Annotated[StrictFloat, Field(gt=0)],
1614
+ Annotated[StrictFloat, Field(gt=0)]
1615
+ ]
1616
+ ] = None,
1617
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1618
+ _content_type: Optional[StrictStr] = None,
1619
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1620
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1621
+ ) -> TagQAListPayload:
1622
+ """Get the list of dataset form a tag with the sub tag
1623
+
1624
+
1625
+ :param tag:
1626
+ :type tag: str
1627
+ :param _request_timeout: timeout setting for this request. If one
1628
+ number provided, it will be total request
1629
+ timeout. It can also be a pair (tuple) of
1630
+ (connection, read) timeouts.
1631
+ :type _request_timeout: int, tuple(int, int), optional
1632
+ :param _request_auth: set to override the auth_settings for an a single
1633
+ request; this effectively ignores the
1634
+ authentication in the spec for a single request.
1635
+ :type _request_auth: dict, optional
1636
+ :param _content_type: force content-type for the request.
1637
+ :type _content_type: str, Optional
1638
+ :param _headers: set to override the headers for a single
1639
+ request; this effectively ignores the headers
1640
+ in the spec for a single request.
1641
+ :type _headers: dict, optional
1642
+ :param _host_index: set to override the host_index for a single
1643
+ request; this effectively ignores the host_index
1644
+ in the spec for a single request.
1645
+ :type _host_index: int, optional
1646
+ :return: Returns the result object.
1647
+ """ # noqa: E501
1648
+
1649
+ _param = self._get_tags_sub_serialize(
1650
+ tag=tag,
1651
+ _request_auth=_request_auth,
1652
+ _content_type=_content_type,
1653
+ _headers=_headers,
1654
+ _host_index=_host_index
1655
+ )
1656
+
1657
+ _response_types_map: Dict[str, Optional[str]] = {
1658
+ '200': "TagQAListPayload",
1659
+ }
1660
+ response_data = self.api_client.call_api(
1661
+ *_param,
1662
+ _request_timeout=_request_timeout
1663
+ )
1664
+ response_data.read()
1665
+ return self.api_client.response_deserialize(
1666
+ response_data=response_data,
1667
+ response_types_map=_response_types_map,
1668
+ ).data
1669
+
1670
+
1671
+ @validate_call
1672
+ def get_tags_sub_with_http_info(
1673
+ self,
1674
+ tag: Optional[StrictStr] = None,
1675
+ _request_timeout: Union[
1676
+ None,
1677
+ Annotated[StrictFloat, Field(gt=0)],
1678
+ Tuple[
1679
+ Annotated[StrictFloat, Field(gt=0)],
1680
+ Annotated[StrictFloat, Field(gt=0)]
1681
+ ]
1682
+ ] = None,
1683
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1684
+ _content_type: Optional[StrictStr] = None,
1685
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1686
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1687
+ ) -> ApiResponse[TagQAListPayload]:
1688
+ """Get the list of dataset form a tag with the sub tag
1689
+
1690
+
1691
+ :param tag:
1692
+ :type tag: str
1693
+ :param _request_timeout: timeout setting for this request. If one
1694
+ number provided, it will be total request
1695
+ timeout. It can also be a pair (tuple) of
1696
+ (connection, read) timeouts.
1697
+ :type _request_timeout: int, tuple(int, int), optional
1698
+ :param _request_auth: set to override the auth_settings for an a single
1699
+ request; this effectively ignores the
1700
+ authentication in the spec for a single request.
1701
+ :type _request_auth: dict, optional
1702
+ :param _content_type: force content-type for the request.
1703
+ :type _content_type: str, Optional
1704
+ :param _headers: set to override the headers for a single
1705
+ request; this effectively ignores the headers
1706
+ in the spec for a single request.
1707
+ :type _headers: dict, optional
1708
+ :param _host_index: set to override the host_index for a single
1709
+ request; this effectively ignores the host_index
1710
+ in the spec for a single request.
1711
+ :type _host_index: int, optional
1712
+ :return: Returns the result object.
1713
+ """ # noqa: E501
1714
+
1715
+ _param = self._get_tags_sub_serialize(
1716
+ tag=tag,
1717
+ _request_auth=_request_auth,
1718
+ _content_type=_content_type,
1719
+ _headers=_headers,
1720
+ _host_index=_host_index
1721
+ )
1722
+
1723
+ _response_types_map: Dict[str, Optional[str]] = {
1724
+ '200': "TagQAListPayload",
1725
+ }
1726
+ response_data = self.api_client.call_api(
1727
+ *_param,
1728
+ _request_timeout=_request_timeout
1729
+ )
1730
+ response_data.read()
1731
+ return self.api_client.response_deserialize(
1732
+ response_data=response_data,
1733
+ response_types_map=_response_types_map,
1734
+ )
1735
+
1736
+
1737
+ @validate_call
1738
+ def get_tags_sub_without_preload_content(
1739
+ self,
1740
+ tag: Optional[StrictStr] = None,
1741
+ _request_timeout: Union[
1742
+ None,
1743
+ Annotated[StrictFloat, Field(gt=0)],
1744
+ Tuple[
1745
+ Annotated[StrictFloat, Field(gt=0)],
1746
+ Annotated[StrictFloat, Field(gt=0)]
1747
+ ]
1748
+ ] = None,
1749
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1750
+ _content_type: Optional[StrictStr] = None,
1751
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1752
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1753
+ ) -> RESTResponseType:
1754
+ """Get the list of dataset form a tag with the sub tag
1755
+
1756
+
1757
+ :param tag:
1758
+ :type tag: str
1759
+ :param _request_timeout: timeout setting for this request. If one
1760
+ number provided, it will be total request
1761
+ timeout. It can also be a pair (tuple) of
1762
+ (connection, read) timeouts.
1763
+ :type _request_timeout: int, tuple(int, int), optional
1764
+ :param _request_auth: set to override the auth_settings for an a single
1765
+ request; this effectively ignores the
1766
+ authentication in the spec for a single request.
1767
+ :type _request_auth: dict, optional
1768
+ :param _content_type: force content-type for the request.
1769
+ :type _content_type: str, Optional
1770
+ :param _headers: set to override the headers for a single
1771
+ request; this effectively ignores the headers
1772
+ in the spec for a single request.
1773
+ :type _headers: dict, optional
1774
+ :param _host_index: set to override the host_index for a single
1775
+ request; this effectively ignores the host_index
1776
+ in the spec for a single request.
1777
+ :type _host_index: int, optional
1778
+ :return: Returns the result object.
1779
+ """ # noqa: E501
1780
+
1781
+ _param = self._get_tags_sub_serialize(
1782
+ tag=tag,
1783
+ _request_auth=_request_auth,
1784
+ _content_type=_content_type,
1785
+ _headers=_headers,
1786
+ _host_index=_host_index
1787
+ )
1788
+
1789
+ _response_types_map: Dict[str, Optional[str]] = {
1790
+ '200': "TagQAListPayload",
1791
+ }
1792
+ response_data = self.api_client.call_api(
1793
+ *_param,
1794
+ _request_timeout=_request_timeout
1795
+ )
1796
+ return response_data.response
1797
+
1798
+
1799
+ def _get_tags_sub_serialize(
1800
+ self,
1801
+ tag,
1802
+ _request_auth,
1803
+ _content_type,
1804
+ _headers,
1805
+ _host_index,
1806
+ ) -> RequestSerialized:
1807
+
1808
+ _host = None
1809
+
1810
+ _collection_formats: Dict[str, str] = {
1811
+ }
1812
+
1813
+ _path_params: Dict[str, str] = {}
1814
+ _query_params: List[Tuple[str, str]] = []
1815
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1816
+ _form_params: List[Tuple[str, str]] = []
1817
+ _files: Dict[
1818
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1819
+ ] = {}
1820
+ _body_params: Optional[bytes] = None
1821
+
1822
+ # process the path parameters
1823
+ # process the query parameters
1824
+ if tag is not None:
1825
+
1826
+ _query_params.append(('tag', tag))
1827
+
1828
+ # process the header parameters
1829
+ # process the form parameters
1830
+ # process the body parameter
1831
+
1832
+
1833
+ # set the HTTP header `Accept`
1834
+ if 'Accept' not in _header_params:
1835
+ _header_params['Accept'] = self.api_client.select_header_accept(
1836
+ [
1837
+ '*/*'
1838
+ ]
1839
+ )
1840
+
1841
+
1842
+ # authentication setting
1843
+ _auth_settings: List[str] = [
1844
+ 'QAnswer-Api-Key',
1845
+ 'Bearer'
1846
+ ]
1847
+
1848
+ return self.api_client.param_serialize(
1849
+ method='GET',
1850
+ resource_path='/api/tag/qa/listSub',
1851
+ path_params=_path_params,
1852
+ query_params=_query_params,
1853
+ header_params=_header_params,
1854
+ body=_body_params,
1855
+ post_params=_form_params,
1856
+ files=_files,
1857
+ auth_settings=_auth_settings,
1858
+ collection_formats=_collection_formats,
1859
+ _host=_host,
1860
+ _request_auth=_request_auth
1861
+ )
1862
+
1863
+
1864
+
1865
+
1866
+ @validate_call
1867
+ def list1(
1868
+ self,
1869
+ tags: Optional[List[StrictStr]] = None,
1870
+ _request_timeout: Union[
1871
+ None,
1872
+ Annotated[StrictFloat, Field(gt=0)],
1873
+ Tuple[
1874
+ Annotated[StrictFloat, Field(gt=0)],
1875
+ Annotated[StrictFloat, Field(gt=0)]
1876
+ ]
1877
+ ] = None,
1878
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1879
+ _content_type: Optional[StrictStr] = None,
1880
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1881
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1882
+ ) -> List[QaMetadataPayload]:
1883
+ """list1
1884
+
1885
+
1886
+ :param tags:
1887
+ :type tags: List[str]
1888
+ :param _request_timeout: timeout setting for this request. If one
1889
+ number provided, it will be total request
1890
+ timeout. It can also be a pair (tuple) of
1891
+ (connection, read) timeouts.
1892
+ :type _request_timeout: int, tuple(int, int), optional
1893
+ :param _request_auth: set to override the auth_settings for an a single
1894
+ request; this effectively ignores the
1895
+ authentication in the spec for a single request.
1896
+ :type _request_auth: dict, optional
1897
+ :param _content_type: force content-type for the request.
1898
+ :type _content_type: str, Optional
1899
+ :param _headers: set to override the headers for a single
1900
+ request; this effectively ignores the headers
1901
+ in the spec for a single request.
1902
+ :type _headers: dict, optional
1903
+ :param _host_index: set to override the host_index for a single
1904
+ request; this effectively ignores the host_index
1905
+ in the spec for a single request.
1906
+ :type _host_index: int, optional
1907
+ :return: Returns the result object.
1908
+ """ # noqa: E501
1909
+
1910
+ _param = self._list1_serialize(
1911
+ tags=tags,
1912
+ _request_auth=_request_auth,
1913
+ _content_type=_content_type,
1914
+ _headers=_headers,
1915
+ _host_index=_host_index
1916
+ )
1917
+
1918
+ _response_types_map: Dict[str, Optional[str]] = {
1919
+ '200': "List[QaMetadataPayload]",
1920
+ }
1921
+ response_data = self.api_client.call_api(
1922
+ *_param,
1923
+ _request_timeout=_request_timeout
1924
+ )
1925
+ response_data.read()
1926
+ return self.api_client.response_deserialize(
1927
+ response_data=response_data,
1928
+ response_types_map=_response_types_map,
1929
+ ).data
1930
+
1931
+
1932
+ @validate_call
1933
+ def list1_with_http_info(
1934
+ self,
1935
+ tags: Optional[List[StrictStr]] = None,
1936
+ _request_timeout: Union[
1937
+ None,
1938
+ Annotated[StrictFloat, Field(gt=0)],
1939
+ Tuple[
1940
+ Annotated[StrictFloat, Field(gt=0)],
1941
+ Annotated[StrictFloat, Field(gt=0)]
1942
+ ]
1943
+ ] = None,
1944
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1945
+ _content_type: Optional[StrictStr] = None,
1946
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1947
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1948
+ ) -> ApiResponse[List[QaMetadataPayload]]:
1949
+ """list1
1950
+
1951
+
1952
+ :param tags:
1953
+ :type tags: List[str]
1954
+ :param _request_timeout: timeout setting for this request. If one
1955
+ number provided, it will be total request
1956
+ timeout. It can also be a pair (tuple) of
1957
+ (connection, read) timeouts.
1958
+ :type _request_timeout: int, tuple(int, int), optional
1959
+ :param _request_auth: set to override the auth_settings for an a single
1960
+ request; this effectively ignores the
1961
+ authentication in the spec for a single request.
1962
+ :type _request_auth: dict, optional
1963
+ :param _content_type: force content-type for the request.
1964
+ :type _content_type: str, Optional
1965
+ :param _headers: set to override the headers for a single
1966
+ request; this effectively ignores the headers
1967
+ in the spec for a single request.
1968
+ :type _headers: dict, optional
1969
+ :param _host_index: set to override the host_index for a single
1970
+ request; this effectively ignores the host_index
1971
+ in the spec for a single request.
1972
+ :type _host_index: int, optional
1973
+ :return: Returns the result object.
1974
+ """ # noqa: E501
1975
+
1976
+ _param = self._list1_serialize(
1977
+ tags=tags,
1978
+ _request_auth=_request_auth,
1979
+ _content_type=_content_type,
1980
+ _headers=_headers,
1981
+ _host_index=_host_index
1982
+ )
1983
+
1984
+ _response_types_map: Dict[str, Optional[str]] = {
1985
+ '200': "List[QaMetadataPayload]",
1986
+ }
1987
+ response_data = self.api_client.call_api(
1988
+ *_param,
1989
+ _request_timeout=_request_timeout
1990
+ )
1991
+ response_data.read()
1992
+ return self.api_client.response_deserialize(
1993
+ response_data=response_data,
1994
+ response_types_map=_response_types_map,
1995
+ )
1996
+
1997
+
1998
+ @validate_call
1999
+ def list1_without_preload_content(
2000
+ self,
2001
+ tags: Optional[List[StrictStr]] = None,
2002
+ _request_timeout: Union[
2003
+ None,
2004
+ Annotated[StrictFloat, Field(gt=0)],
2005
+ Tuple[
2006
+ Annotated[StrictFloat, Field(gt=0)],
2007
+ Annotated[StrictFloat, Field(gt=0)]
2008
+ ]
2009
+ ] = None,
2010
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2011
+ _content_type: Optional[StrictStr] = None,
2012
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2013
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2014
+ ) -> RESTResponseType:
2015
+ """list1
2016
+
2017
+
2018
+ :param tags:
2019
+ :type tags: List[str]
2020
+ :param _request_timeout: timeout setting for this request. If one
2021
+ number provided, it will be total request
2022
+ timeout. It can also be a pair (tuple) of
2023
+ (connection, read) timeouts.
2024
+ :type _request_timeout: int, tuple(int, int), optional
2025
+ :param _request_auth: set to override the auth_settings for an a single
2026
+ request; this effectively ignores the
2027
+ authentication in the spec for a single request.
2028
+ :type _request_auth: dict, optional
2029
+ :param _content_type: force content-type for the request.
2030
+ :type _content_type: str, Optional
2031
+ :param _headers: set to override the headers for a single
2032
+ request; this effectively ignores the headers
2033
+ in the spec for a single request.
2034
+ :type _headers: dict, optional
2035
+ :param _host_index: set to override the host_index for a single
2036
+ request; this effectively ignores the host_index
2037
+ in the spec for a single request.
2038
+ :type _host_index: int, optional
2039
+ :return: Returns the result object.
2040
+ """ # noqa: E501
2041
+
2042
+ _param = self._list1_serialize(
2043
+ tags=tags,
2044
+ _request_auth=_request_auth,
2045
+ _content_type=_content_type,
2046
+ _headers=_headers,
2047
+ _host_index=_host_index
2048
+ )
2049
+
2050
+ _response_types_map: Dict[str, Optional[str]] = {
2051
+ '200': "List[QaMetadataPayload]",
2052
+ }
2053
+ response_data = self.api_client.call_api(
2054
+ *_param,
2055
+ _request_timeout=_request_timeout
2056
+ )
2057
+ return response_data.response
2058
+
2059
+
2060
+ def _list1_serialize(
2061
+ self,
2062
+ tags,
2063
+ _request_auth,
2064
+ _content_type,
2065
+ _headers,
2066
+ _host_index,
2067
+ ) -> RequestSerialized:
2068
+
2069
+ _host = None
2070
+
2071
+ _collection_formats: Dict[str, str] = {
2072
+ 'tags': 'multi',
2073
+ }
2074
+
2075
+ _path_params: Dict[str, str] = {}
2076
+ _query_params: List[Tuple[str, str]] = []
2077
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2078
+ _form_params: List[Tuple[str, str]] = []
2079
+ _files: Dict[
2080
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2081
+ ] = {}
2082
+ _body_params: Optional[bytes] = None
2083
+
2084
+ # process the path parameters
2085
+ # process the query parameters
2086
+ if tags is not None:
2087
+
2088
+ _query_params.append(('tags', tags))
2089
+
2090
+ # process the header parameters
2091
+ # process the form parameters
2092
+ # process the body parameter
2093
+
2094
+
2095
+ # set the HTTP header `Accept`
2096
+ if 'Accept' not in _header_params:
2097
+ _header_params['Accept'] = self.api_client.select_header_accept(
2098
+ [
2099
+ '*/*'
2100
+ ]
2101
+ )
2102
+
2103
+
2104
+ # authentication setting
2105
+ _auth_settings: List[str] = [
2106
+ 'QAnswer-Api-Key',
2107
+ 'Bearer'
2108
+ ]
2109
+
2110
+ return self.api_client.param_serialize(
2111
+ method='GET',
2112
+ resource_path='/api/tag/qaMetadata/list',
2113
+ path_params=_path_params,
2114
+ query_params=_query_params,
2115
+ header_params=_header_params,
2116
+ body=_body_params,
2117
+ post_params=_form_params,
2118
+ files=_files,
2119
+ auth_settings=_auth_settings,
2120
+ collection_formats=_collection_formats,
2121
+ _host=_host,
2122
+ _request_auth=_request_auth
2123
+ )
2124
+
2125
+
2126
+
2127
+
2128
+ @validate_call
2129
+ def remove_tag(
2130
+ self,
2131
+ tag: StrictStr,
2132
+ dataset: StrictStr,
2133
+ _request_timeout: Union[
2134
+ None,
2135
+ Annotated[StrictFloat, Field(gt=0)],
2136
+ Tuple[
2137
+ Annotated[StrictFloat, Field(gt=0)],
2138
+ Annotated[StrictFloat, Field(gt=0)]
2139
+ ]
2140
+ ] = None,
2141
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2142
+ _content_type: Optional[StrictStr] = None,
2143
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2144
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2145
+ ) -> None:
2146
+ """Remove a tag from a dataset
2147
+
2148
+
2149
+ :param tag: (required)
2150
+ :type tag: str
2151
+ :param dataset: (required)
2152
+ :type dataset: str
2153
+ :param _request_timeout: timeout setting for this request. If one
2154
+ number provided, it will be total request
2155
+ timeout. It can also be a pair (tuple) of
2156
+ (connection, read) timeouts.
2157
+ :type _request_timeout: int, tuple(int, int), optional
2158
+ :param _request_auth: set to override the auth_settings for an a single
2159
+ request; this effectively ignores the
2160
+ authentication in the spec for a single request.
2161
+ :type _request_auth: dict, optional
2162
+ :param _content_type: force content-type for the request.
2163
+ :type _content_type: str, Optional
2164
+ :param _headers: set to override the headers for a single
2165
+ request; this effectively ignores the headers
2166
+ in the spec for a single request.
2167
+ :type _headers: dict, optional
2168
+ :param _host_index: set to override the host_index for a single
2169
+ request; this effectively ignores the host_index
2170
+ in the spec for a single request.
2171
+ :type _host_index: int, optional
2172
+ :return: Returns the result object.
2173
+ """ # noqa: E501
2174
+
2175
+ _param = self._remove_tag_serialize(
2176
+ tag=tag,
2177
+ dataset=dataset,
2178
+ _request_auth=_request_auth,
2179
+ _content_type=_content_type,
2180
+ _headers=_headers,
2181
+ _host_index=_host_index
2182
+ )
2183
+
2184
+ _response_types_map: Dict[str, Optional[str]] = {
2185
+ '200': None,
2186
+ }
2187
+ response_data = self.api_client.call_api(
2188
+ *_param,
2189
+ _request_timeout=_request_timeout
2190
+ )
2191
+ response_data.read()
2192
+ return self.api_client.response_deserialize(
2193
+ response_data=response_data,
2194
+ response_types_map=_response_types_map,
2195
+ ).data
2196
+
2197
+
2198
+ @validate_call
2199
+ def remove_tag_with_http_info(
2200
+ self,
2201
+ tag: StrictStr,
2202
+ dataset: StrictStr,
2203
+ _request_timeout: Union[
2204
+ None,
2205
+ Annotated[StrictFloat, Field(gt=0)],
2206
+ Tuple[
2207
+ Annotated[StrictFloat, Field(gt=0)],
2208
+ Annotated[StrictFloat, Field(gt=0)]
2209
+ ]
2210
+ ] = None,
2211
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2212
+ _content_type: Optional[StrictStr] = None,
2213
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2214
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2215
+ ) -> ApiResponse[None]:
2216
+ """Remove a tag from a dataset
2217
+
2218
+
2219
+ :param tag: (required)
2220
+ :type tag: str
2221
+ :param dataset: (required)
2222
+ :type dataset: str
2223
+ :param _request_timeout: timeout setting for this request. If one
2224
+ number provided, it will be total request
2225
+ timeout. It can also be a pair (tuple) of
2226
+ (connection, read) timeouts.
2227
+ :type _request_timeout: int, tuple(int, int), optional
2228
+ :param _request_auth: set to override the auth_settings for an a single
2229
+ request; this effectively ignores the
2230
+ authentication in the spec for a single request.
2231
+ :type _request_auth: dict, optional
2232
+ :param _content_type: force content-type for the request.
2233
+ :type _content_type: str, Optional
2234
+ :param _headers: set to override the headers for a single
2235
+ request; this effectively ignores the headers
2236
+ in the spec for a single request.
2237
+ :type _headers: dict, optional
2238
+ :param _host_index: set to override the host_index for a single
2239
+ request; this effectively ignores the host_index
2240
+ in the spec for a single request.
2241
+ :type _host_index: int, optional
2242
+ :return: Returns the result object.
2243
+ """ # noqa: E501
2244
+
2245
+ _param = self._remove_tag_serialize(
2246
+ tag=tag,
2247
+ dataset=dataset,
2248
+ _request_auth=_request_auth,
2249
+ _content_type=_content_type,
2250
+ _headers=_headers,
2251
+ _host_index=_host_index
2252
+ )
2253
+
2254
+ _response_types_map: Dict[str, Optional[str]] = {
2255
+ '200': None,
2256
+ }
2257
+ response_data = self.api_client.call_api(
2258
+ *_param,
2259
+ _request_timeout=_request_timeout
2260
+ )
2261
+ response_data.read()
2262
+ return self.api_client.response_deserialize(
2263
+ response_data=response_data,
2264
+ response_types_map=_response_types_map,
2265
+ )
2266
+
2267
+
2268
+ @validate_call
2269
+ def remove_tag_without_preload_content(
2270
+ self,
2271
+ tag: StrictStr,
2272
+ dataset: StrictStr,
2273
+ _request_timeout: Union[
2274
+ None,
2275
+ Annotated[StrictFloat, Field(gt=0)],
2276
+ Tuple[
2277
+ Annotated[StrictFloat, Field(gt=0)],
2278
+ Annotated[StrictFloat, Field(gt=0)]
2279
+ ]
2280
+ ] = None,
2281
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2282
+ _content_type: Optional[StrictStr] = None,
2283
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2284
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2285
+ ) -> RESTResponseType:
2286
+ """Remove a tag from a dataset
2287
+
2288
+
2289
+ :param tag: (required)
2290
+ :type tag: str
2291
+ :param dataset: (required)
2292
+ :type dataset: str
2293
+ :param _request_timeout: timeout setting for this request. If one
2294
+ number provided, it will be total request
2295
+ timeout. It can also be a pair (tuple) of
2296
+ (connection, read) timeouts.
2297
+ :type _request_timeout: int, tuple(int, int), optional
2298
+ :param _request_auth: set to override the auth_settings for an a single
2299
+ request; this effectively ignores the
2300
+ authentication in the spec for a single request.
2301
+ :type _request_auth: dict, optional
2302
+ :param _content_type: force content-type for the request.
2303
+ :type _content_type: str, Optional
2304
+ :param _headers: set to override the headers for a single
2305
+ request; this effectively ignores the headers
2306
+ in the spec for a single request.
2307
+ :type _headers: dict, optional
2308
+ :param _host_index: set to override the host_index for a single
2309
+ request; this effectively ignores the host_index
2310
+ in the spec for a single request.
2311
+ :type _host_index: int, optional
2312
+ :return: Returns the result object.
2313
+ """ # noqa: E501
2314
+
2315
+ _param = self._remove_tag_serialize(
2316
+ tag=tag,
2317
+ dataset=dataset,
2318
+ _request_auth=_request_auth,
2319
+ _content_type=_content_type,
2320
+ _headers=_headers,
2321
+ _host_index=_host_index
2322
+ )
2323
+
2324
+ _response_types_map: Dict[str, Optional[str]] = {
2325
+ '200': None,
2326
+ }
2327
+ response_data = self.api_client.call_api(
2328
+ *_param,
2329
+ _request_timeout=_request_timeout
2330
+ )
2331
+ return response_data.response
2332
+
2333
+
2334
+ def _remove_tag_serialize(
2335
+ self,
2336
+ tag,
2337
+ dataset,
2338
+ _request_auth,
2339
+ _content_type,
2340
+ _headers,
2341
+ _host_index,
2342
+ ) -> RequestSerialized:
2343
+
2344
+ _host = None
2345
+
2346
+ _collection_formats: Dict[str, str] = {
2347
+ }
2348
+
2349
+ _path_params: Dict[str, str] = {}
2350
+ _query_params: List[Tuple[str, str]] = []
2351
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2352
+ _form_params: List[Tuple[str, str]] = []
2353
+ _files: Dict[
2354
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2355
+ ] = {}
2356
+ _body_params: Optional[bytes] = None
2357
+
2358
+ # process the path parameters
2359
+ # process the query parameters
2360
+ if tag is not None:
2361
+
2362
+ _query_params.append(('tag', tag))
2363
+
2364
+ if dataset is not None:
2365
+
2366
+ _query_params.append(('dataset', dataset))
2367
+
2368
+ # process the header parameters
2369
+ # process the form parameters
2370
+ # process the body parameter
2371
+
2372
+
2373
+
2374
+
2375
+ # authentication setting
2376
+ _auth_settings: List[str] = [
2377
+ 'QAnswer-Api-Key',
2378
+ 'Bearer'
2379
+ ]
2380
+
2381
+ return self.api_client.param_serialize(
2382
+ method='DELETE',
2383
+ resource_path='/api/tag/qa/remove',
2384
+ path_params=_path_params,
2385
+ query_params=_query_params,
2386
+ header_params=_header_params,
2387
+ body=_body_params,
2388
+ post_params=_form_params,
2389
+ files=_files,
2390
+ auth_settings=_auth_settings,
2391
+ collection_formats=_collection_formats,
2392
+ _host=_host,
2393
+ _request_auth=_request_auth
2394
+ )
2395
+
2396
+