qanswer_sdk 3.1509.0__py3-none-any.whl → 3.1511.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qanswer_sdk/__init__.py +31 -24
- qanswer_sdk/api/__init__.py +0 -1
- qanswer_sdk/api/admin_api.py +914 -142
- qanswer_sdk/api/ai_assistant_access_rights_api.py +883 -280
- qanswer_sdk/api/ai_assistant_api.py +289 -61
- qanswer_sdk/api/branding_api.py +6 -6
- qanswer_sdk/api/connector_website_api.py +287 -0
- qanswer_sdk/api/connectors_api.py +863 -11
- qanswer_sdk/api/connectors_data_api.py +28 -27
- qanswer_sdk/api/mcp_api.py +1103 -469
- qanswer_sdk/api/payment_api.py +3 -3
- qanswer_sdk/api/socket_api.py +0 -245
- qanswer_sdk/api/task_ai_excel_api.py +288 -0
- qanswer_sdk/api/task_report_copilot_api.py +49 -122
- qanswer_sdk/api/tool_embedder_api.py +552 -1
- qanswer_sdk/api/tool_llm_api.py +1059 -10
- qanswer_sdk/api/unit_organizations_api.py +1240 -165
- qanswer_sdk/api/unit_user_api.py +506 -0
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +30 -22
- qanswer_sdk/models/access_pdf_payload_model.py +6 -4
- qanswer_sdk/models/add_qn_a_request.py +5 -3
- qanswer_sdk/models/{assistant_template.py → ai_assistant_clone_response.py} +9 -19
- qanswer_sdk/models/ai_assistant_dto.py +4 -2
- qanswer_sdk/models/ai_assistant_filter_dto.py +3 -1
- qanswer_sdk/models/{user_dataset_access_control_origin_header.py → ai_assistant_restricted_domain.py} +8 -8
- qanswer_sdk/models/ai_assistant_share_response.py +93 -0
- qanswer_sdk/models/api_key_mcp_authentication_config.py +2 -2
- qanswer_sdk/models/assistant_template_filter_dto.py +93 -0
- qanswer_sdk/models/{relation_extraction_schema.py → assistant_template_with_tools_selection_dto.py} +26 -24
- qanswer_sdk/models/audio_file_upload_payload.py +4 -2
- qanswer_sdk/models/auto_bot_description_request.py +5 -3
- qanswer_sdk/models/chatbot_chat_payload.py +6 -2
- qanswer_sdk/models/connector_type_dto.py +101 -0
- qanswer_sdk/models/{relation_extraction_data_input.py → connector_type_list_dto.py} +14 -14
- qanswer_sdk/models/conversation_message.py +37 -7
- qanswer_sdk/models/conversation_model.py +8 -2
- qanswer_sdk/models/credits_info_global_dto.py +95 -0
- qanswer_sdk/models/credits_info_organization_dto.py +93 -0
- qanswer_sdk/models/dataset_detail_kg.py +30 -10
- qanswer_sdk/models/dataset_schema.py +5 -1
- qanswer_sdk/models/dataset_update_object.py +8 -2
- qanswer_sdk/models/document_content_update_model.py +4 -2
- qanswer_sdk/models/econsilium_search_index_add_payload.py +3 -1
- qanswer_sdk/models/embedder_create_dto.py +9 -3
- qanswer_sdk/models/embedder_detailed_dto.py +9 -3
- qanswer_sdk/models/embedder_update_dto.py +9 -3
- qanswer_sdk/models/{relation_model.py → embedding_endpoint_import_failure.py} +8 -10
- qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
- qanswer_sdk/models/es_meta_data.py +98 -0
- qanswer_sdk/models/{get_file_es_meta_data_response.py → es_meta_data_value.py} +7 -11
- qanswer_sdk/models/feedback_update.py +4 -2
- qanswer_sdk/models/file_es_meta_data.py +31 -4
- qanswer_sdk/models/g_drive_download_request.py +3 -1
- qanswer_sdk/models/generate_ai_cells_payload.py +5 -3
- qanswer_sdk/models/highlight_audio_payload_model.py +6 -4
- qanswer_sdk/models/imap_add_payload.py +4 -2
- qanswer_sdk/models/list_socket_events.py +2 -2
- qanswer_sdk/models/llm_consumption.py +2 -2
- qanswer_sdk/models/llm_create_dto.py +25 -3
- qanswer_sdk/models/llm_detailed_dto.py +30 -4
- qanswer_sdk/models/llm_dto.py +18 -2
- qanswer_sdk/models/llm_endpoint.py +25 -3
- qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
- qanswer_sdk/models/{relation_extraction_data_output.py → llm_endpoint_import_response.py} +20 -16
- qanswer_sdk/models/llm_endpoint_read_input.py +25 -3
- qanswer_sdk/models/llm_endpoint_read_output.py +25 -3
- qanswer_sdk/models/llm_update_dto.py +25 -3
- qanswer_sdk/models/mcp_server.py +153 -0
- qanswer_sdk/models/mcp_server_create.py +4 -2
- qanswer_sdk/models/mcp_server_dto.py +6 -2
- qanswer_sdk/models/mcp_server_update.py +4 -2
- qanswer_sdk/models/mcp_tool.py +124 -0
- qanswer_sdk/models/mcp_tool_description_update.py +6 -4
- qanswer_sdk/models/mcp_tool_dto.py +3 -1
- qanswer_sdk/models/one_drive_download_request.py +3 -1
- qanswer_sdk/models/one_note_download_request.py +3 -1
- qanswer_sdk/models/organization_admin.py +4 -2
- qanswer_sdk/models/organization_filter_dto.py +4 -2
- qanswer_sdk/models/{relation_value_input.py → organization_mcp_server_setting.py} +29 -24
- qanswer_sdk/models/plan_dto.py +16 -4
- qanswer_sdk/models/publication_add_payload.py +4 -2
- qanswer_sdk/models/rag_payload.py +6 -2
- qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +5 -3
- qanswer_sdk/models/report_copilot_refinement_payload.py +5 -3
- qanswer_sdk/models/report_copilot_slot_feedback_update.py +4 -2
- qanswer_sdk/models/report_template.py +3 -1
- qanswer_sdk/models/report_template_create_payload.py +4 -2
- qanswer_sdk/models/report_template_simplified.py +4 -2
- qanswer_sdk/models/report_template_update_payload.py +4 -2
- qanswer_sdk/models/report_templates_search_payload.py +104 -0
- qanswer_sdk/models/search_payload.py +6 -2
- qanswer_sdk/models/share_point_download_request.py +3 -1
- qanswer_sdk/models/socket_conversation_message.py +37 -7
- qanswer_sdk/models/template_toggle_request.py +5 -5
- qanswer_sdk/models/text2_sparql_payload.py +5 -1
- qanswer_sdk/models/thinking_block.py +91 -0
- qanswer_sdk/models/{subject_model.py → update_cells_payload.py} +10 -10
- qanswer_sdk/models/{relation_extraction_configuration.py → update_file_es_meta_data.py} +37 -26
- qanswer_sdk/models/{update_metadata_model.py → update_metadata_model_input.py} +7 -7
- qanswer_sdk/models/{relation_extraction_task_settings_update_payload.py → update_metadata_model_output.py} +14 -12
- qanswer_sdk/models/update_qn_a_pair_request.py +4 -2
- qanswer_sdk/models/{relation_extraction_template_payload.py → update_template_cells_payload.py} +19 -15
- qanswer_sdk/models/user.py +10 -5
- qanswer_sdk/models/user_credits_config_dto.py +95 -0
- qanswer_sdk/models/user_credits_dto.py +104 -0
- qanswer_sdk/models/user_dataset.py +31 -11
- qanswer_sdk/models/{relation_extraction_row_output.py → user_dataset_mcp_tool_selection.py} +33 -26
- qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +3 -1
- qanswer_sdk/models/user_filter_dto.py +4 -2
- qanswer_sdk/models/{relation_extraction_row_input.py → user_mcp_tool_selection.py} +31 -26
- qanswer_sdk/models/user_mcp_tool_selection_dto.py +3 -1
- qanswer_sdk/models/user_profile_dto.py +16 -4
- qanswer_sdk/models/{value_model.py → websearch_scraping_site.py} +11 -17
- qanswer_sdk/models/website_add_payload.py +4 -2
- {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1511.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1511.0.dist-info}/RECORD +119 -112
- qanswer_sdk/api/task_relation_extraction_api.py +0 -3636
- qanswer_sdk/models/export_relation_extraction_table_request.py +0 -97
- qanswer_sdk/models/relation_extraction_payload.py +0 -117
- qanswer_sdk/models/relation_extraction_task_settings.py +0 -125
- qanswer_sdk/models/relation_extraction_task_update.py +0 -125
- qanswer_sdk/models/relation_value_output.py +0 -103
- qanswer_sdk/models/socket_data_extraction.py +0 -109
- {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1511.0.dist-info}/WHEEL +0 -0
|
@@ -18,6 +18,7 @@ from typing_extensions import Annotated
|
|
|
18
18
|
|
|
19
19
|
from pydantic import StrictBool, StrictBytes, StrictInt, StrictStr
|
|
20
20
|
from typing import List, Optional, Tuple, Union
|
|
21
|
+
from qanswer_sdk.models.credits_info_organization_dto import CreditsInfoOrganizationDto
|
|
21
22
|
from qanswer_sdk.models.llm_detailed_dto import LlmDetailedDto
|
|
22
23
|
from qanswer_sdk.models.organization import Organization
|
|
23
24
|
from qanswer_sdk.models.organization_creation import OrganizationCreation
|
|
@@ -2678,7 +2679,7 @@ class UnitOrganizationsApi:
|
|
|
2678
2679
|
|
|
2679
2680
|
|
|
2680
2681
|
@validate_call
|
|
2681
|
-
def
|
|
2682
|
+
def get_organization_credits(
|
|
2682
2683
|
self,
|
|
2683
2684
|
organization_id: StrictInt,
|
|
2684
2685
|
_request_timeout: Union[
|
|
@@ -2693,7 +2694,7 @@ class UnitOrganizationsApi:
|
|
|
2693
2694
|
_content_type: Optional[StrictStr] = None,
|
|
2694
2695
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2695
2696
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2696
|
-
) ->
|
|
2697
|
+
) -> CreditsInfoOrganizationDto:
|
|
2697
2698
|
"""Get the domains of an organization
|
|
2698
2699
|
|
|
2699
2700
|
|
|
@@ -2721,7 +2722,7 @@ class UnitOrganizationsApi:
|
|
|
2721
2722
|
:return: Returns the result object.
|
|
2722
2723
|
""" # noqa: E501
|
|
2723
2724
|
|
|
2724
|
-
_param = self.
|
|
2725
|
+
_param = self._get_organization_credits_serialize(
|
|
2725
2726
|
organization_id=organization_id,
|
|
2726
2727
|
_request_auth=_request_auth,
|
|
2727
2728
|
_content_type=_content_type,
|
|
@@ -2730,7 +2731,7 @@ class UnitOrganizationsApi:
|
|
|
2730
2731
|
)
|
|
2731
2732
|
|
|
2732
2733
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2733
|
-
'200': "
|
|
2734
|
+
'200': "CreditsInfoOrganizationDto",
|
|
2734
2735
|
}
|
|
2735
2736
|
response_data = self.api_client.call_api(
|
|
2736
2737
|
*_param,
|
|
@@ -2744,7 +2745,7 @@ class UnitOrganizationsApi:
|
|
|
2744
2745
|
|
|
2745
2746
|
|
|
2746
2747
|
@validate_call
|
|
2747
|
-
def
|
|
2748
|
+
def get_organization_credits_with_http_info(
|
|
2748
2749
|
self,
|
|
2749
2750
|
organization_id: StrictInt,
|
|
2750
2751
|
_request_timeout: Union[
|
|
@@ -2759,7 +2760,7 @@ class UnitOrganizationsApi:
|
|
|
2759
2760
|
_content_type: Optional[StrictStr] = None,
|
|
2760
2761
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2761
2762
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2762
|
-
) -> ApiResponse[
|
|
2763
|
+
) -> ApiResponse[CreditsInfoOrganizationDto]:
|
|
2763
2764
|
"""Get the domains of an organization
|
|
2764
2765
|
|
|
2765
2766
|
|
|
@@ -2787,7 +2788,7 @@ class UnitOrganizationsApi:
|
|
|
2787
2788
|
:return: Returns the result object.
|
|
2788
2789
|
""" # noqa: E501
|
|
2789
2790
|
|
|
2790
|
-
_param = self.
|
|
2791
|
+
_param = self._get_organization_credits_serialize(
|
|
2791
2792
|
organization_id=organization_id,
|
|
2792
2793
|
_request_auth=_request_auth,
|
|
2793
2794
|
_content_type=_content_type,
|
|
@@ -2796,7 +2797,7 @@ class UnitOrganizationsApi:
|
|
|
2796
2797
|
)
|
|
2797
2798
|
|
|
2798
2799
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2799
|
-
'200': "
|
|
2800
|
+
'200': "CreditsInfoOrganizationDto",
|
|
2800
2801
|
}
|
|
2801
2802
|
response_data = self.api_client.call_api(
|
|
2802
2803
|
*_param,
|
|
@@ -2810,7 +2811,7 @@ class UnitOrganizationsApi:
|
|
|
2810
2811
|
|
|
2811
2812
|
|
|
2812
2813
|
@validate_call
|
|
2813
|
-
def
|
|
2814
|
+
def get_organization_credits_without_preload_content(
|
|
2814
2815
|
self,
|
|
2815
2816
|
organization_id: StrictInt,
|
|
2816
2817
|
_request_timeout: Union[
|
|
@@ -2853,7 +2854,7 @@ class UnitOrganizationsApi:
|
|
|
2853
2854
|
:return: Returns the result object.
|
|
2854
2855
|
""" # noqa: E501
|
|
2855
2856
|
|
|
2856
|
-
_param = self.
|
|
2857
|
+
_param = self._get_organization_credits_serialize(
|
|
2857
2858
|
organization_id=organization_id,
|
|
2858
2859
|
_request_auth=_request_auth,
|
|
2859
2860
|
_content_type=_content_type,
|
|
@@ -2862,7 +2863,7 @@ class UnitOrganizationsApi:
|
|
|
2862
2863
|
)
|
|
2863
2864
|
|
|
2864
2865
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2865
|
-
'200': "
|
|
2866
|
+
'200': "CreditsInfoOrganizationDto",
|
|
2866
2867
|
}
|
|
2867
2868
|
response_data = self.api_client.call_api(
|
|
2868
2869
|
*_param,
|
|
@@ -2871,7 +2872,7 @@ class UnitOrganizationsApi:
|
|
|
2871
2872
|
return response_data.response
|
|
2872
2873
|
|
|
2873
2874
|
|
|
2874
|
-
def
|
|
2875
|
+
def _get_organization_credits_serialize(
|
|
2875
2876
|
self,
|
|
2876
2877
|
organization_id,
|
|
2877
2878
|
_request_auth,
|
|
@@ -2920,7 +2921,7 @@ class UnitOrganizationsApi:
|
|
|
2920
2921
|
|
|
2921
2922
|
return self.api_client.param_serialize(
|
|
2922
2923
|
method='GET',
|
|
2923
|
-
resource_path='/api/organization/{organization_id}/
|
|
2924
|
+
resource_path='/api/organization/{organization_id}/credits',
|
|
2924
2925
|
path_params=_path_params,
|
|
2925
2926
|
query_params=_query_params,
|
|
2926
2927
|
header_params=_header_params,
|
|
@@ -2937,7 +2938,7 @@ class UnitOrganizationsApi:
|
|
|
2937
2938
|
|
|
2938
2939
|
|
|
2939
2940
|
@validate_call
|
|
2940
|
-
def
|
|
2941
|
+
def get_organization_domains(
|
|
2941
2942
|
self,
|
|
2942
2943
|
organization_id: StrictInt,
|
|
2943
2944
|
_request_timeout: Union[
|
|
@@ -2952,8 +2953,8 @@ class UnitOrganizationsApi:
|
|
|
2952
2953
|
_content_type: Optional[StrictStr] = None,
|
|
2953
2954
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2954
2955
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2955
|
-
) ->
|
|
2956
|
-
"""
|
|
2956
|
+
) -> List[str]:
|
|
2957
|
+
"""Get the domains of an organization
|
|
2957
2958
|
|
|
2958
2959
|
|
|
2959
2960
|
:param organization_id: (required)
|
|
@@ -2980,7 +2981,7 @@ class UnitOrganizationsApi:
|
|
|
2980
2981
|
:return: Returns the result object.
|
|
2981
2982
|
""" # noqa: E501
|
|
2982
2983
|
|
|
2983
|
-
_param = self.
|
|
2984
|
+
_param = self._get_organization_domains_serialize(
|
|
2984
2985
|
organization_id=organization_id,
|
|
2985
2986
|
_request_auth=_request_auth,
|
|
2986
2987
|
_content_type=_content_type,
|
|
@@ -2989,7 +2990,7 @@ class UnitOrganizationsApi:
|
|
|
2989
2990
|
)
|
|
2990
2991
|
|
|
2991
2992
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2992
|
-
'200': "
|
|
2993
|
+
'200': "List[str]",
|
|
2993
2994
|
}
|
|
2994
2995
|
response_data = self.api_client.call_api(
|
|
2995
2996
|
*_param,
|
|
@@ -3003,7 +3004,7 @@ class UnitOrganizationsApi:
|
|
|
3003
3004
|
|
|
3004
3005
|
|
|
3005
3006
|
@validate_call
|
|
3006
|
-
def
|
|
3007
|
+
def get_organization_domains_with_http_info(
|
|
3007
3008
|
self,
|
|
3008
3009
|
organization_id: StrictInt,
|
|
3009
3010
|
_request_timeout: Union[
|
|
@@ -3018,8 +3019,8 @@ class UnitOrganizationsApi:
|
|
|
3018
3019
|
_content_type: Optional[StrictStr] = None,
|
|
3019
3020
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3020
3021
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3021
|
-
) -> ApiResponse[
|
|
3022
|
-
"""
|
|
3022
|
+
) -> ApiResponse[List[str]]:
|
|
3023
|
+
"""Get the domains of an organization
|
|
3023
3024
|
|
|
3024
3025
|
|
|
3025
3026
|
:param organization_id: (required)
|
|
@@ -3046,7 +3047,7 @@ class UnitOrganizationsApi:
|
|
|
3046
3047
|
:return: Returns the result object.
|
|
3047
3048
|
""" # noqa: E501
|
|
3048
3049
|
|
|
3049
|
-
_param = self.
|
|
3050
|
+
_param = self._get_organization_domains_serialize(
|
|
3050
3051
|
organization_id=organization_id,
|
|
3051
3052
|
_request_auth=_request_auth,
|
|
3052
3053
|
_content_type=_content_type,
|
|
@@ -3055,7 +3056,7 @@ class UnitOrganizationsApi:
|
|
|
3055
3056
|
)
|
|
3056
3057
|
|
|
3057
3058
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3058
|
-
'200': "
|
|
3059
|
+
'200': "List[str]",
|
|
3059
3060
|
}
|
|
3060
3061
|
response_data = self.api_client.call_api(
|
|
3061
3062
|
*_param,
|
|
@@ -3069,7 +3070,7 @@ class UnitOrganizationsApi:
|
|
|
3069
3070
|
|
|
3070
3071
|
|
|
3071
3072
|
@validate_call
|
|
3072
|
-
def
|
|
3073
|
+
def get_organization_domains_without_preload_content(
|
|
3073
3074
|
self,
|
|
3074
3075
|
organization_id: StrictInt,
|
|
3075
3076
|
_request_timeout: Union[
|
|
@@ -3085,7 +3086,7 @@ class UnitOrganizationsApi:
|
|
|
3085
3086
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3086
3087
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3087
3088
|
) -> RESTResponseType:
|
|
3088
|
-
"""
|
|
3089
|
+
"""Get the domains of an organization
|
|
3089
3090
|
|
|
3090
3091
|
|
|
3091
3092
|
:param organization_id: (required)
|
|
@@ -3112,7 +3113,7 @@ class UnitOrganizationsApi:
|
|
|
3112
3113
|
:return: Returns the result object.
|
|
3113
3114
|
""" # noqa: E501
|
|
3114
3115
|
|
|
3115
|
-
_param = self.
|
|
3116
|
+
_param = self._get_organization_domains_serialize(
|
|
3116
3117
|
organization_id=organization_id,
|
|
3117
3118
|
_request_auth=_request_auth,
|
|
3118
3119
|
_content_type=_content_type,
|
|
@@ -3121,7 +3122,7 @@ class UnitOrganizationsApi:
|
|
|
3121
3122
|
)
|
|
3122
3123
|
|
|
3123
3124
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3124
|
-
'200': "
|
|
3125
|
+
'200': "List[str]",
|
|
3125
3126
|
}
|
|
3126
3127
|
response_data = self.api_client.call_api(
|
|
3127
3128
|
*_param,
|
|
@@ -3130,7 +3131,7 @@ class UnitOrganizationsApi:
|
|
|
3130
3131
|
return response_data.response
|
|
3131
3132
|
|
|
3132
3133
|
|
|
3133
|
-
def
|
|
3134
|
+
def _get_organization_domains_serialize(
|
|
3134
3135
|
self,
|
|
3135
3136
|
organization_id,
|
|
3136
3137
|
_request_auth,
|
|
@@ -3179,7 +3180,7 @@ class UnitOrganizationsApi:
|
|
|
3179
3180
|
|
|
3180
3181
|
return self.api_client.param_serialize(
|
|
3181
3182
|
method='GET',
|
|
3182
|
-
resource_path='/api/organization/{organization_id}/
|
|
3183
|
+
resource_path='/api/organization/{organization_id}/domains',
|
|
3183
3184
|
path_params=_path_params,
|
|
3184
3185
|
query_params=_query_params,
|
|
3185
3186
|
header_params=_header_params,
|
|
@@ -3196,7 +3197,7 @@ class UnitOrganizationsApi:
|
|
|
3196
3197
|
|
|
3197
3198
|
|
|
3198
3199
|
@validate_call
|
|
3199
|
-
def
|
|
3200
|
+
def get_organization_logo(
|
|
3200
3201
|
self,
|
|
3201
3202
|
organization_id: StrictInt,
|
|
3202
3203
|
_request_timeout: Union[
|
|
@@ -3211,8 +3212,8 @@ class UnitOrganizationsApi:
|
|
|
3211
3212
|
_content_type: Optional[StrictStr] = None,
|
|
3212
3213
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3213
3214
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3214
|
-
) ->
|
|
3215
|
-
"""
|
|
3215
|
+
) -> bytearray:
|
|
3216
|
+
"""Returns the logo of an organization
|
|
3216
3217
|
|
|
3217
3218
|
|
|
3218
3219
|
:param organization_id: (required)
|
|
@@ -3239,7 +3240,7 @@ class UnitOrganizationsApi:
|
|
|
3239
3240
|
:return: Returns the result object.
|
|
3240
3241
|
""" # noqa: E501
|
|
3241
3242
|
|
|
3242
|
-
_param = self.
|
|
3243
|
+
_param = self._get_organization_logo_serialize(
|
|
3243
3244
|
organization_id=organization_id,
|
|
3244
3245
|
_request_auth=_request_auth,
|
|
3245
3246
|
_content_type=_content_type,
|
|
@@ -3248,7 +3249,7 @@ class UnitOrganizationsApi:
|
|
|
3248
3249
|
)
|
|
3249
3250
|
|
|
3250
3251
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3251
|
-
'200': "
|
|
3252
|
+
'200': "bytearray",
|
|
3252
3253
|
}
|
|
3253
3254
|
response_data = self.api_client.call_api(
|
|
3254
3255
|
*_param,
|
|
@@ -3262,7 +3263,7 @@ class UnitOrganizationsApi:
|
|
|
3262
3263
|
|
|
3263
3264
|
|
|
3264
3265
|
@validate_call
|
|
3265
|
-
def
|
|
3266
|
+
def get_organization_logo_with_http_info(
|
|
3266
3267
|
self,
|
|
3267
3268
|
organization_id: StrictInt,
|
|
3268
3269
|
_request_timeout: Union[
|
|
@@ -3277,8 +3278,8 @@ class UnitOrganizationsApi:
|
|
|
3277
3278
|
_content_type: Optional[StrictStr] = None,
|
|
3278
3279
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3279
3280
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3280
|
-
) -> ApiResponse[
|
|
3281
|
-
"""
|
|
3281
|
+
) -> ApiResponse[bytearray]:
|
|
3282
|
+
"""Returns the logo of an organization
|
|
3282
3283
|
|
|
3283
3284
|
|
|
3284
3285
|
:param organization_id: (required)
|
|
@@ -3305,7 +3306,7 @@ class UnitOrganizationsApi:
|
|
|
3305
3306
|
:return: Returns the result object.
|
|
3306
3307
|
""" # noqa: E501
|
|
3307
3308
|
|
|
3308
|
-
_param = self.
|
|
3309
|
+
_param = self._get_organization_logo_serialize(
|
|
3309
3310
|
organization_id=organization_id,
|
|
3310
3311
|
_request_auth=_request_auth,
|
|
3311
3312
|
_content_type=_content_type,
|
|
@@ -3314,7 +3315,7 @@ class UnitOrganizationsApi:
|
|
|
3314
3315
|
)
|
|
3315
3316
|
|
|
3316
3317
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3317
|
-
'200': "
|
|
3318
|
+
'200': "bytearray",
|
|
3318
3319
|
}
|
|
3319
3320
|
response_data = self.api_client.call_api(
|
|
3320
3321
|
*_param,
|
|
@@ -3328,7 +3329,7 @@ class UnitOrganizationsApi:
|
|
|
3328
3329
|
|
|
3329
3330
|
|
|
3330
3331
|
@validate_call
|
|
3331
|
-
def
|
|
3332
|
+
def get_organization_logo_without_preload_content(
|
|
3332
3333
|
self,
|
|
3333
3334
|
organization_id: StrictInt,
|
|
3334
3335
|
_request_timeout: Union[
|
|
@@ -3344,7 +3345,7 @@ class UnitOrganizationsApi:
|
|
|
3344
3345
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3345
3346
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3346
3347
|
) -> RESTResponseType:
|
|
3347
|
-
"""
|
|
3348
|
+
"""Returns the logo of an organization
|
|
3348
3349
|
|
|
3349
3350
|
|
|
3350
3351
|
:param organization_id: (required)
|
|
@@ -3371,7 +3372,7 @@ class UnitOrganizationsApi:
|
|
|
3371
3372
|
:return: Returns the result object.
|
|
3372
3373
|
""" # noqa: E501
|
|
3373
3374
|
|
|
3374
|
-
_param = self.
|
|
3375
|
+
_param = self._get_organization_logo_serialize(
|
|
3375
3376
|
organization_id=organization_id,
|
|
3376
3377
|
_request_auth=_request_auth,
|
|
3377
3378
|
_content_type=_content_type,
|
|
@@ -3380,7 +3381,7 @@ class UnitOrganizationsApi:
|
|
|
3380
3381
|
)
|
|
3381
3382
|
|
|
3382
3383
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3383
|
-
'200': "
|
|
3384
|
+
'200': "bytearray",
|
|
3384
3385
|
}
|
|
3385
3386
|
response_data = self.api_client.call_api(
|
|
3386
3387
|
*_param,
|
|
@@ -3389,7 +3390,7 @@ class UnitOrganizationsApi:
|
|
|
3389
3390
|
return response_data.response
|
|
3390
3391
|
|
|
3391
3392
|
|
|
3392
|
-
def
|
|
3393
|
+
def _get_organization_logo_serialize(
|
|
3393
3394
|
self,
|
|
3394
3395
|
organization_id,
|
|
3395
3396
|
_request_auth,
|
|
@@ -3438,7 +3439,7 @@ class UnitOrganizationsApi:
|
|
|
3438
3439
|
|
|
3439
3440
|
return self.api_client.param_serialize(
|
|
3440
3441
|
method='GET',
|
|
3441
|
-
resource_path='/api/organization/{organization_id}/
|
|
3442
|
+
resource_path='/api/organization/{organization_id}/logo',
|
|
3442
3443
|
path_params=_path_params,
|
|
3443
3444
|
query_params=_query_params,
|
|
3444
3445
|
header_params=_header_params,
|
|
@@ -3455,7 +3456,7 @@ class UnitOrganizationsApi:
|
|
|
3455
3456
|
|
|
3456
3457
|
|
|
3457
3458
|
@validate_call
|
|
3458
|
-
def
|
|
3459
|
+
def get_users_from_organization(
|
|
3459
3460
|
self,
|
|
3460
3461
|
organization_id: StrictInt,
|
|
3461
3462
|
_request_timeout: Union[
|
|
@@ -3471,7 +3472,7 @@ class UnitOrganizationsApi:
|
|
|
3471
3472
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3472
3473
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3473
3474
|
) -> List[User]:
|
|
3474
|
-
"""
|
|
3475
|
+
"""Get all the users from an organization
|
|
3475
3476
|
|
|
3476
3477
|
|
|
3477
3478
|
:param organization_id: (required)
|
|
@@ -3498,7 +3499,7 @@ class UnitOrganizationsApi:
|
|
|
3498
3499
|
:return: Returns the result object.
|
|
3499
3500
|
""" # noqa: E501
|
|
3500
3501
|
|
|
3501
|
-
_param = self.
|
|
3502
|
+
_param = self._get_users_from_organization_serialize(
|
|
3502
3503
|
organization_id=organization_id,
|
|
3503
3504
|
_request_auth=_request_auth,
|
|
3504
3505
|
_content_type=_content_type,
|
|
@@ -3521,7 +3522,7 @@ class UnitOrganizationsApi:
|
|
|
3521
3522
|
|
|
3522
3523
|
|
|
3523
3524
|
@validate_call
|
|
3524
|
-
def
|
|
3525
|
+
def get_users_from_organization_with_http_info(
|
|
3525
3526
|
self,
|
|
3526
3527
|
organization_id: StrictInt,
|
|
3527
3528
|
_request_timeout: Union[
|
|
@@ -3537,7 +3538,7 @@ class UnitOrganizationsApi:
|
|
|
3537
3538
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3538
3539
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3539
3540
|
) -> ApiResponse[List[User]]:
|
|
3540
|
-
"""
|
|
3541
|
+
"""Get all the users from an organization
|
|
3541
3542
|
|
|
3542
3543
|
|
|
3543
3544
|
:param organization_id: (required)
|
|
@@ -3564,7 +3565,7 @@ class UnitOrganizationsApi:
|
|
|
3564
3565
|
:return: Returns the result object.
|
|
3565
3566
|
""" # noqa: E501
|
|
3566
3567
|
|
|
3567
|
-
_param = self.
|
|
3568
|
+
_param = self._get_users_from_organization_serialize(
|
|
3568
3569
|
organization_id=organization_id,
|
|
3569
3570
|
_request_auth=_request_auth,
|
|
3570
3571
|
_content_type=_content_type,
|
|
@@ -3587,7 +3588,7 @@ class UnitOrganizationsApi:
|
|
|
3587
3588
|
|
|
3588
3589
|
|
|
3589
3590
|
@validate_call
|
|
3590
|
-
def
|
|
3591
|
+
def get_users_from_organization_without_preload_content(
|
|
3591
3592
|
self,
|
|
3592
3593
|
organization_id: StrictInt,
|
|
3593
3594
|
_request_timeout: Union[
|
|
@@ -3603,7 +3604,7 @@ class UnitOrganizationsApi:
|
|
|
3603
3604
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3604
3605
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3605
3606
|
) -> RESTResponseType:
|
|
3606
|
-
"""
|
|
3607
|
+
"""Get all the users from an organization
|
|
3607
3608
|
|
|
3608
3609
|
|
|
3609
3610
|
:param organization_id: (required)
|
|
@@ -3630,7 +3631,7 @@ class UnitOrganizationsApi:
|
|
|
3630
3631
|
:return: Returns the result object.
|
|
3631
3632
|
""" # noqa: E501
|
|
3632
3633
|
|
|
3633
|
-
_param = self.
|
|
3634
|
+
_param = self._get_users_from_organization_serialize(
|
|
3634
3635
|
organization_id=organization_id,
|
|
3635
3636
|
_request_auth=_request_auth,
|
|
3636
3637
|
_content_type=_content_type,
|
|
@@ -3648,7 +3649,7 @@ class UnitOrganizationsApi:
|
|
|
3648
3649
|
return response_data.response
|
|
3649
3650
|
|
|
3650
3651
|
|
|
3651
|
-
def
|
|
3652
|
+
def _get_users_from_organization_serialize(
|
|
3652
3653
|
self,
|
|
3653
3654
|
organization_id,
|
|
3654
3655
|
_request_auth,
|
|
@@ -3697,7 +3698,7 @@ class UnitOrganizationsApi:
|
|
|
3697
3698
|
|
|
3698
3699
|
return self.api_client.param_serialize(
|
|
3699
3700
|
method='GET',
|
|
3700
|
-
resource_path='/api/organization/{organization_id}/
|
|
3701
|
+
resource_path='/api/organization/{organization_id}/users',
|
|
3701
3702
|
path_params=_path_params,
|
|
3702
3703
|
query_params=_query_params,
|
|
3703
3704
|
header_params=_header_params,
|
|
@@ -3714,7 +3715,7 @@ class UnitOrganizationsApi:
|
|
|
3714
3715
|
|
|
3715
3716
|
|
|
3716
3717
|
@validate_call
|
|
3717
|
-
def
|
|
3718
|
+
def is_forcing_selection(
|
|
3718
3719
|
self,
|
|
3719
3720
|
organization_id: StrictInt,
|
|
3720
3721
|
_request_timeout: Union[
|
|
@@ -3729,8 +3730,8 @@ class UnitOrganizationsApi:
|
|
|
3729
3730
|
_content_type: Optional[StrictStr] = None,
|
|
3730
3731
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3731
3732
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3732
|
-
) ->
|
|
3733
|
-
"""
|
|
3733
|
+
) -> bool:
|
|
3734
|
+
"""Get the domains of an organization
|
|
3734
3735
|
|
|
3735
3736
|
|
|
3736
3737
|
:param organization_id: (required)
|
|
@@ -3757,7 +3758,7 @@ class UnitOrganizationsApi:
|
|
|
3757
3758
|
:return: Returns the result object.
|
|
3758
3759
|
""" # noqa: E501
|
|
3759
3760
|
|
|
3760
|
-
_param = self.
|
|
3761
|
+
_param = self._is_forcing_selection_serialize(
|
|
3761
3762
|
organization_id=organization_id,
|
|
3762
3763
|
_request_auth=_request_auth,
|
|
3763
3764
|
_content_type=_content_type,
|
|
@@ -3766,7 +3767,7 @@ class UnitOrganizationsApi:
|
|
|
3766
3767
|
)
|
|
3767
3768
|
|
|
3768
3769
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3769
|
-
'200':
|
|
3770
|
+
'200': "bool",
|
|
3770
3771
|
}
|
|
3771
3772
|
response_data = self.api_client.call_api(
|
|
3772
3773
|
*_param,
|
|
@@ -3780,7 +3781,7 @@ class UnitOrganizationsApi:
|
|
|
3780
3781
|
|
|
3781
3782
|
|
|
3782
3783
|
@validate_call
|
|
3783
|
-
def
|
|
3784
|
+
def is_forcing_selection_with_http_info(
|
|
3784
3785
|
self,
|
|
3785
3786
|
organization_id: StrictInt,
|
|
3786
3787
|
_request_timeout: Union[
|
|
@@ -3795,8 +3796,8 @@ class UnitOrganizationsApi:
|
|
|
3795
3796
|
_content_type: Optional[StrictStr] = None,
|
|
3796
3797
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3797
3798
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3798
|
-
) -> ApiResponse[
|
|
3799
|
-
"""
|
|
3799
|
+
) -> ApiResponse[bool]:
|
|
3800
|
+
"""Get the domains of an organization
|
|
3800
3801
|
|
|
3801
3802
|
|
|
3802
3803
|
:param organization_id: (required)
|
|
@@ -3823,7 +3824,7 @@ class UnitOrganizationsApi:
|
|
|
3823
3824
|
:return: Returns the result object.
|
|
3824
3825
|
""" # noqa: E501
|
|
3825
3826
|
|
|
3826
|
-
_param = self.
|
|
3827
|
+
_param = self._is_forcing_selection_serialize(
|
|
3827
3828
|
organization_id=organization_id,
|
|
3828
3829
|
_request_auth=_request_auth,
|
|
3829
3830
|
_content_type=_content_type,
|
|
@@ -3832,7 +3833,7 @@ class UnitOrganizationsApi:
|
|
|
3832
3833
|
)
|
|
3833
3834
|
|
|
3834
3835
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3835
|
-
'200':
|
|
3836
|
+
'200': "bool",
|
|
3836
3837
|
}
|
|
3837
3838
|
response_data = self.api_client.call_api(
|
|
3838
3839
|
*_param,
|
|
@@ -3846,7 +3847,7 @@ class UnitOrganizationsApi:
|
|
|
3846
3847
|
|
|
3847
3848
|
|
|
3848
3849
|
@validate_call
|
|
3849
|
-
def
|
|
3850
|
+
def is_forcing_selection_without_preload_content(
|
|
3850
3851
|
self,
|
|
3851
3852
|
organization_id: StrictInt,
|
|
3852
3853
|
_request_timeout: Union[
|
|
@@ -3862,7 +3863,7 @@ class UnitOrganizationsApi:
|
|
|
3862
3863
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3863
3864
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3864
3865
|
) -> RESTResponseType:
|
|
3865
|
-
"""
|
|
3866
|
+
"""Get the domains of an organization
|
|
3866
3867
|
|
|
3867
3868
|
|
|
3868
3869
|
:param organization_id: (required)
|
|
@@ -3889,7 +3890,7 @@ class UnitOrganizationsApi:
|
|
|
3889
3890
|
:return: Returns the result object.
|
|
3890
3891
|
""" # noqa: E501
|
|
3891
3892
|
|
|
3892
|
-
_param = self.
|
|
3893
|
+
_param = self._is_forcing_selection_serialize(
|
|
3893
3894
|
organization_id=organization_id,
|
|
3894
3895
|
_request_auth=_request_auth,
|
|
3895
3896
|
_content_type=_content_type,
|
|
@@ -3898,7 +3899,7 @@ class UnitOrganizationsApi:
|
|
|
3898
3899
|
)
|
|
3899
3900
|
|
|
3900
3901
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3901
|
-
'200':
|
|
3902
|
+
'200': "bool",
|
|
3902
3903
|
}
|
|
3903
3904
|
response_data = self.api_client.call_api(
|
|
3904
3905
|
*_param,
|
|
@@ -3907,7 +3908,7 @@ class UnitOrganizationsApi:
|
|
|
3907
3908
|
return response_data.response
|
|
3908
3909
|
|
|
3909
3910
|
|
|
3910
|
-
def
|
|
3911
|
+
def _is_forcing_selection_serialize(
|
|
3911
3912
|
self,
|
|
3912
3913
|
organization_id,
|
|
3913
3914
|
_request_auth,
|
|
@@ -3939,6 +3940,13 @@ class UnitOrganizationsApi:
|
|
|
3939
3940
|
# process the body parameter
|
|
3940
3941
|
|
|
3941
3942
|
|
|
3943
|
+
# set the HTTP header `Accept`
|
|
3944
|
+
if 'Accept' not in _header_params:
|
|
3945
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3946
|
+
[
|
|
3947
|
+
'*/*'
|
|
3948
|
+
]
|
|
3949
|
+
)
|
|
3942
3950
|
|
|
3943
3951
|
|
|
3944
3952
|
# authentication setting
|
|
@@ -3948,8 +3956,8 @@ class UnitOrganizationsApi:
|
|
|
3948
3956
|
]
|
|
3949
3957
|
|
|
3950
3958
|
return self.api_client.param_serialize(
|
|
3951
|
-
method='
|
|
3952
|
-
resource_path='/api/organization/{organization_id}/
|
|
3959
|
+
method='GET',
|
|
3960
|
+
resource_path='/api/organization/{organization_id}/forcing-selection',
|
|
3953
3961
|
path_params=_path_params,
|
|
3954
3962
|
query_params=_query_params,
|
|
3955
3963
|
header_params=_header_params,
|
|
@@ -3966,9 +3974,9 @@ class UnitOrganizationsApi:
|
|
|
3966
3974
|
|
|
3967
3975
|
|
|
3968
3976
|
@validate_call
|
|
3969
|
-
def
|
|
3977
|
+
def list_admin_of_organization(
|
|
3970
3978
|
self,
|
|
3971
|
-
|
|
3979
|
+
organization_id: StrictInt,
|
|
3972
3980
|
_request_timeout: Union[
|
|
3973
3981
|
None,
|
|
3974
3982
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3981,12 +3989,12 @@ class UnitOrganizationsApi:
|
|
|
3981
3989
|
_content_type: Optional[StrictStr] = None,
|
|
3982
3990
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3983
3991
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3984
|
-
) ->
|
|
3985
|
-
"""
|
|
3992
|
+
) -> List[User]:
|
|
3993
|
+
"""List the admins of an organization
|
|
3986
3994
|
|
|
3987
3995
|
|
|
3988
|
-
:param
|
|
3989
|
-
:type
|
|
3996
|
+
:param organization_id: (required)
|
|
3997
|
+
:type organization_id: int
|
|
3990
3998
|
:param _request_timeout: timeout setting for this request. If one
|
|
3991
3999
|
number provided, it will be total request
|
|
3992
4000
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4009,8 +4017,8 @@ class UnitOrganizationsApi:
|
|
|
4009
4017
|
:return: Returns the result object.
|
|
4010
4018
|
""" # noqa: E501
|
|
4011
4019
|
|
|
4012
|
-
_param = self.
|
|
4013
|
-
|
|
4020
|
+
_param = self._list_admin_of_organization_serialize(
|
|
4021
|
+
organization_id=organization_id,
|
|
4014
4022
|
_request_auth=_request_auth,
|
|
4015
4023
|
_content_type=_content_type,
|
|
4016
4024
|
_headers=_headers,
|
|
@@ -4018,7 +4026,7 @@ class UnitOrganizationsApi:
|
|
|
4018
4026
|
)
|
|
4019
4027
|
|
|
4020
4028
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4021
|
-
'200': "
|
|
4029
|
+
'200': "List[User]",
|
|
4022
4030
|
}
|
|
4023
4031
|
response_data = self.api_client.call_api(
|
|
4024
4032
|
*_param,
|
|
@@ -4032,9 +4040,9 @@ class UnitOrganizationsApi:
|
|
|
4032
4040
|
|
|
4033
4041
|
|
|
4034
4042
|
@validate_call
|
|
4035
|
-
def
|
|
4043
|
+
def list_admin_of_organization_with_http_info(
|
|
4036
4044
|
self,
|
|
4037
|
-
|
|
4045
|
+
organization_id: StrictInt,
|
|
4038
4046
|
_request_timeout: Union[
|
|
4039
4047
|
None,
|
|
4040
4048
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4047,12 +4055,12 @@ class UnitOrganizationsApi:
|
|
|
4047
4055
|
_content_type: Optional[StrictStr] = None,
|
|
4048
4056
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4049
4057
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4050
|
-
) -> ApiResponse[
|
|
4051
|
-
"""
|
|
4058
|
+
) -> ApiResponse[List[User]]:
|
|
4059
|
+
"""List the admins of an organization
|
|
4052
4060
|
|
|
4053
4061
|
|
|
4054
|
-
:param
|
|
4055
|
-
:type
|
|
4062
|
+
:param organization_id: (required)
|
|
4063
|
+
:type organization_id: int
|
|
4056
4064
|
:param _request_timeout: timeout setting for this request. If one
|
|
4057
4065
|
number provided, it will be total request
|
|
4058
4066
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4075,8 +4083,8 @@ class UnitOrganizationsApi:
|
|
|
4075
4083
|
:return: Returns the result object.
|
|
4076
4084
|
""" # noqa: E501
|
|
4077
4085
|
|
|
4078
|
-
_param = self.
|
|
4079
|
-
|
|
4086
|
+
_param = self._list_admin_of_organization_serialize(
|
|
4087
|
+
organization_id=organization_id,
|
|
4080
4088
|
_request_auth=_request_auth,
|
|
4081
4089
|
_content_type=_content_type,
|
|
4082
4090
|
_headers=_headers,
|
|
@@ -4084,7 +4092,7 @@ class UnitOrganizationsApi:
|
|
|
4084
4092
|
)
|
|
4085
4093
|
|
|
4086
4094
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4087
|
-
'200': "
|
|
4095
|
+
'200': "List[User]",
|
|
4088
4096
|
}
|
|
4089
4097
|
response_data = self.api_client.call_api(
|
|
4090
4098
|
*_param,
|
|
@@ -4098,9 +4106,9 @@ class UnitOrganizationsApi:
|
|
|
4098
4106
|
|
|
4099
4107
|
|
|
4100
4108
|
@validate_call
|
|
4101
|
-
def
|
|
4109
|
+
def list_admin_of_organization_without_preload_content(
|
|
4102
4110
|
self,
|
|
4103
|
-
|
|
4111
|
+
organization_id: StrictInt,
|
|
4104
4112
|
_request_timeout: Union[
|
|
4105
4113
|
None,
|
|
4106
4114
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4114,11 +4122,11 @@ class UnitOrganizationsApi:
|
|
|
4114
4122
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4115
4123
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4116
4124
|
) -> RESTResponseType:
|
|
4117
|
-
"""
|
|
4125
|
+
"""List the admins of an organization
|
|
4118
4126
|
|
|
4119
4127
|
|
|
4120
|
-
:param
|
|
4121
|
-
:type
|
|
4128
|
+
:param organization_id: (required)
|
|
4129
|
+
:type organization_id: int
|
|
4122
4130
|
:param _request_timeout: timeout setting for this request. If one
|
|
4123
4131
|
number provided, it will be total request
|
|
4124
4132
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4141,8 +4149,8 @@ class UnitOrganizationsApi:
|
|
|
4141
4149
|
:return: Returns the result object.
|
|
4142
4150
|
""" # noqa: E501
|
|
4143
4151
|
|
|
4144
|
-
_param = self.
|
|
4145
|
-
|
|
4152
|
+
_param = self._list_admin_of_organization_serialize(
|
|
4153
|
+
organization_id=organization_id,
|
|
4146
4154
|
_request_auth=_request_auth,
|
|
4147
4155
|
_content_type=_content_type,
|
|
4148
4156
|
_headers=_headers,
|
|
@@ -4150,7 +4158,7 @@ class UnitOrganizationsApi:
|
|
|
4150
4158
|
)
|
|
4151
4159
|
|
|
4152
4160
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4153
|
-
'200': "
|
|
4161
|
+
'200': "List[User]",
|
|
4154
4162
|
}
|
|
4155
4163
|
response_data = self.api_client.call_api(
|
|
4156
4164
|
*_param,
|
|
@@ -4159,9 +4167,9 @@ class UnitOrganizationsApi:
|
|
|
4159
4167
|
return response_data.response
|
|
4160
4168
|
|
|
4161
4169
|
|
|
4162
|
-
def
|
|
4170
|
+
def _list_admin_of_organization_serialize(
|
|
4163
4171
|
self,
|
|
4164
|
-
|
|
4172
|
+
organization_id,
|
|
4165
4173
|
_request_auth,
|
|
4166
4174
|
_content_type,
|
|
4167
4175
|
_headers,
|
|
@@ -4183,11 +4191,9 @@ class UnitOrganizationsApi:
|
|
|
4183
4191
|
_body_params: Optional[bytes] = None
|
|
4184
4192
|
|
|
4185
4193
|
# process the path parameters
|
|
4194
|
+
if organization_id is not None:
|
|
4195
|
+
_path_params['organization_id'] = organization_id
|
|
4186
4196
|
# process the query parameters
|
|
4187
|
-
if filter is not None:
|
|
4188
|
-
|
|
4189
|
-
_query_params.append(('filter', filter))
|
|
4190
|
-
|
|
4191
4197
|
# process the header parameters
|
|
4192
4198
|
# process the form parameters
|
|
4193
4199
|
# process the body parameter
|
|
@@ -4210,7 +4216,7 @@ class UnitOrganizationsApi:
|
|
|
4210
4216
|
|
|
4211
4217
|
return self.api_client.param_serialize(
|
|
4212
4218
|
method='GET',
|
|
4213
|
-
resource_path='/api/organization/
|
|
4219
|
+
resource_path='/api/organization/{organization_id}/admin',
|
|
4214
4220
|
path_params=_path_params,
|
|
4215
4221
|
query_params=_query_params,
|
|
4216
4222
|
header_params=_header_params,
|
|
@@ -4227,10 +4233,9 @@ class UnitOrganizationsApi:
|
|
|
4227
4233
|
|
|
4228
4234
|
|
|
4229
4235
|
@validate_call
|
|
4230
|
-
def
|
|
4236
|
+
def reset_organization_logo(
|
|
4231
4237
|
self,
|
|
4232
4238
|
organization_id: StrictInt,
|
|
4233
|
-
forced: StrictBool,
|
|
4234
4239
|
_request_timeout: Union[
|
|
4235
4240
|
None,
|
|
4236
4241
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4244,13 +4249,11 @@ class UnitOrganizationsApi:
|
|
|
4244
4249
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4245
4250
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4246
4251
|
) -> None:
|
|
4247
|
-
"""
|
|
4252
|
+
"""Resets the logo of the organization
|
|
4248
4253
|
|
|
4249
4254
|
|
|
4250
4255
|
:param organization_id: (required)
|
|
4251
4256
|
:type organization_id: int
|
|
4252
|
-
:param forced: (required)
|
|
4253
|
-
:type forced: bool
|
|
4254
4257
|
:param _request_timeout: timeout setting for this request. If one
|
|
4255
4258
|
number provided, it will be total request
|
|
4256
4259
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4273,9 +4276,8 @@ class UnitOrganizationsApi:
|
|
|
4273
4276
|
:return: Returns the result object.
|
|
4274
4277
|
""" # noqa: E501
|
|
4275
4278
|
|
|
4276
|
-
_param = self.
|
|
4279
|
+
_param = self._reset_organization_logo_serialize(
|
|
4277
4280
|
organization_id=organization_id,
|
|
4278
|
-
forced=forced,
|
|
4279
4281
|
_request_auth=_request_auth,
|
|
4280
4282
|
_content_type=_content_type,
|
|
4281
4283
|
_headers=_headers,
|
|
@@ -4297,10 +4299,9 @@ class UnitOrganizationsApi:
|
|
|
4297
4299
|
|
|
4298
4300
|
|
|
4299
4301
|
@validate_call
|
|
4300
|
-
def
|
|
4302
|
+
def reset_organization_logo_with_http_info(
|
|
4301
4303
|
self,
|
|
4302
4304
|
organization_id: StrictInt,
|
|
4303
|
-
forced: StrictBool,
|
|
4304
4305
|
_request_timeout: Union[
|
|
4305
4306
|
None,
|
|
4306
4307
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4314,13 +4315,11 @@ class UnitOrganizationsApi:
|
|
|
4314
4315
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4315
4316
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4316
4317
|
) -> ApiResponse[None]:
|
|
4317
|
-
"""
|
|
4318
|
+
"""Resets the logo of the organization
|
|
4318
4319
|
|
|
4319
4320
|
|
|
4320
4321
|
:param organization_id: (required)
|
|
4321
4322
|
:type organization_id: int
|
|
4322
|
-
:param forced: (required)
|
|
4323
|
-
:type forced: bool
|
|
4324
4323
|
:param _request_timeout: timeout setting for this request. If one
|
|
4325
4324
|
number provided, it will be total request
|
|
4326
4325
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4343,9 +4342,8 @@ class UnitOrganizationsApi:
|
|
|
4343
4342
|
:return: Returns the result object.
|
|
4344
4343
|
""" # noqa: E501
|
|
4345
4344
|
|
|
4346
|
-
_param = self.
|
|
4345
|
+
_param = self._reset_organization_logo_serialize(
|
|
4347
4346
|
organization_id=organization_id,
|
|
4348
|
-
forced=forced,
|
|
4349
4347
|
_request_auth=_request_auth,
|
|
4350
4348
|
_content_type=_content_type,
|
|
4351
4349
|
_headers=_headers,
|
|
@@ -4367,10 +4365,9 @@ class UnitOrganizationsApi:
|
|
|
4367
4365
|
|
|
4368
4366
|
|
|
4369
4367
|
@validate_call
|
|
4370
|
-
def
|
|
4368
|
+
def reset_organization_logo_without_preload_content(
|
|
4371
4369
|
self,
|
|
4372
4370
|
organization_id: StrictInt,
|
|
4373
|
-
forced: StrictBool,
|
|
4374
4371
|
_request_timeout: Union[
|
|
4375
4372
|
None,
|
|
4376
4373
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4384,13 +4381,11 @@ class UnitOrganizationsApi:
|
|
|
4384
4381
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4385
4382
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4386
4383
|
) -> RESTResponseType:
|
|
4387
|
-
"""
|
|
4384
|
+
"""Resets the logo of the organization
|
|
4388
4385
|
|
|
4389
4386
|
|
|
4390
4387
|
:param organization_id: (required)
|
|
4391
4388
|
:type organization_id: int
|
|
4392
|
-
:param forced: (required)
|
|
4393
|
-
:type forced: bool
|
|
4394
4389
|
:param _request_timeout: timeout setting for this request. If one
|
|
4395
4390
|
number provided, it will be total request
|
|
4396
4391
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4413,9 +4408,8 @@ class UnitOrganizationsApi:
|
|
|
4413
4408
|
:return: Returns the result object.
|
|
4414
4409
|
""" # noqa: E501
|
|
4415
4410
|
|
|
4416
|
-
_param = self.
|
|
4411
|
+
_param = self._reset_organization_logo_serialize(
|
|
4417
4412
|
organization_id=organization_id,
|
|
4418
|
-
forced=forced,
|
|
4419
4413
|
_request_auth=_request_auth,
|
|
4420
4414
|
_content_type=_content_type,
|
|
4421
4415
|
_headers=_headers,
|
|
@@ -4432,10 +4426,9 @@ class UnitOrganizationsApi:
|
|
|
4432
4426
|
return response_data.response
|
|
4433
4427
|
|
|
4434
4428
|
|
|
4435
|
-
def
|
|
4429
|
+
def _reset_organization_logo_serialize(
|
|
4436
4430
|
self,
|
|
4437
4431
|
organization_id,
|
|
4438
|
-
forced,
|
|
4439
4432
|
_request_auth,
|
|
4440
4433
|
_content_type,
|
|
4441
4434
|
_headers,
|
|
@@ -4460,10 +4453,6 @@ class UnitOrganizationsApi:
|
|
|
4460
4453
|
if organization_id is not None:
|
|
4461
4454
|
_path_params['organization_id'] = organization_id
|
|
4462
4455
|
# process the query parameters
|
|
4463
|
-
if forced is not None:
|
|
4464
|
-
|
|
4465
|
-
_query_params.append(('forced', forced))
|
|
4466
|
-
|
|
4467
4456
|
# process the header parameters
|
|
4468
4457
|
# process the form parameters
|
|
4469
4458
|
# process the body parameter
|
|
@@ -4479,7 +4468,7 @@ class UnitOrganizationsApi:
|
|
|
4479
4468
|
|
|
4480
4469
|
return self.api_client.param_serialize(
|
|
4481
4470
|
method='POST',
|
|
4482
|
-
resource_path='/api/organization/{organization_id}/
|
|
4471
|
+
resource_path='/api/organization/{organization_id}/logo/reset',
|
|
4483
4472
|
path_params=_path_params,
|
|
4484
4473
|
query_params=_query_params,
|
|
4485
4474
|
header_params=_header_params,
|
|
@@ -4496,10 +4485,9 @@ class UnitOrganizationsApi:
|
|
|
4496
4485
|
|
|
4497
4486
|
|
|
4498
4487
|
@validate_call
|
|
4499
|
-
def
|
|
4488
|
+
def search_organizations(
|
|
4500
4489
|
self,
|
|
4501
|
-
|
|
4502
|
-
o_auth_team_attribute: StrictStr,
|
|
4490
|
+
filter: OrganizationFilterDto,
|
|
4503
4491
|
_request_timeout: Union[
|
|
4504
4492
|
None,
|
|
4505
4493
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4512,14 +4500,12 @@ class UnitOrganizationsApi:
|
|
|
4512
4500
|
_content_type: Optional[StrictStr] = None,
|
|
4513
4501
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4514
4502
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4515
|
-
) ->
|
|
4516
|
-
"""
|
|
4503
|
+
) -> OrganizationListDto:
|
|
4504
|
+
"""Search over all organizations
|
|
4517
4505
|
|
|
4518
4506
|
|
|
4519
|
-
:param
|
|
4520
|
-
:type
|
|
4521
|
-
:param o_auth_team_attribute: (required)
|
|
4522
|
-
:type o_auth_team_attribute: str
|
|
4507
|
+
:param filter: (required)
|
|
4508
|
+
:type filter: OrganizationFilterDto
|
|
4523
4509
|
:param _request_timeout: timeout setting for this request. If one
|
|
4524
4510
|
number provided, it will be total request
|
|
4525
4511
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4542,9 +4528,8 @@ class UnitOrganizationsApi:
|
|
|
4542
4528
|
:return: Returns the result object.
|
|
4543
4529
|
""" # noqa: E501
|
|
4544
4530
|
|
|
4545
|
-
_param = self.
|
|
4546
|
-
|
|
4547
|
-
o_auth_team_attribute=o_auth_team_attribute,
|
|
4531
|
+
_param = self._search_organizations_serialize(
|
|
4532
|
+
filter=filter,
|
|
4548
4533
|
_request_auth=_request_auth,
|
|
4549
4534
|
_content_type=_content_type,
|
|
4550
4535
|
_headers=_headers,
|
|
@@ -4552,7 +4537,880 @@ class UnitOrganizationsApi:
|
|
|
4552
4537
|
)
|
|
4553
4538
|
|
|
4554
4539
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4555
|
-
'200':
|
|
4540
|
+
'200': "OrganizationListDto",
|
|
4541
|
+
}
|
|
4542
|
+
response_data = self.api_client.call_api(
|
|
4543
|
+
*_param,
|
|
4544
|
+
_request_timeout=_request_timeout
|
|
4545
|
+
)
|
|
4546
|
+
response_data.read()
|
|
4547
|
+
return self.api_client.response_deserialize(
|
|
4548
|
+
response_data=response_data,
|
|
4549
|
+
response_types_map=_response_types_map,
|
|
4550
|
+
).data
|
|
4551
|
+
|
|
4552
|
+
|
|
4553
|
+
@validate_call
|
|
4554
|
+
def search_organizations_with_http_info(
|
|
4555
|
+
self,
|
|
4556
|
+
filter: OrganizationFilterDto,
|
|
4557
|
+
_request_timeout: Union[
|
|
4558
|
+
None,
|
|
4559
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4560
|
+
Tuple[
|
|
4561
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4562
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4563
|
+
]
|
|
4564
|
+
] = None,
|
|
4565
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4566
|
+
_content_type: Optional[StrictStr] = None,
|
|
4567
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4568
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4569
|
+
) -> ApiResponse[OrganizationListDto]:
|
|
4570
|
+
"""Search over all organizations
|
|
4571
|
+
|
|
4572
|
+
|
|
4573
|
+
:param filter: (required)
|
|
4574
|
+
:type filter: OrganizationFilterDto
|
|
4575
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4576
|
+
number provided, it will be total request
|
|
4577
|
+
timeout. It can also be a pair (tuple) of
|
|
4578
|
+
(connection, read) timeouts.
|
|
4579
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4580
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4581
|
+
request; this effectively ignores the
|
|
4582
|
+
authentication in the spec for a single request.
|
|
4583
|
+
:type _request_auth: dict, optional
|
|
4584
|
+
:param _content_type: force content-type for the request.
|
|
4585
|
+
:type _content_type: str, Optional
|
|
4586
|
+
:param _headers: set to override the headers for a single
|
|
4587
|
+
request; this effectively ignores the headers
|
|
4588
|
+
in the spec for a single request.
|
|
4589
|
+
:type _headers: dict, optional
|
|
4590
|
+
:param _host_index: set to override the host_index for a single
|
|
4591
|
+
request; this effectively ignores the host_index
|
|
4592
|
+
in the spec for a single request.
|
|
4593
|
+
:type _host_index: int, optional
|
|
4594
|
+
:return: Returns the result object.
|
|
4595
|
+
""" # noqa: E501
|
|
4596
|
+
|
|
4597
|
+
_param = self._search_organizations_serialize(
|
|
4598
|
+
filter=filter,
|
|
4599
|
+
_request_auth=_request_auth,
|
|
4600
|
+
_content_type=_content_type,
|
|
4601
|
+
_headers=_headers,
|
|
4602
|
+
_host_index=_host_index
|
|
4603
|
+
)
|
|
4604
|
+
|
|
4605
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4606
|
+
'200': "OrganizationListDto",
|
|
4607
|
+
}
|
|
4608
|
+
response_data = self.api_client.call_api(
|
|
4609
|
+
*_param,
|
|
4610
|
+
_request_timeout=_request_timeout
|
|
4611
|
+
)
|
|
4612
|
+
response_data.read()
|
|
4613
|
+
return self.api_client.response_deserialize(
|
|
4614
|
+
response_data=response_data,
|
|
4615
|
+
response_types_map=_response_types_map,
|
|
4616
|
+
)
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
@validate_call
|
|
4620
|
+
def search_organizations_without_preload_content(
|
|
4621
|
+
self,
|
|
4622
|
+
filter: OrganizationFilterDto,
|
|
4623
|
+
_request_timeout: Union[
|
|
4624
|
+
None,
|
|
4625
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4626
|
+
Tuple[
|
|
4627
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4628
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4629
|
+
]
|
|
4630
|
+
] = None,
|
|
4631
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4632
|
+
_content_type: Optional[StrictStr] = None,
|
|
4633
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4634
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4635
|
+
) -> RESTResponseType:
|
|
4636
|
+
"""Search over all organizations
|
|
4637
|
+
|
|
4638
|
+
|
|
4639
|
+
:param filter: (required)
|
|
4640
|
+
:type filter: OrganizationFilterDto
|
|
4641
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4642
|
+
number provided, it will be total request
|
|
4643
|
+
timeout. It can also be a pair (tuple) of
|
|
4644
|
+
(connection, read) timeouts.
|
|
4645
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4646
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4647
|
+
request; this effectively ignores the
|
|
4648
|
+
authentication in the spec for a single request.
|
|
4649
|
+
:type _request_auth: dict, optional
|
|
4650
|
+
:param _content_type: force content-type for the request.
|
|
4651
|
+
:type _content_type: str, Optional
|
|
4652
|
+
:param _headers: set to override the headers for a single
|
|
4653
|
+
request; this effectively ignores the headers
|
|
4654
|
+
in the spec for a single request.
|
|
4655
|
+
:type _headers: dict, optional
|
|
4656
|
+
:param _host_index: set to override the host_index for a single
|
|
4657
|
+
request; this effectively ignores the host_index
|
|
4658
|
+
in the spec for a single request.
|
|
4659
|
+
:type _host_index: int, optional
|
|
4660
|
+
:return: Returns the result object.
|
|
4661
|
+
""" # noqa: E501
|
|
4662
|
+
|
|
4663
|
+
_param = self._search_organizations_serialize(
|
|
4664
|
+
filter=filter,
|
|
4665
|
+
_request_auth=_request_auth,
|
|
4666
|
+
_content_type=_content_type,
|
|
4667
|
+
_headers=_headers,
|
|
4668
|
+
_host_index=_host_index
|
|
4669
|
+
)
|
|
4670
|
+
|
|
4671
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4672
|
+
'200': "OrganizationListDto",
|
|
4673
|
+
}
|
|
4674
|
+
response_data = self.api_client.call_api(
|
|
4675
|
+
*_param,
|
|
4676
|
+
_request_timeout=_request_timeout
|
|
4677
|
+
)
|
|
4678
|
+
return response_data.response
|
|
4679
|
+
|
|
4680
|
+
|
|
4681
|
+
def _search_organizations_serialize(
|
|
4682
|
+
self,
|
|
4683
|
+
filter,
|
|
4684
|
+
_request_auth,
|
|
4685
|
+
_content_type,
|
|
4686
|
+
_headers,
|
|
4687
|
+
_host_index,
|
|
4688
|
+
) -> RequestSerialized:
|
|
4689
|
+
|
|
4690
|
+
_host = None
|
|
4691
|
+
|
|
4692
|
+
_collection_formats: Dict[str, str] = {
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4695
|
+
_path_params: Dict[str, str] = {}
|
|
4696
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4697
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4698
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4699
|
+
_files: Dict[
|
|
4700
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4701
|
+
] = {}
|
|
4702
|
+
_body_params: Optional[bytes] = None
|
|
4703
|
+
|
|
4704
|
+
# process the path parameters
|
|
4705
|
+
# process the query parameters
|
|
4706
|
+
if filter is not None:
|
|
4707
|
+
|
|
4708
|
+
_query_params.append(('filter', filter))
|
|
4709
|
+
|
|
4710
|
+
# process the header parameters
|
|
4711
|
+
# process the form parameters
|
|
4712
|
+
# process the body parameter
|
|
4713
|
+
|
|
4714
|
+
|
|
4715
|
+
# set the HTTP header `Accept`
|
|
4716
|
+
if 'Accept' not in _header_params:
|
|
4717
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4718
|
+
[
|
|
4719
|
+
'*/*'
|
|
4720
|
+
]
|
|
4721
|
+
)
|
|
4722
|
+
|
|
4723
|
+
|
|
4724
|
+
# authentication setting
|
|
4725
|
+
_auth_settings: List[str] = [
|
|
4726
|
+
'QAnswer-Api-Key',
|
|
4727
|
+
'Bearer'
|
|
4728
|
+
]
|
|
4729
|
+
|
|
4730
|
+
return self.api_client.param_serialize(
|
|
4731
|
+
method='GET',
|
|
4732
|
+
resource_path='/api/organization/search',
|
|
4733
|
+
path_params=_path_params,
|
|
4734
|
+
query_params=_query_params,
|
|
4735
|
+
header_params=_header_params,
|
|
4736
|
+
body=_body_params,
|
|
4737
|
+
post_params=_form_params,
|
|
4738
|
+
files=_files,
|
|
4739
|
+
auth_settings=_auth_settings,
|
|
4740
|
+
collection_formats=_collection_formats,
|
|
4741
|
+
_host=_host,
|
|
4742
|
+
_request_auth=_request_auth
|
|
4743
|
+
)
|
|
4744
|
+
|
|
4745
|
+
|
|
4746
|
+
|
|
4747
|
+
|
|
4748
|
+
@validate_call
|
|
4749
|
+
def set_force_o_auth(
|
|
4750
|
+
self,
|
|
4751
|
+
organization_id: StrictInt,
|
|
4752
|
+
forced: StrictBool,
|
|
4753
|
+
_request_timeout: Union[
|
|
4754
|
+
None,
|
|
4755
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4756
|
+
Tuple[
|
|
4757
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4758
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4759
|
+
]
|
|
4760
|
+
] = None,
|
|
4761
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4762
|
+
_content_type: Optional[StrictStr] = None,
|
|
4763
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4764
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4765
|
+
) -> None:
|
|
4766
|
+
"""Sets the domain of the organization
|
|
4767
|
+
|
|
4768
|
+
|
|
4769
|
+
:param organization_id: (required)
|
|
4770
|
+
:type organization_id: int
|
|
4771
|
+
:param forced: (required)
|
|
4772
|
+
:type forced: bool
|
|
4773
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4774
|
+
number provided, it will be total request
|
|
4775
|
+
timeout. It can also be a pair (tuple) of
|
|
4776
|
+
(connection, read) timeouts.
|
|
4777
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4778
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4779
|
+
request; this effectively ignores the
|
|
4780
|
+
authentication in the spec for a single request.
|
|
4781
|
+
:type _request_auth: dict, optional
|
|
4782
|
+
:param _content_type: force content-type for the request.
|
|
4783
|
+
:type _content_type: str, Optional
|
|
4784
|
+
:param _headers: set to override the headers for a single
|
|
4785
|
+
request; this effectively ignores the headers
|
|
4786
|
+
in the spec for a single request.
|
|
4787
|
+
:type _headers: dict, optional
|
|
4788
|
+
:param _host_index: set to override the host_index for a single
|
|
4789
|
+
request; this effectively ignores the host_index
|
|
4790
|
+
in the spec for a single request.
|
|
4791
|
+
:type _host_index: int, optional
|
|
4792
|
+
:return: Returns the result object.
|
|
4793
|
+
""" # noqa: E501
|
|
4794
|
+
|
|
4795
|
+
_param = self._set_force_o_auth_serialize(
|
|
4796
|
+
organization_id=organization_id,
|
|
4797
|
+
forced=forced,
|
|
4798
|
+
_request_auth=_request_auth,
|
|
4799
|
+
_content_type=_content_type,
|
|
4800
|
+
_headers=_headers,
|
|
4801
|
+
_host_index=_host_index
|
|
4802
|
+
)
|
|
4803
|
+
|
|
4804
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4805
|
+
'200': None,
|
|
4806
|
+
}
|
|
4807
|
+
response_data = self.api_client.call_api(
|
|
4808
|
+
*_param,
|
|
4809
|
+
_request_timeout=_request_timeout
|
|
4810
|
+
)
|
|
4811
|
+
response_data.read()
|
|
4812
|
+
return self.api_client.response_deserialize(
|
|
4813
|
+
response_data=response_data,
|
|
4814
|
+
response_types_map=_response_types_map,
|
|
4815
|
+
).data
|
|
4816
|
+
|
|
4817
|
+
|
|
4818
|
+
@validate_call
|
|
4819
|
+
def set_force_o_auth_with_http_info(
|
|
4820
|
+
self,
|
|
4821
|
+
organization_id: StrictInt,
|
|
4822
|
+
forced: StrictBool,
|
|
4823
|
+
_request_timeout: Union[
|
|
4824
|
+
None,
|
|
4825
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4826
|
+
Tuple[
|
|
4827
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4828
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4829
|
+
]
|
|
4830
|
+
] = None,
|
|
4831
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4832
|
+
_content_type: Optional[StrictStr] = None,
|
|
4833
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4834
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4835
|
+
) -> ApiResponse[None]:
|
|
4836
|
+
"""Sets the domain of the organization
|
|
4837
|
+
|
|
4838
|
+
|
|
4839
|
+
:param organization_id: (required)
|
|
4840
|
+
:type organization_id: int
|
|
4841
|
+
:param forced: (required)
|
|
4842
|
+
:type forced: bool
|
|
4843
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4844
|
+
number provided, it will be total request
|
|
4845
|
+
timeout. It can also be a pair (tuple) of
|
|
4846
|
+
(connection, read) timeouts.
|
|
4847
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4848
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4849
|
+
request; this effectively ignores the
|
|
4850
|
+
authentication in the spec for a single request.
|
|
4851
|
+
:type _request_auth: dict, optional
|
|
4852
|
+
:param _content_type: force content-type for the request.
|
|
4853
|
+
:type _content_type: str, Optional
|
|
4854
|
+
:param _headers: set to override the headers for a single
|
|
4855
|
+
request; this effectively ignores the headers
|
|
4856
|
+
in the spec for a single request.
|
|
4857
|
+
:type _headers: dict, optional
|
|
4858
|
+
:param _host_index: set to override the host_index for a single
|
|
4859
|
+
request; this effectively ignores the host_index
|
|
4860
|
+
in the spec for a single request.
|
|
4861
|
+
:type _host_index: int, optional
|
|
4862
|
+
:return: Returns the result object.
|
|
4863
|
+
""" # noqa: E501
|
|
4864
|
+
|
|
4865
|
+
_param = self._set_force_o_auth_serialize(
|
|
4866
|
+
organization_id=organization_id,
|
|
4867
|
+
forced=forced,
|
|
4868
|
+
_request_auth=_request_auth,
|
|
4869
|
+
_content_type=_content_type,
|
|
4870
|
+
_headers=_headers,
|
|
4871
|
+
_host_index=_host_index
|
|
4872
|
+
)
|
|
4873
|
+
|
|
4874
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4875
|
+
'200': None,
|
|
4876
|
+
}
|
|
4877
|
+
response_data = self.api_client.call_api(
|
|
4878
|
+
*_param,
|
|
4879
|
+
_request_timeout=_request_timeout
|
|
4880
|
+
)
|
|
4881
|
+
response_data.read()
|
|
4882
|
+
return self.api_client.response_deserialize(
|
|
4883
|
+
response_data=response_data,
|
|
4884
|
+
response_types_map=_response_types_map,
|
|
4885
|
+
)
|
|
4886
|
+
|
|
4887
|
+
|
|
4888
|
+
@validate_call
|
|
4889
|
+
def set_force_o_auth_without_preload_content(
|
|
4890
|
+
self,
|
|
4891
|
+
organization_id: StrictInt,
|
|
4892
|
+
forced: StrictBool,
|
|
4893
|
+
_request_timeout: Union[
|
|
4894
|
+
None,
|
|
4895
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4896
|
+
Tuple[
|
|
4897
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4898
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4899
|
+
]
|
|
4900
|
+
] = None,
|
|
4901
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4902
|
+
_content_type: Optional[StrictStr] = None,
|
|
4903
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4904
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4905
|
+
) -> RESTResponseType:
|
|
4906
|
+
"""Sets the domain of the organization
|
|
4907
|
+
|
|
4908
|
+
|
|
4909
|
+
:param organization_id: (required)
|
|
4910
|
+
:type organization_id: int
|
|
4911
|
+
:param forced: (required)
|
|
4912
|
+
:type forced: bool
|
|
4913
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4914
|
+
number provided, it will be total request
|
|
4915
|
+
timeout. It can also be a pair (tuple) of
|
|
4916
|
+
(connection, read) timeouts.
|
|
4917
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4918
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4919
|
+
request; this effectively ignores the
|
|
4920
|
+
authentication in the spec for a single request.
|
|
4921
|
+
:type _request_auth: dict, optional
|
|
4922
|
+
:param _content_type: force content-type for the request.
|
|
4923
|
+
:type _content_type: str, Optional
|
|
4924
|
+
:param _headers: set to override the headers for a single
|
|
4925
|
+
request; this effectively ignores the headers
|
|
4926
|
+
in the spec for a single request.
|
|
4927
|
+
:type _headers: dict, optional
|
|
4928
|
+
:param _host_index: set to override the host_index for a single
|
|
4929
|
+
request; this effectively ignores the host_index
|
|
4930
|
+
in the spec for a single request.
|
|
4931
|
+
:type _host_index: int, optional
|
|
4932
|
+
:return: Returns the result object.
|
|
4933
|
+
""" # noqa: E501
|
|
4934
|
+
|
|
4935
|
+
_param = self._set_force_o_auth_serialize(
|
|
4936
|
+
organization_id=organization_id,
|
|
4937
|
+
forced=forced,
|
|
4938
|
+
_request_auth=_request_auth,
|
|
4939
|
+
_content_type=_content_type,
|
|
4940
|
+
_headers=_headers,
|
|
4941
|
+
_host_index=_host_index
|
|
4942
|
+
)
|
|
4943
|
+
|
|
4944
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4945
|
+
'200': None,
|
|
4946
|
+
}
|
|
4947
|
+
response_data = self.api_client.call_api(
|
|
4948
|
+
*_param,
|
|
4949
|
+
_request_timeout=_request_timeout
|
|
4950
|
+
)
|
|
4951
|
+
return response_data.response
|
|
4952
|
+
|
|
4953
|
+
|
|
4954
|
+
def _set_force_o_auth_serialize(
|
|
4955
|
+
self,
|
|
4956
|
+
organization_id,
|
|
4957
|
+
forced,
|
|
4958
|
+
_request_auth,
|
|
4959
|
+
_content_type,
|
|
4960
|
+
_headers,
|
|
4961
|
+
_host_index,
|
|
4962
|
+
) -> RequestSerialized:
|
|
4963
|
+
|
|
4964
|
+
_host = None
|
|
4965
|
+
|
|
4966
|
+
_collection_formats: Dict[str, str] = {
|
|
4967
|
+
}
|
|
4968
|
+
|
|
4969
|
+
_path_params: Dict[str, str] = {}
|
|
4970
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4971
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4972
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4973
|
+
_files: Dict[
|
|
4974
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4975
|
+
] = {}
|
|
4976
|
+
_body_params: Optional[bytes] = None
|
|
4977
|
+
|
|
4978
|
+
# process the path parameters
|
|
4979
|
+
if organization_id is not None:
|
|
4980
|
+
_path_params['organization_id'] = organization_id
|
|
4981
|
+
# process the query parameters
|
|
4982
|
+
if forced is not None:
|
|
4983
|
+
|
|
4984
|
+
_query_params.append(('forced', forced))
|
|
4985
|
+
|
|
4986
|
+
# process the header parameters
|
|
4987
|
+
# process the form parameters
|
|
4988
|
+
# process the body parameter
|
|
4989
|
+
|
|
4990
|
+
|
|
4991
|
+
|
|
4992
|
+
|
|
4993
|
+
# authentication setting
|
|
4994
|
+
_auth_settings: List[str] = [
|
|
4995
|
+
'QAnswer-Api-Key',
|
|
4996
|
+
'Bearer'
|
|
4997
|
+
]
|
|
4998
|
+
|
|
4999
|
+
return self.api_client.param_serialize(
|
|
5000
|
+
method='POST',
|
|
5001
|
+
resource_path='/api/organization/{organization_id}/force-oauth',
|
|
5002
|
+
path_params=_path_params,
|
|
5003
|
+
query_params=_query_params,
|
|
5004
|
+
header_params=_header_params,
|
|
5005
|
+
body=_body_params,
|
|
5006
|
+
post_params=_form_params,
|
|
5007
|
+
files=_files,
|
|
5008
|
+
auth_settings=_auth_settings,
|
|
5009
|
+
collection_formats=_collection_formats,
|
|
5010
|
+
_host=_host,
|
|
5011
|
+
_request_auth=_request_auth
|
|
5012
|
+
)
|
|
5013
|
+
|
|
5014
|
+
|
|
5015
|
+
|
|
5016
|
+
|
|
5017
|
+
@validate_call
|
|
5018
|
+
def set_forcing_selection(
|
|
5019
|
+
self,
|
|
5020
|
+
organization_id: StrictInt,
|
|
5021
|
+
forced: StrictBool,
|
|
5022
|
+
_request_timeout: Union[
|
|
5023
|
+
None,
|
|
5024
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5025
|
+
Tuple[
|
|
5026
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5027
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5028
|
+
]
|
|
5029
|
+
] = None,
|
|
5030
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5031
|
+
_content_type: Optional[StrictStr] = None,
|
|
5032
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5033
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5034
|
+
) -> None:
|
|
5035
|
+
"""Sets the domain of the organization
|
|
5036
|
+
|
|
5037
|
+
|
|
5038
|
+
:param organization_id: (required)
|
|
5039
|
+
:type organization_id: int
|
|
5040
|
+
:param forced: (required)
|
|
5041
|
+
:type forced: bool
|
|
5042
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5043
|
+
number provided, it will be total request
|
|
5044
|
+
timeout. It can also be a pair (tuple) of
|
|
5045
|
+
(connection, read) timeouts.
|
|
5046
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5047
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5048
|
+
request; this effectively ignores the
|
|
5049
|
+
authentication in the spec for a single request.
|
|
5050
|
+
:type _request_auth: dict, optional
|
|
5051
|
+
:param _content_type: force content-type for the request.
|
|
5052
|
+
:type _content_type: str, Optional
|
|
5053
|
+
:param _headers: set to override the headers for a single
|
|
5054
|
+
request; this effectively ignores the headers
|
|
5055
|
+
in the spec for a single request.
|
|
5056
|
+
:type _headers: dict, optional
|
|
5057
|
+
:param _host_index: set to override the host_index for a single
|
|
5058
|
+
request; this effectively ignores the host_index
|
|
5059
|
+
in the spec for a single request.
|
|
5060
|
+
:type _host_index: int, optional
|
|
5061
|
+
:return: Returns the result object.
|
|
5062
|
+
""" # noqa: E501
|
|
5063
|
+
|
|
5064
|
+
_param = self._set_forcing_selection_serialize(
|
|
5065
|
+
organization_id=organization_id,
|
|
5066
|
+
forced=forced,
|
|
5067
|
+
_request_auth=_request_auth,
|
|
5068
|
+
_content_type=_content_type,
|
|
5069
|
+
_headers=_headers,
|
|
5070
|
+
_host_index=_host_index
|
|
5071
|
+
)
|
|
5072
|
+
|
|
5073
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5074
|
+
'200': None,
|
|
5075
|
+
}
|
|
5076
|
+
response_data = self.api_client.call_api(
|
|
5077
|
+
*_param,
|
|
5078
|
+
_request_timeout=_request_timeout
|
|
5079
|
+
)
|
|
5080
|
+
response_data.read()
|
|
5081
|
+
return self.api_client.response_deserialize(
|
|
5082
|
+
response_data=response_data,
|
|
5083
|
+
response_types_map=_response_types_map,
|
|
5084
|
+
).data
|
|
5085
|
+
|
|
5086
|
+
|
|
5087
|
+
@validate_call
|
|
5088
|
+
def set_forcing_selection_with_http_info(
|
|
5089
|
+
self,
|
|
5090
|
+
organization_id: StrictInt,
|
|
5091
|
+
forced: StrictBool,
|
|
5092
|
+
_request_timeout: Union[
|
|
5093
|
+
None,
|
|
5094
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5095
|
+
Tuple[
|
|
5096
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5097
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5098
|
+
]
|
|
5099
|
+
] = None,
|
|
5100
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5101
|
+
_content_type: Optional[StrictStr] = None,
|
|
5102
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5103
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5104
|
+
) -> ApiResponse[None]:
|
|
5105
|
+
"""Sets the domain of the organization
|
|
5106
|
+
|
|
5107
|
+
|
|
5108
|
+
:param organization_id: (required)
|
|
5109
|
+
:type organization_id: int
|
|
5110
|
+
:param forced: (required)
|
|
5111
|
+
:type forced: bool
|
|
5112
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5113
|
+
number provided, it will be total request
|
|
5114
|
+
timeout. It can also be a pair (tuple) of
|
|
5115
|
+
(connection, read) timeouts.
|
|
5116
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5117
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5118
|
+
request; this effectively ignores the
|
|
5119
|
+
authentication in the spec for a single request.
|
|
5120
|
+
:type _request_auth: dict, optional
|
|
5121
|
+
:param _content_type: force content-type for the request.
|
|
5122
|
+
:type _content_type: str, Optional
|
|
5123
|
+
:param _headers: set to override the headers for a single
|
|
5124
|
+
request; this effectively ignores the headers
|
|
5125
|
+
in the spec for a single request.
|
|
5126
|
+
:type _headers: dict, optional
|
|
5127
|
+
:param _host_index: set to override the host_index for a single
|
|
5128
|
+
request; this effectively ignores the host_index
|
|
5129
|
+
in the spec for a single request.
|
|
5130
|
+
:type _host_index: int, optional
|
|
5131
|
+
:return: Returns the result object.
|
|
5132
|
+
""" # noqa: E501
|
|
5133
|
+
|
|
5134
|
+
_param = self._set_forcing_selection_serialize(
|
|
5135
|
+
organization_id=organization_id,
|
|
5136
|
+
forced=forced,
|
|
5137
|
+
_request_auth=_request_auth,
|
|
5138
|
+
_content_type=_content_type,
|
|
5139
|
+
_headers=_headers,
|
|
5140
|
+
_host_index=_host_index
|
|
5141
|
+
)
|
|
5142
|
+
|
|
5143
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5144
|
+
'200': None,
|
|
5145
|
+
}
|
|
5146
|
+
response_data = self.api_client.call_api(
|
|
5147
|
+
*_param,
|
|
5148
|
+
_request_timeout=_request_timeout
|
|
5149
|
+
)
|
|
5150
|
+
response_data.read()
|
|
5151
|
+
return self.api_client.response_deserialize(
|
|
5152
|
+
response_data=response_data,
|
|
5153
|
+
response_types_map=_response_types_map,
|
|
5154
|
+
)
|
|
5155
|
+
|
|
5156
|
+
|
|
5157
|
+
@validate_call
|
|
5158
|
+
def set_forcing_selection_without_preload_content(
|
|
5159
|
+
self,
|
|
5160
|
+
organization_id: StrictInt,
|
|
5161
|
+
forced: StrictBool,
|
|
5162
|
+
_request_timeout: Union[
|
|
5163
|
+
None,
|
|
5164
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5165
|
+
Tuple[
|
|
5166
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5167
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5168
|
+
]
|
|
5169
|
+
] = None,
|
|
5170
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5171
|
+
_content_type: Optional[StrictStr] = None,
|
|
5172
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5173
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5174
|
+
) -> RESTResponseType:
|
|
5175
|
+
"""Sets the domain of the organization
|
|
5176
|
+
|
|
5177
|
+
|
|
5178
|
+
:param organization_id: (required)
|
|
5179
|
+
:type organization_id: int
|
|
5180
|
+
:param forced: (required)
|
|
5181
|
+
:type forced: bool
|
|
5182
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5183
|
+
number provided, it will be total request
|
|
5184
|
+
timeout. It can also be a pair (tuple) of
|
|
5185
|
+
(connection, read) timeouts.
|
|
5186
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5187
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5188
|
+
request; this effectively ignores the
|
|
5189
|
+
authentication in the spec for a single request.
|
|
5190
|
+
:type _request_auth: dict, optional
|
|
5191
|
+
:param _content_type: force content-type for the request.
|
|
5192
|
+
:type _content_type: str, Optional
|
|
5193
|
+
:param _headers: set to override the headers for a single
|
|
5194
|
+
request; this effectively ignores the headers
|
|
5195
|
+
in the spec for a single request.
|
|
5196
|
+
:type _headers: dict, optional
|
|
5197
|
+
:param _host_index: set to override the host_index for a single
|
|
5198
|
+
request; this effectively ignores the host_index
|
|
5199
|
+
in the spec for a single request.
|
|
5200
|
+
:type _host_index: int, optional
|
|
5201
|
+
:return: Returns the result object.
|
|
5202
|
+
""" # noqa: E501
|
|
5203
|
+
|
|
5204
|
+
_param = self._set_forcing_selection_serialize(
|
|
5205
|
+
organization_id=organization_id,
|
|
5206
|
+
forced=forced,
|
|
5207
|
+
_request_auth=_request_auth,
|
|
5208
|
+
_content_type=_content_type,
|
|
5209
|
+
_headers=_headers,
|
|
5210
|
+
_host_index=_host_index
|
|
5211
|
+
)
|
|
5212
|
+
|
|
5213
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5214
|
+
'200': None,
|
|
5215
|
+
}
|
|
5216
|
+
response_data = self.api_client.call_api(
|
|
5217
|
+
*_param,
|
|
5218
|
+
_request_timeout=_request_timeout
|
|
5219
|
+
)
|
|
5220
|
+
return response_data.response
|
|
5221
|
+
|
|
5222
|
+
|
|
5223
|
+
def _set_forcing_selection_serialize(
|
|
5224
|
+
self,
|
|
5225
|
+
organization_id,
|
|
5226
|
+
forced,
|
|
5227
|
+
_request_auth,
|
|
5228
|
+
_content_type,
|
|
5229
|
+
_headers,
|
|
5230
|
+
_host_index,
|
|
5231
|
+
) -> RequestSerialized:
|
|
5232
|
+
|
|
5233
|
+
_host = None
|
|
5234
|
+
|
|
5235
|
+
_collection_formats: Dict[str, str] = {
|
|
5236
|
+
}
|
|
5237
|
+
|
|
5238
|
+
_path_params: Dict[str, str] = {}
|
|
5239
|
+
_query_params: List[Tuple[str, str]] = []
|
|
5240
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5241
|
+
_form_params: List[Tuple[str, str]] = []
|
|
5242
|
+
_files: Dict[
|
|
5243
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
5244
|
+
] = {}
|
|
5245
|
+
_body_params: Optional[bytes] = None
|
|
5246
|
+
|
|
5247
|
+
# process the path parameters
|
|
5248
|
+
if organization_id is not None:
|
|
5249
|
+
_path_params['organization_id'] = organization_id
|
|
5250
|
+
# process the query parameters
|
|
5251
|
+
if forced is not None:
|
|
5252
|
+
|
|
5253
|
+
_query_params.append(('forced', forced))
|
|
5254
|
+
|
|
5255
|
+
# process the header parameters
|
|
5256
|
+
# process the form parameters
|
|
5257
|
+
# process the body parameter
|
|
5258
|
+
|
|
5259
|
+
|
|
5260
|
+
|
|
5261
|
+
|
|
5262
|
+
# authentication setting
|
|
5263
|
+
_auth_settings: List[str] = [
|
|
5264
|
+
'QAnswer-Api-Key',
|
|
5265
|
+
'Bearer'
|
|
5266
|
+
]
|
|
5267
|
+
|
|
5268
|
+
return self.api_client.param_serialize(
|
|
5269
|
+
method='POST',
|
|
5270
|
+
resource_path='/api/organization/{organization_id}/forcing-selection',
|
|
5271
|
+
path_params=_path_params,
|
|
5272
|
+
query_params=_query_params,
|
|
5273
|
+
header_params=_header_params,
|
|
5274
|
+
body=_body_params,
|
|
5275
|
+
post_params=_form_params,
|
|
5276
|
+
files=_files,
|
|
5277
|
+
auth_settings=_auth_settings,
|
|
5278
|
+
collection_formats=_collection_formats,
|
|
5279
|
+
_host=_host,
|
|
5280
|
+
_request_auth=_request_auth
|
|
5281
|
+
)
|
|
5282
|
+
|
|
5283
|
+
|
|
5284
|
+
|
|
5285
|
+
|
|
5286
|
+
@validate_call
|
|
5287
|
+
def set_o_auth_team_attribute(
|
|
5288
|
+
self,
|
|
5289
|
+
organization_id: StrictInt,
|
|
5290
|
+
o_auth_team_attribute: StrictStr,
|
|
5291
|
+
_request_timeout: Union[
|
|
5292
|
+
None,
|
|
5293
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5294
|
+
Tuple[
|
|
5295
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5296
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5297
|
+
]
|
|
5298
|
+
] = None,
|
|
5299
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5300
|
+
_content_type: Optional[StrictStr] = None,
|
|
5301
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5302
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5303
|
+
) -> None:
|
|
5304
|
+
"""set_o_auth_team_attribute
|
|
5305
|
+
|
|
5306
|
+
|
|
5307
|
+
:param organization_id: (required)
|
|
5308
|
+
:type organization_id: int
|
|
5309
|
+
:param o_auth_team_attribute: (required)
|
|
5310
|
+
:type o_auth_team_attribute: str
|
|
5311
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5312
|
+
number provided, it will be total request
|
|
5313
|
+
timeout. It can also be a pair (tuple) of
|
|
5314
|
+
(connection, read) timeouts.
|
|
5315
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5316
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5317
|
+
request; this effectively ignores the
|
|
5318
|
+
authentication in the spec for a single request.
|
|
5319
|
+
:type _request_auth: dict, optional
|
|
5320
|
+
:param _content_type: force content-type for the request.
|
|
5321
|
+
:type _content_type: str, Optional
|
|
5322
|
+
:param _headers: set to override the headers for a single
|
|
5323
|
+
request; this effectively ignores the headers
|
|
5324
|
+
in the spec for a single request.
|
|
5325
|
+
:type _headers: dict, optional
|
|
5326
|
+
:param _host_index: set to override the host_index for a single
|
|
5327
|
+
request; this effectively ignores the host_index
|
|
5328
|
+
in the spec for a single request.
|
|
5329
|
+
:type _host_index: int, optional
|
|
5330
|
+
:return: Returns the result object.
|
|
5331
|
+
""" # noqa: E501
|
|
5332
|
+
|
|
5333
|
+
_param = self._set_o_auth_team_attribute_serialize(
|
|
5334
|
+
organization_id=organization_id,
|
|
5335
|
+
o_auth_team_attribute=o_auth_team_attribute,
|
|
5336
|
+
_request_auth=_request_auth,
|
|
5337
|
+
_content_type=_content_type,
|
|
5338
|
+
_headers=_headers,
|
|
5339
|
+
_host_index=_host_index
|
|
5340
|
+
)
|
|
5341
|
+
|
|
5342
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5343
|
+
'200': None,
|
|
5344
|
+
}
|
|
5345
|
+
response_data = self.api_client.call_api(
|
|
5346
|
+
*_param,
|
|
5347
|
+
_request_timeout=_request_timeout
|
|
5348
|
+
)
|
|
5349
|
+
response_data.read()
|
|
5350
|
+
return self.api_client.response_deserialize(
|
|
5351
|
+
response_data=response_data,
|
|
5352
|
+
response_types_map=_response_types_map,
|
|
5353
|
+
).data
|
|
5354
|
+
|
|
5355
|
+
|
|
5356
|
+
@validate_call
|
|
5357
|
+
def set_o_auth_team_attribute_with_http_info(
|
|
5358
|
+
self,
|
|
5359
|
+
organization_id: StrictInt,
|
|
5360
|
+
o_auth_team_attribute: StrictStr,
|
|
5361
|
+
_request_timeout: Union[
|
|
5362
|
+
None,
|
|
5363
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5364
|
+
Tuple[
|
|
5365
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5366
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5367
|
+
]
|
|
5368
|
+
] = None,
|
|
5369
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5370
|
+
_content_type: Optional[StrictStr] = None,
|
|
5371
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5372
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5373
|
+
) -> ApiResponse[None]:
|
|
5374
|
+
"""set_o_auth_team_attribute
|
|
5375
|
+
|
|
5376
|
+
|
|
5377
|
+
:param organization_id: (required)
|
|
5378
|
+
:type organization_id: int
|
|
5379
|
+
:param o_auth_team_attribute: (required)
|
|
5380
|
+
:type o_auth_team_attribute: str
|
|
5381
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5382
|
+
number provided, it will be total request
|
|
5383
|
+
timeout. It can also be a pair (tuple) of
|
|
5384
|
+
(connection, read) timeouts.
|
|
5385
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5386
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5387
|
+
request; this effectively ignores the
|
|
5388
|
+
authentication in the spec for a single request.
|
|
5389
|
+
:type _request_auth: dict, optional
|
|
5390
|
+
:param _content_type: force content-type for the request.
|
|
5391
|
+
:type _content_type: str, Optional
|
|
5392
|
+
:param _headers: set to override the headers for a single
|
|
5393
|
+
request; this effectively ignores the headers
|
|
5394
|
+
in the spec for a single request.
|
|
5395
|
+
:type _headers: dict, optional
|
|
5396
|
+
:param _host_index: set to override the host_index for a single
|
|
5397
|
+
request; this effectively ignores the host_index
|
|
5398
|
+
in the spec for a single request.
|
|
5399
|
+
:type _host_index: int, optional
|
|
5400
|
+
:return: Returns the result object.
|
|
5401
|
+
""" # noqa: E501
|
|
5402
|
+
|
|
5403
|
+
_param = self._set_o_auth_team_attribute_serialize(
|
|
5404
|
+
organization_id=organization_id,
|
|
5405
|
+
o_auth_team_attribute=o_auth_team_attribute,
|
|
5406
|
+
_request_auth=_request_auth,
|
|
5407
|
+
_content_type=_content_type,
|
|
5408
|
+
_headers=_headers,
|
|
5409
|
+
_host_index=_host_index
|
|
5410
|
+
)
|
|
5411
|
+
|
|
5412
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5413
|
+
'200': None,
|
|
4556
5414
|
}
|
|
4557
5415
|
response_data = self.api_client.call_api(
|
|
4558
5416
|
*_param,
|
|
@@ -4562,11 +5420,11 @@ class UnitOrganizationsApi:
|
|
|
4562
5420
|
return self.api_client.response_deserialize(
|
|
4563
5421
|
response_data=response_data,
|
|
4564
5422
|
response_types_map=_response_types_map,
|
|
4565
|
-
)
|
|
5423
|
+
)
|
|
4566
5424
|
|
|
4567
5425
|
|
|
4568
5426
|
@validate_call
|
|
4569
|
-
def
|
|
5427
|
+
def set_o_auth_team_attribute_without_preload_content(
|
|
4570
5428
|
self,
|
|
4571
5429
|
organization_id: StrictInt,
|
|
4572
5430
|
o_auth_team_attribute: StrictStr,
|
|
@@ -4582,7 +5440,7 @@ class UnitOrganizationsApi:
|
|
|
4582
5440
|
_content_type: Optional[StrictStr] = None,
|
|
4583
5441
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4584
5442
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4585
|
-
) ->
|
|
5443
|
+
) -> RESTResponseType:
|
|
4586
5444
|
"""set_o_auth_team_attribute
|
|
4587
5445
|
|
|
4588
5446
|
|
|
@@ -4628,6 +5486,205 @@ class UnitOrganizationsApi:
|
|
|
4628
5486
|
*_param,
|
|
4629
5487
|
_request_timeout=_request_timeout
|
|
4630
5488
|
)
|
|
5489
|
+
return response_data.response
|
|
5490
|
+
|
|
5491
|
+
|
|
5492
|
+
def _set_o_auth_team_attribute_serialize(
|
|
5493
|
+
self,
|
|
5494
|
+
organization_id,
|
|
5495
|
+
o_auth_team_attribute,
|
|
5496
|
+
_request_auth,
|
|
5497
|
+
_content_type,
|
|
5498
|
+
_headers,
|
|
5499
|
+
_host_index,
|
|
5500
|
+
) -> RequestSerialized:
|
|
5501
|
+
|
|
5502
|
+
_host = None
|
|
5503
|
+
|
|
5504
|
+
_collection_formats: Dict[str, str] = {
|
|
5505
|
+
}
|
|
5506
|
+
|
|
5507
|
+
_path_params: Dict[str, str] = {}
|
|
5508
|
+
_query_params: List[Tuple[str, str]] = []
|
|
5509
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5510
|
+
_form_params: List[Tuple[str, str]] = []
|
|
5511
|
+
_files: Dict[
|
|
5512
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
5513
|
+
] = {}
|
|
5514
|
+
_body_params: Optional[bytes] = None
|
|
5515
|
+
|
|
5516
|
+
# process the path parameters
|
|
5517
|
+
if organization_id is not None:
|
|
5518
|
+
_path_params['organization_id'] = organization_id
|
|
5519
|
+
# process the query parameters
|
|
5520
|
+
if o_auth_team_attribute is not None:
|
|
5521
|
+
|
|
5522
|
+
_query_params.append(('oAuthTeamAttribute', o_auth_team_attribute))
|
|
5523
|
+
|
|
5524
|
+
# process the header parameters
|
|
5525
|
+
# process the form parameters
|
|
5526
|
+
# process the body parameter
|
|
5527
|
+
|
|
5528
|
+
|
|
5529
|
+
|
|
5530
|
+
|
|
5531
|
+
# authentication setting
|
|
5532
|
+
_auth_settings: List[str] = [
|
|
5533
|
+
'QAnswer-Api-Key',
|
|
5534
|
+
'Bearer'
|
|
5535
|
+
]
|
|
5536
|
+
|
|
5537
|
+
return self.api_client.param_serialize(
|
|
5538
|
+
method='POST',
|
|
5539
|
+
resource_path='/api/organization/{organization_id}/oAuthTeamAttribute',
|
|
5540
|
+
path_params=_path_params,
|
|
5541
|
+
query_params=_query_params,
|
|
5542
|
+
header_params=_header_params,
|
|
5543
|
+
body=_body_params,
|
|
5544
|
+
post_params=_form_params,
|
|
5545
|
+
files=_files,
|
|
5546
|
+
auth_settings=_auth_settings,
|
|
5547
|
+
collection_formats=_collection_formats,
|
|
5548
|
+
_host=_host,
|
|
5549
|
+
_request_auth=_request_auth
|
|
5550
|
+
)
|
|
5551
|
+
|
|
5552
|
+
|
|
5553
|
+
|
|
5554
|
+
|
|
5555
|
+
@validate_call
|
|
5556
|
+
def set_organization_credits(
|
|
5557
|
+
self,
|
|
5558
|
+
organization_id: StrictInt,
|
|
5559
|
+
credits_info_organization_dto: CreditsInfoOrganizationDto,
|
|
5560
|
+
_request_timeout: Union[
|
|
5561
|
+
None,
|
|
5562
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5563
|
+
Tuple[
|
|
5564
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5565
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5566
|
+
]
|
|
5567
|
+
] = None,
|
|
5568
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5569
|
+
_content_type: Optional[StrictStr] = None,
|
|
5570
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5571
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5572
|
+
) -> CreditsInfoOrganizationDto:
|
|
5573
|
+
"""Sets the domain of the organization
|
|
5574
|
+
|
|
5575
|
+
|
|
5576
|
+
:param organization_id: (required)
|
|
5577
|
+
:type organization_id: int
|
|
5578
|
+
:param credits_info_organization_dto: (required)
|
|
5579
|
+
:type credits_info_organization_dto: CreditsInfoOrganizationDto
|
|
5580
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5581
|
+
number provided, it will be total request
|
|
5582
|
+
timeout. It can also be a pair (tuple) of
|
|
5583
|
+
(connection, read) timeouts.
|
|
5584
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5585
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5586
|
+
request; this effectively ignores the
|
|
5587
|
+
authentication in the spec for a single request.
|
|
5588
|
+
:type _request_auth: dict, optional
|
|
5589
|
+
:param _content_type: force content-type for the request.
|
|
5590
|
+
:type _content_type: str, Optional
|
|
5591
|
+
:param _headers: set to override the headers for a single
|
|
5592
|
+
request; this effectively ignores the headers
|
|
5593
|
+
in the spec for a single request.
|
|
5594
|
+
:type _headers: dict, optional
|
|
5595
|
+
:param _host_index: set to override the host_index for a single
|
|
5596
|
+
request; this effectively ignores the host_index
|
|
5597
|
+
in the spec for a single request.
|
|
5598
|
+
:type _host_index: int, optional
|
|
5599
|
+
:return: Returns the result object.
|
|
5600
|
+
""" # noqa: E501
|
|
5601
|
+
|
|
5602
|
+
_param = self._set_organization_credits_serialize(
|
|
5603
|
+
organization_id=organization_id,
|
|
5604
|
+
credits_info_organization_dto=credits_info_organization_dto,
|
|
5605
|
+
_request_auth=_request_auth,
|
|
5606
|
+
_content_type=_content_type,
|
|
5607
|
+
_headers=_headers,
|
|
5608
|
+
_host_index=_host_index
|
|
5609
|
+
)
|
|
5610
|
+
|
|
5611
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5612
|
+
'200': "CreditsInfoOrganizationDto",
|
|
5613
|
+
}
|
|
5614
|
+
response_data = self.api_client.call_api(
|
|
5615
|
+
*_param,
|
|
5616
|
+
_request_timeout=_request_timeout
|
|
5617
|
+
)
|
|
5618
|
+
response_data.read()
|
|
5619
|
+
return self.api_client.response_deserialize(
|
|
5620
|
+
response_data=response_data,
|
|
5621
|
+
response_types_map=_response_types_map,
|
|
5622
|
+
).data
|
|
5623
|
+
|
|
5624
|
+
|
|
5625
|
+
@validate_call
|
|
5626
|
+
def set_organization_credits_with_http_info(
|
|
5627
|
+
self,
|
|
5628
|
+
organization_id: StrictInt,
|
|
5629
|
+
credits_info_organization_dto: CreditsInfoOrganizationDto,
|
|
5630
|
+
_request_timeout: Union[
|
|
5631
|
+
None,
|
|
5632
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5633
|
+
Tuple[
|
|
5634
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5635
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5636
|
+
]
|
|
5637
|
+
] = None,
|
|
5638
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5639
|
+
_content_type: Optional[StrictStr] = None,
|
|
5640
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5641
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5642
|
+
) -> ApiResponse[CreditsInfoOrganizationDto]:
|
|
5643
|
+
"""Sets the domain of the organization
|
|
5644
|
+
|
|
5645
|
+
|
|
5646
|
+
:param organization_id: (required)
|
|
5647
|
+
:type organization_id: int
|
|
5648
|
+
:param credits_info_organization_dto: (required)
|
|
5649
|
+
:type credits_info_organization_dto: CreditsInfoOrganizationDto
|
|
5650
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5651
|
+
number provided, it will be total request
|
|
5652
|
+
timeout. It can also be a pair (tuple) of
|
|
5653
|
+
(connection, read) timeouts.
|
|
5654
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5655
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5656
|
+
request; this effectively ignores the
|
|
5657
|
+
authentication in the spec for a single request.
|
|
5658
|
+
:type _request_auth: dict, optional
|
|
5659
|
+
:param _content_type: force content-type for the request.
|
|
5660
|
+
:type _content_type: str, Optional
|
|
5661
|
+
:param _headers: set to override the headers for a single
|
|
5662
|
+
request; this effectively ignores the headers
|
|
5663
|
+
in the spec for a single request.
|
|
5664
|
+
:type _headers: dict, optional
|
|
5665
|
+
:param _host_index: set to override the host_index for a single
|
|
5666
|
+
request; this effectively ignores the host_index
|
|
5667
|
+
in the spec for a single request.
|
|
5668
|
+
:type _host_index: int, optional
|
|
5669
|
+
:return: Returns the result object.
|
|
5670
|
+
""" # noqa: E501
|
|
5671
|
+
|
|
5672
|
+
_param = self._set_organization_credits_serialize(
|
|
5673
|
+
organization_id=organization_id,
|
|
5674
|
+
credits_info_organization_dto=credits_info_organization_dto,
|
|
5675
|
+
_request_auth=_request_auth,
|
|
5676
|
+
_content_type=_content_type,
|
|
5677
|
+
_headers=_headers,
|
|
5678
|
+
_host_index=_host_index
|
|
5679
|
+
)
|
|
5680
|
+
|
|
5681
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5682
|
+
'200': "CreditsInfoOrganizationDto",
|
|
5683
|
+
}
|
|
5684
|
+
response_data = self.api_client.call_api(
|
|
5685
|
+
*_param,
|
|
5686
|
+
_request_timeout=_request_timeout
|
|
5687
|
+
)
|
|
4631
5688
|
response_data.read()
|
|
4632
5689
|
return self.api_client.response_deserialize(
|
|
4633
5690
|
response_data=response_data,
|
|
@@ -4636,10 +5693,10 @@ class UnitOrganizationsApi:
|
|
|
4636
5693
|
|
|
4637
5694
|
|
|
4638
5695
|
@validate_call
|
|
4639
|
-
def
|
|
5696
|
+
def set_organization_credits_without_preload_content(
|
|
4640
5697
|
self,
|
|
4641
5698
|
organization_id: StrictInt,
|
|
4642
|
-
|
|
5699
|
+
credits_info_organization_dto: CreditsInfoOrganizationDto,
|
|
4643
5700
|
_request_timeout: Union[
|
|
4644
5701
|
None,
|
|
4645
5702
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4653,13 +5710,13 @@ class UnitOrganizationsApi:
|
|
|
4653
5710
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4654
5711
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4655
5712
|
) -> RESTResponseType:
|
|
4656
|
-
"""
|
|
5713
|
+
"""Sets the domain of the organization
|
|
4657
5714
|
|
|
4658
5715
|
|
|
4659
5716
|
:param organization_id: (required)
|
|
4660
5717
|
:type organization_id: int
|
|
4661
|
-
:param
|
|
4662
|
-
:type
|
|
5718
|
+
:param credits_info_organization_dto: (required)
|
|
5719
|
+
:type credits_info_organization_dto: CreditsInfoOrganizationDto
|
|
4663
5720
|
:param _request_timeout: timeout setting for this request. If one
|
|
4664
5721
|
number provided, it will be total request
|
|
4665
5722
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4682,9 +5739,9 @@ class UnitOrganizationsApi:
|
|
|
4682
5739
|
:return: Returns the result object.
|
|
4683
5740
|
""" # noqa: E501
|
|
4684
5741
|
|
|
4685
|
-
_param = self.
|
|
5742
|
+
_param = self._set_organization_credits_serialize(
|
|
4686
5743
|
organization_id=organization_id,
|
|
4687
|
-
|
|
5744
|
+
credits_info_organization_dto=credits_info_organization_dto,
|
|
4688
5745
|
_request_auth=_request_auth,
|
|
4689
5746
|
_content_type=_content_type,
|
|
4690
5747
|
_headers=_headers,
|
|
@@ -4692,7 +5749,7 @@ class UnitOrganizationsApi:
|
|
|
4692
5749
|
)
|
|
4693
5750
|
|
|
4694
5751
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4695
|
-
'200':
|
|
5752
|
+
'200': "CreditsInfoOrganizationDto",
|
|
4696
5753
|
}
|
|
4697
5754
|
response_data = self.api_client.call_api(
|
|
4698
5755
|
*_param,
|
|
@@ -4701,10 +5758,10 @@ class UnitOrganizationsApi:
|
|
|
4701
5758
|
return response_data.response
|
|
4702
5759
|
|
|
4703
5760
|
|
|
4704
|
-
def
|
|
5761
|
+
def _set_organization_credits_serialize(
|
|
4705
5762
|
self,
|
|
4706
5763
|
organization_id,
|
|
4707
|
-
|
|
5764
|
+
credits_info_organization_dto,
|
|
4708
5765
|
_request_auth,
|
|
4709
5766
|
_content_type,
|
|
4710
5767
|
_headers,
|
|
@@ -4729,16 +5786,34 @@ class UnitOrganizationsApi:
|
|
|
4729
5786
|
if organization_id is not None:
|
|
4730
5787
|
_path_params['organization_id'] = organization_id
|
|
4731
5788
|
# process the query parameters
|
|
4732
|
-
if o_auth_team_attribute is not None:
|
|
4733
|
-
|
|
4734
|
-
_query_params.append(('oAuthTeamAttribute', o_auth_team_attribute))
|
|
4735
|
-
|
|
4736
5789
|
# process the header parameters
|
|
4737
5790
|
# process the form parameters
|
|
4738
5791
|
# process the body parameter
|
|
5792
|
+
if credits_info_organization_dto is not None:
|
|
5793
|
+
_body_params = credits_info_organization_dto
|
|
4739
5794
|
|
|
4740
5795
|
|
|
5796
|
+
# set the HTTP header `Accept`
|
|
5797
|
+
if 'Accept' not in _header_params:
|
|
5798
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
5799
|
+
[
|
|
5800
|
+
'*/*'
|
|
5801
|
+
]
|
|
5802
|
+
)
|
|
4741
5803
|
|
|
5804
|
+
# set the HTTP header `Content-Type`
|
|
5805
|
+
if _content_type:
|
|
5806
|
+
_header_params['Content-Type'] = _content_type
|
|
5807
|
+
else:
|
|
5808
|
+
_default_content_type = (
|
|
5809
|
+
self.api_client.select_header_content_type(
|
|
5810
|
+
[
|
|
5811
|
+
'application/json'
|
|
5812
|
+
]
|
|
5813
|
+
)
|
|
5814
|
+
)
|
|
5815
|
+
if _default_content_type is not None:
|
|
5816
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4742
5817
|
|
|
4743
5818
|
# authentication setting
|
|
4744
5819
|
_auth_settings: List[str] = [
|
|
@@ -4748,7 +5823,7 @@ class UnitOrganizationsApi:
|
|
|
4748
5823
|
|
|
4749
5824
|
return self.api_client.param_serialize(
|
|
4750
5825
|
method='POST',
|
|
4751
|
-
resource_path='/api/organization/{organization_id}/
|
|
5826
|
+
resource_path='/api/organization/{organization_id}/credits',
|
|
4752
5827
|
path_params=_path_params,
|
|
4753
5828
|
query_params=_query_params,
|
|
4754
5829
|
header_params=_header_params,
|