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