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