neurograph-core 1.202509071925__py3-none-any.whl → 1.202509152210__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.
- neurograph/v1/__init__.py +295 -43
- neurograph/v1/api/__init__.py +28 -2
- neurograph/v1/api/client_api.py +541 -0
- neurograph/v1/api/knowledge_api.py +2281 -124
- neurograph/v1/api/knowledge_extract_api.py +1798 -0
- neurograph/v1/api_client.py +4 -1
- neurograph/v1/models/__init__.py +215 -21
- neurograph/v1/models/{client_client_creat_response.py → client_client_url_row.py} +21 -25
- neurograph/v1/models/client_client_url_snapshot_response.py +95 -0
- neurograph/v1/models/{atlas_atlas_version_response.py → client_client_url_snapshot_row.py} +20 -22
- neurograph/v1/models/client_client_urls_response.py +3 -3
- neurograph/v1/models/{organizations_organization_set_atlas_response.py → client_probe.py} +22 -16
- neurograph/v1/models/client_probe_todo_row.py +89 -0
- neurograph/v1/models/client_trigger_probe_response.py +101 -0
- neurograph/v1/models/db_knowledge_customer.py +97 -0
- neurograph/v1/models/db_knowledge_order.py +177 -0
- neurograph/v1/models/db_knowledge_product.py +107 -0
- neurograph/v1/models/{atlas_atlas_version_upsert_request.py → db_knowledge_store.py} +16 -12
- neurograph/v1/models/knowledge_assertion.py +111 -0
- neurograph/v1/models/knowledge_assertion_create_request.py +103 -0
- neurograph/v1/models/knowledge_assertion_list_response.py +103 -0
- neurograph/v1/models/knowledge_assertion_query.py +99 -0
- neurograph/v1/models/{atlas_atlas_version_many_response.py → knowledge_assertion_response.py} +9 -13
- neurograph/v1/models/knowledge_customer_query.py +99 -0
- neurograph/v1/models/knowledge_customer_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact.py +137 -0
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +113 -0
- neurograph/v1/models/knowledge_enrichment_artifact_list_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact_response.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_status_request.py +99 -0
- neurograph/v1/models/{organizations_atlas_config.py → knowledge_enrichment_query.py} +19 -17
- neurograph/v1/models/{knowledge_knowledge_entity.py → knowledge_entity.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_request.py → knowledge_entity_create_request.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_create_response.py → knowledge_entity_create_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_extra.py → knowledge_entity_extra.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_get_many_response.py → knowledge_entity_get_many_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_in_db.py → knowledge_entity_in_db.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_relations.py → knowledge_entity_relations.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema.py → knowledge_entity_schema.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_row.py → knowledge_entity_schema_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_upsert_request.py → knowledge_entity_schema_upsert_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_response.py → knowledge_entity_schemas_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_upsert_response.py → knowledge_entity_schemas_upsert_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_type_row.py → knowledge_entity_type_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_create_request.py → knowledge_entity_upsert_request.py} +9 -11
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_row.py → knowledge_entity_upsert_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_request.py → knowledge_ingest_raw_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_response.py → knowledge_ingest_raw_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_kind_response.py → knowledge_kind_response.py} +4 -4
- neurograph/v1/models/knowledge_order_query.py +129 -0
- neurograph/v1/models/knowledge_order_response.py +103 -0
- neurograph/v1/models/knowledge_product_query.py +101 -0
- neurograph/v1/models/knowledge_product_response.py +103 -0
- neurograph/v1/models/{client_client_create_request.py → knowledge_store_query.py} +17 -15
- neurograph/v1/models/knowledge_store_response.py +103 -0
- neurograph/v1/models/{knowledge_knowledge_type_response.py → knowledge_type_response.py} +7 -7
- neurograph/v1/models/{tasks_sync_from_firebase_result.py → pgtype_int8.py} +10 -8
- neurograph/v1/models/pgtype_text.py +89 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509152210.dist-info}/METADATA +2 -1
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509152210.dist-info}/RECORD +63 -42
- neurograph/v1/api/atlas_api.py +0 -588
- neurograph/v1/api/tasks_api.py +0 -286
- neurograph/v1/models/atlas_atlas_version.py +0 -99
- neurograph/v1/models/organizations_organization_set_atlas_request.py +0 -93
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509152210.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509152210.dist-info}/top_level.txt +0 -0
|
@@ -16,20 +16,28 @@ 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 Field, StrictInt, StrictStr
|
|
19
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
20
20
|
from typing import Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
-
from neurograph.v1.models.
|
|
23
|
-
from neurograph.v1.models.
|
|
24
|
-
from neurograph.v1.models.
|
|
25
|
-
from neurograph.v1.models.
|
|
26
|
-
from neurograph.v1.models.
|
|
27
|
-
from neurograph.v1.models.
|
|
28
|
-
from neurograph.v1.models.
|
|
29
|
-
from neurograph.v1.models.
|
|
30
|
-
from neurograph.v1.models.
|
|
31
|
-
from neurograph.v1.models.
|
|
32
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.knowledge_assertion_create_request import KnowledgeAssertionCreateRequest
|
|
23
|
+
from neurograph.v1.models.knowledge_assertion_list_response import KnowledgeAssertionListResponse
|
|
24
|
+
from neurograph.v1.models.knowledge_assertion_response import KnowledgeAssertionResponse
|
|
25
|
+
from neurograph.v1.models.knowledge_enrichment_artifact_create_request import KnowledgeEnrichmentArtifactCreateRequest
|
|
26
|
+
from neurograph.v1.models.knowledge_enrichment_artifact_list_response import KnowledgeEnrichmentArtifactListResponse
|
|
27
|
+
from neurograph.v1.models.knowledge_enrichment_artifact_response import KnowledgeEnrichmentArtifactResponse
|
|
28
|
+
from neurograph.v1.models.knowledge_enrichment_artifact_update_output_request import KnowledgeEnrichmentArtifactUpdateOutputRequest
|
|
29
|
+
from neurograph.v1.models.knowledge_enrichment_artifact_update_status_request import KnowledgeEnrichmentArtifactUpdateStatusRequest
|
|
30
|
+
from neurograph.v1.models.knowledge_entity_create_request import KnowledgeEntityCreateRequest
|
|
31
|
+
from neurograph.v1.models.knowledge_entity_create_response import KnowledgeEntityCreateResponse
|
|
32
|
+
from neurograph.v1.models.knowledge_entity_get_many_response import KnowledgeEntityGetManyResponse
|
|
33
|
+
from neurograph.v1.models.knowledge_entity_schema_upsert_request import KnowledgeEntitySchemaUpsertRequest
|
|
34
|
+
from neurograph.v1.models.knowledge_entity_schemas_response import KnowledgeEntitySchemasResponse
|
|
35
|
+
from neurograph.v1.models.knowledge_entity_schemas_upsert_response import KnowledgeEntitySchemasUpsertResponse
|
|
36
|
+
from neurograph.v1.models.knowledge_entity_upsert_request import KnowledgeEntityUpsertRequest
|
|
37
|
+
from neurograph.v1.models.knowledge_ingest_raw_request import KnowledgeIngestRawRequest
|
|
38
|
+
from neurograph.v1.models.knowledge_ingest_raw_response import KnowledgeIngestRawResponse
|
|
39
|
+
from neurograph.v1.models.knowledge_kind_response import KnowledgeKindResponse
|
|
40
|
+
from neurograph.v1.models.knowledge_type_response import KnowledgeTypeResponse
|
|
33
41
|
|
|
34
42
|
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
35
43
|
from neurograph.v1.api_response import ApiResponse
|
|
@@ -49,6 +57,2155 @@ class KnowledgeApi:
|
|
|
49
57
|
self.api_client = api_client
|
|
50
58
|
|
|
51
59
|
|
|
60
|
+
@validate_call
|
|
61
|
+
def api_v1_knowledge_assertion_client_id_entity_id_get(
|
|
62
|
+
self,
|
|
63
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
64
|
+
entity_id: Annotated[StrictStr, Field(description="Entity ID")],
|
|
65
|
+
predicate: Annotated[Optional[StrictStr], Field(description="Filter by predicate")] = None,
|
|
66
|
+
status: Annotated[Optional[StrictStr], Field(description="Filter by status")] = None,
|
|
67
|
+
_request_timeout: Union[
|
|
68
|
+
None,
|
|
69
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
70
|
+
Tuple[
|
|
71
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
72
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
73
|
+
]
|
|
74
|
+
] = None,
|
|
75
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
76
|
+
_content_type: Optional[StrictStr] = None,
|
|
77
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
78
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
79
|
+
) -> KnowledgeAssertionListResponse:
|
|
80
|
+
"""Get Assertions by Entity
|
|
81
|
+
|
|
82
|
+
Get assertions for a specific entity
|
|
83
|
+
|
|
84
|
+
:param client_id: Client ID (required)
|
|
85
|
+
:type client_id: str
|
|
86
|
+
:param entity_id: Entity ID (required)
|
|
87
|
+
:type entity_id: str
|
|
88
|
+
:param predicate: Filter by predicate
|
|
89
|
+
:type predicate: str
|
|
90
|
+
:param status: Filter by status
|
|
91
|
+
:type status: str
|
|
92
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
93
|
+
number provided, it will be total request
|
|
94
|
+
timeout. It can also be a pair (tuple) of
|
|
95
|
+
(connection, read) timeouts.
|
|
96
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
97
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
98
|
+
request; this effectively ignores the
|
|
99
|
+
authentication in the spec for a single request.
|
|
100
|
+
:type _request_auth: dict, optional
|
|
101
|
+
:param _content_type: force content-type for the request.
|
|
102
|
+
:type _content_type: str, Optional
|
|
103
|
+
:param _headers: set to override the headers for a single
|
|
104
|
+
request; this effectively ignores the headers
|
|
105
|
+
in the spec for a single request.
|
|
106
|
+
:type _headers: dict, optional
|
|
107
|
+
:param _host_index: set to override the host_index for a single
|
|
108
|
+
request; this effectively ignores the host_index
|
|
109
|
+
in the spec for a single request.
|
|
110
|
+
:type _host_index: int, optional
|
|
111
|
+
:return: Returns the result object.
|
|
112
|
+
""" # noqa: E501
|
|
113
|
+
|
|
114
|
+
_param = self._api_v1_knowledge_assertion_client_id_entity_id_get_serialize(
|
|
115
|
+
client_id=client_id,
|
|
116
|
+
entity_id=entity_id,
|
|
117
|
+
predicate=predicate,
|
|
118
|
+
status=status,
|
|
119
|
+
_request_auth=_request_auth,
|
|
120
|
+
_content_type=_content_type,
|
|
121
|
+
_headers=_headers,
|
|
122
|
+
_host_index=_host_index
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
126
|
+
'200': "KnowledgeAssertionListResponse",
|
|
127
|
+
'400': "KnowledgeAssertionListResponse",
|
|
128
|
+
'503': "KnowledgeAssertionListResponse",
|
|
129
|
+
}
|
|
130
|
+
response_data = self.api_client.call_api(
|
|
131
|
+
*_param,
|
|
132
|
+
_request_timeout=_request_timeout
|
|
133
|
+
)
|
|
134
|
+
response_data.read()
|
|
135
|
+
return self.api_client.response_deserialize(
|
|
136
|
+
response_data=response_data,
|
|
137
|
+
response_types_map=_response_types_map,
|
|
138
|
+
).data
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
@validate_call
|
|
142
|
+
def api_v1_knowledge_assertion_client_id_entity_id_get_with_http_info(
|
|
143
|
+
self,
|
|
144
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
145
|
+
entity_id: Annotated[StrictStr, Field(description="Entity ID")],
|
|
146
|
+
predicate: Annotated[Optional[StrictStr], Field(description="Filter by predicate")] = None,
|
|
147
|
+
status: Annotated[Optional[StrictStr], Field(description="Filter by status")] = None,
|
|
148
|
+
_request_timeout: Union[
|
|
149
|
+
None,
|
|
150
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
151
|
+
Tuple[
|
|
152
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
153
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
154
|
+
]
|
|
155
|
+
] = None,
|
|
156
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
157
|
+
_content_type: Optional[StrictStr] = None,
|
|
158
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
159
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
160
|
+
) -> ApiResponse[KnowledgeAssertionListResponse]:
|
|
161
|
+
"""Get Assertions by Entity
|
|
162
|
+
|
|
163
|
+
Get assertions for a specific entity
|
|
164
|
+
|
|
165
|
+
:param client_id: Client ID (required)
|
|
166
|
+
:type client_id: str
|
|
167
|
+
:param entity_id: Entity ID (required)
|
|
168
|
+
:type entity_id: str
|
|
169
|
+
:param predicate: Filter by predicate
|
|
170
|
+
:type predicate: str
|
|
171
|
+
:param status: Filter by status
|
|
172
|
+
:type status: str
|
|
173
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
174
|
+
number provided, it will be total request
|
|
175
|
+
timeout. It can also be a pair (tuple) of
|
|
176
|
+
(connection, read) timeouts.
|
|
177
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
178
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
179
|
+
request; this effectively ignores the
|
|
180
|
+
authentication in the spec for a single request.
|
|
181
|
+
:type _request_auth: dict, optional
|
|
182
|
+
:param _content_type: force content-type for the request.
|
|
183
|
+
:type _content_type: str, Optional
|
|
184
|
+
:param _headers: set to override the headers for a single
|
|
185
|
+
request; this effectively ignores the headers
|
|
186
|
+
in the spec for a single request.
|
|
187
|
+
:type _headers: dict, optional
|
|
188
|
+
:param _host_index: set to override the host_index for a single
|
|
189
|
+
request; this effectively ignores the host_index
|
|
190
|
+
in the spec for a single request.
|
|
191
|
+
:type _host_index: int, optional
|
|
192
|
+
:return: Returns the result object.
|
|
193
|
+
""" # noqa: E501
|
|
194
|
+
|
|
195
|
+
_param = self._api_v1_knowledge_assertion_client_id_entity_id_get_serialize(
|
|
196
|
+
client_id=client_id,
|
|
197
|
+
entity_id=entity_id,
|
|
198
|
+
predicate=predicate,
|
|
199
|
+
status=status,
|
|
200
|
+
_request_auth=_request_auth,
|
|
201
|
+
_content_type=_content_type,
|
|
202
|
+
_headers=_headers,
|
|
203
|
+
_host_index=_host_index
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
207
|
+
'200': "KnowledgeAssertionListResponse",
|
|
208
|
+
'400': "KnowledgeAssertionListResponse",
|
|
209
|
+
'503': "KnowledgeAssertionListResponse",
|
|
210
|
+
}
|
|
211
|
+
response_data = self.api_client.call_api(
|
|
212
|
+
*_param,
|
|
213
|
+
_request_timeout=_request_timeout
|
|
214
|
+
)
|
|
215
|
+
response_data.read()
|
|
216
|
+
return self.api_client.response_deserialize(
|
|
217
|
+
response_data=response_data,
|
|
218
|
+
response_types_map=_response_types_map,
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
@validate_call
|
|
223
|
+
def api_v1_knowledge_assertion_client_id_entity_id_get_without_preload_content(
|
|
224
|
+
self,
|
|
225
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
226
|
+
entity_id: Annotated[StrictStr, Field(description="Entity ID")],
|
|
227
|
+
predicate: Annotated[Optional[StrictStr], Field(description="Filter by predicate")] = None,
|
|
228
|
+
status: Annotated[Optional[StrictStr], Field(description="Filter by status")] = None,
|
|
229
|
+
_request_timeout: Union[
|
|
230
|
+
None,
|
|
231
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
232
|
+
Tuple[
|
|
233
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
234
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
235
|
+
]
|
|
236
|
+
] = None,
|
|
237
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
238
|
+
_content_type: Optional[StrictStr] = None,
|
|
239
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
240
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
241
|
+
) -> RESTResponseType:
|
|
242
|
+
"""Get Assertions by Entity
|
|
243
|
+
|
|
244
|
+
Get assertions for a specific entity
|
|
245
|
+
|
|
246
|
+
:param client_id: Client ID (required)
|
|
247
|
+
:type client_id: str
|
|
248
|
+
:param entity_id: Entity ID (required)
|
|
249
|
+
:type entity_id: str
|
|
250
|
+
:param predicate: Filter by predicate
|
|
251
|
+
:type predicate: str
|
|
252
|
+
:param status: Filter by status
|
|
253
|
+
:type status: str
|
|
254
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
255
|
+
number provided, it will be total request
|
|
256
|
+
timeout. It can also be a pair (tuple) of
|
|
257
|
+
(connection, read) timeouts.
|
|
258
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
259
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
260
|
+
request; this effectively ignores the
|
|
261
|
+
authentication in the spec for a single request.
|
|
262
|
+
:type _request_auth: dict, optional
|
|
263
|
+
:param _content_type: force content-type for the request.
|
|
264
|
+
:type _content_type: str, Optional
|
|
265
|
+
:param _headers: set to override the headers for a single
|
|
266
|
+
request; this effectively ignores the headers
|
|
267
|
+
in the spec for a single request.
|
|
268
|
+
:type _headers: dict, optional
|
|
269
|
+
:param _host_index: set to override the host_index for a single
|
|
270
|
+
request; this effectively ignores the host_index
|
|
271
|
+
in the spec for a single request.
|
|
272
|
+
:type _host_index: int, optional
|
|
273
|
+
:return: Returns the result object.
|
|
274
|
+
""" # noqa: E501
|
|
275
|
+
|
|
276
|
+
_param = self._api_v1_knowledge_assertion_client_id_entity_id_get_serialize(
|
|
277
|
+
client_id=client_id,
|
|
278
|
+
entity_id=entity_id,
|
|
279
|
+
predicate=predicate,
|
|
280
|
+
status=status,
|
|
281
|
+
_request_auth=_request_auth,
|
|
282
|
+
_content_type=_content_type,
|
|
283
|
+
_headers=_headers,
|
|
284
|
+
_host_index=_host_index
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
288
|
+
'200': "KnowledgeAssertionListResponse",
|
|
289
|
+
'400': "KnowledgeAssertionListResponse",
|
|
290
|
+
'503': "KnowledgeAssertionListResponse",
|
|
291
|
+
}
|
|
292
|
+
response_data = self.api_client.call_api(
|
|
293
|
+
*_param,
|
|
294
|
+
_request_timeout=_request_timeout
|
|
295
|
+
)
|
|
296
|
+
return response_data.response
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
def _api_v1_knowledge_assertion_client_id_entity_id_get_serialize(
|
|
300
|
+
self,
|
|
301
|
+
client_id,
|
|
302
|
+
entity_id,
|
|
303
|
+
predicate,
|
|
304
|
+
status,
|
|
305
|
+
_request_auth,
|
|
306
|
+
_content_type,
|
|
307
|
+
_headers,
|
|
308
|
+
_host_index,
|
|
309
|
+
) -> RequestSerialized:
|
|
310
|
+
|
|
311
|
+
_host = None
|
|
312
|
+
|
|
313
|
+
_collection_formats: Dict[str, str] = {
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
_path_params: Dict[str, str] = {}
|
|
317
|
+
_query_params: List[Tuple[str, str]] = []
|
|
318
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
319
|
+
_form_params: List[Tuple[str, str]] = []
|
|
320
|
+
_files: Dict[
|
|
321
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
322
|
+
] = {}
|
|
323
|
+
_body_params: Optional[bytes] = None
|
|
324
|
+
|
|
325
|
+
# process the path parameters
|
|
326
|
+
if client_id is not None:
|
|
327
|
+
_path_params['client_id'] = client_id
|
|
328
|
+
if entity_id is not None:
|
|
329
|
+
_path_params['entity_id'] = entity_id
|
|
330
|
+
# process the query parameters
|
|
331
|
+
if predicate is not None:
|
|
332
|
+
|
|
333
|
+
_query_params.append(('predicate', predicate))
|
|
334
|
+
|
|
335
|
+
if status is not None:
|
|
336
|
+
|
|
337
|
+
_query_params.append(('status', status))
|
|
338
|
+
|
|
339
|
+
# process the header parameters
|
|
340
|
+
# process the form parameters
|
|
341
|
+
# process the body parameter
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
# set the HTTP header `Accept`
|
|
345
|
+
if 'Accept' not in _header_params:
|
|
346
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
347
|
+
[
|
|
348
|
+
'application/json'
|
|
349
|
+
]
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
# authentication setting
|
|
354
|
+
_auth_settings: List[str] = [
|
|
355
|
+
'TokenAuth'
|
|
356
|
+
]
|
|
357
|
+
|
|
358
|
+
return self.api_client.param_serialize(
|
|
359
|
+
method='GET',
|
|
360
|
+
resource_path='/api/v1/knowledge/assertion/{client_id}/{entity_id}',
|
|
361
|
+
path_params=_path_params,
|
|
362
|
+
query_params=_query_params,
|
|
363
|
+
header_params=_header_params,
|
|
364
|
+
body=_body_params,
|
|
365
|
+
post_params=_form_params,
|
|
366
|
+
files=_files,
|
|
367
|
+
auth_settings=_auth_settings,
|
|
368
|
+
collection_formats=_collection_formats,
|
|
369
|
+
_host=_host,
|
|
370
|
+
_request_auth=_request_auth
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
@validate_call
|
|
377
|
+
def api_v1_knowledge_assertion_post(
|
|
378
|
+
self,
|
|
379
|
+
request: Annotated[KnowledgeAssertionCreateRequest, Field(description="Body")],
|
|
380
|
+
_request_timeout: Union[
|
|
381
|
+
None,
|
|
382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
383
|
+
Tuple[
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
385
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
386
|
+
]
|
|
387
|
+
] = None,
|
|
388
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
389
|
+
_content_type: Optional[StrictStr] = None,
|
|
390
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
391
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
392
|
+
) -> KnowledgeAssertionResponse:
|
|
393
|
+
"""Create Knowledge Assertion
|
|
394
|
+
|
|
395
|
+
Create a new knowledge assertion attached to an entity
|
|
396
|
+
|
|
397
|
+
:param request: Body (required)
|
|
398
|
+
:type request: KnowledgeAssertionCreateRequest
|
|
399
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
400
|
+
number provided, it will be total request
|
|
401
|
+
timeout. It can also be a pair (tuple) of
|
|
402
|
+
(connection, read) timeouts.
|
|
403
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
404
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
405
|
+
request; this effectively ignores the
|
|
406
|
+
authentication in the spec for a single request.
|
|
407
|
+
:type _request_auth: dict, optional
|
|
408
|
+
:param _content_type: force content-type for the request.
|
|
409
|
+
:type _content_type: str, Optional
|
|
410
|
+
:param _headers: set to override the headers for a single
|
|
411
|
+
request; this effectively ignores the headers
|
|
412
|
+
in the spec for a single request.
|
|
413
|
+
:type _headers: dict, optional
|
|
414
|
+
:param _host_index: set to override the host_index for a single
|
|
415
|
+
request; this effectively ignores the host_index
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _host_index: int, optional
|
|
418
|
+
:return: Returns the result object.
|
|
419
|
+
""" # noqa: E501
|
|
420
|
+
|
|
421
|
+
_param = self._api_v1_knowledge_assertion_post_serialize(
|
|
422
|
+
request=request,
|
|
423
|
+
_request_auth=_request_auth,
|
|
424
|
+
_content_type=_content_type,
|
|
425
|
+
_headers=_headers,
|
|
426
|
+
_host_index=_host_index
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
430
|
+
'201': "KnowledgeAssertionResponse",
|
|
431
|
+
'400': "KnowledgeAssertionResponse",
|
|
432
|
+
'503': "KnowledgeAssertionResponse",
|
|
433
|
+
}
|
|
434
|
+
response_data = self.api_client.call_api(
|
|
435
|
+
*_param,
|
|
436
|
+
_request_timeout=_request_timeout
|
|
437
|
+
)
|
|
438
|
+
response_data.read()
|
|
439
|
+
return self.api_client.response_deserialize(
|
|
440
|
+
response_data=response_data,
|
|
441
|
+
response_types_map=_response_types_map,
|
|
442
|
+
).data
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
@validate_call
|
|
446
|
+
def api_v1_knowledge_assertion_post_with_http_info(
|
|
447
|
+
self,
|
|
448
|
+
request: Annotated[KnowledgeAssertionCreateRequest, Field(description="Body")],
|
|
449
|
+
_request_timeout: Union[
|
|
450
|
+
None,
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
452
|
+
Tuple[
|
|
453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
454
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
455
|
+
]
|
|
456
|
+
] = None,
|
|
457
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
458
|
+
_content_type: Optional[StrictStr] = None,
|
|
459
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
460
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
461
|
+
) -> ApiResponse[KnowledgeAssertionResponse]:
|
|
462
|
+
"""Create Knowledge Assertion
|
|
463
|
+
|
|
464
|
+
Create a new knowledge assertion attached to an entity
|
|
465
|
+
|
|
466
|
+
:param request: Body (required)
|
|
467
|
+
:type request: KnowledgeAssertionCreateRequest
|
|
468
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
469
|
+
number provided, it will be total request
|
|
470
|
+
timeout. It can also be a pair (tuple) of
|
|
471
|
+
(connection, read) timeouts.
|
|
472
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
473
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
474
|
+
request; this effectively ignores the
|
|
475
|
+
authentication in the spec for a single request.
|
|
476
|
+
:type _request_auth: dict, optional
|
|
477
|
+
:param _content_type: force content-type for the request.
|
|
478
|
+
:type _content_type: str, Optional
|
|
479
|
+
:param _headers: set to override the headers for a single
|
|
480
|
+
request; this effectively ignores the headers
|
|
481
|
+
in the spec for a single request.
|
|
482
|
+
:type _headers: dict, optional
|
|
483
|
+
:param _host_index: set to override the host_index for a single
|
|
484
|
+
request; this effectively ignores the host_index
|
|
485
|
+
in the spec for a single request.
|
|
486
|
+
:type _host_index: int, optional
|
|
487
|
+
:return: Returns the result object.
|
|
488
|
+
""" # noqa: E501
|
|
489
|
+
|
|
490
|
+
_param = self._api_v1_knowledge_assertion_post_serialize(
|
|
491
|
+
request=request,
|
|
492
|
+
_request_auth=_request_auth,
|
|
493
|
+
_content_type=_content_type,
|
|
494
|
+
_headers=_headers,
|
|
495
|
+
_host_index=_host_index
|
|
496
|
+
)
|
|
497
|
+
|
|
498
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
499
|
+
'201': "KnowledgeAssertionResponse",
|
|
500
|
+
'400': "KnowledgeAssertionResponse",
|
|
501
|
+
'503': "KnowledgeAssertionResponse",
|
|
502
|
+
}
|
|
503
|
+
response_data = self.api_client.call_api(
|
|
504
|
+
*_param,
|
|
505
|
+
_request_timeout=_request_timeout
|
|
506
|
+
)
|
|
507
|
+
response_data.read()
|
|
508
|
+
return self.api_client.response_deserialize(
|
|
509
|
+
response_data=response_data,
|
|
510
|
+
response_types_map=_response_types_map,
|
|
511
|
+
)
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
@validate_call
|
|
515
|
+
def api_v1_knowledge_assertion_post_without_preload_content(
|
|
516
|
+
self,
|
|
517
|
+
request: Annotated[KnowledgeAssertionCreateRequest, Field(description="Body")],
|
|
518
|
+
_request_timeout: Union[
|
|
519
|
+
None,
|
|
520
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
521
|
+
Tuple[
|
|
522
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
523
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
524
|
+
]
|
|
525
|
+
] = None,
|
|
526
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
527
|
+
_content_type: Optional[StrictStr] = None,
|
|
528
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
529
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
530
|
+
) -> RESTResponseType:
|
|
531
|
+
"""Create Knowledge Assertion
|
|
532
|
+
|
|
533
|
+
Create a new knowledge assertion attached to an entity
|
|
534
|
+
|
|
535
|
+
:param request: Body (required)
|
|
536
|
+
:type request: KnowledgeAssertionCreateRequest
|
|
537
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
538
|
+
number provided, it will be total request
|
|
539
|
+
timeout. It can also be a pair (tuple) of
|
|
540
|
+
(connection, read) timeouts.
|
|
541
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
542
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
543
|
+
request; this effectively ignores the
|
|
544
|
+
authentication in the spec for a single request.
|
|
545
|
+
:type _request_auth: dict, optional
|
|
546
|
+
:param _content_type: force content-type for the request.
|
|
547
|
+
:type _content_type: str, Optional
|
|
548
|
+
:param _headers: set to override the headers for a single
|
|
549
|
+
request; this effectively ignores the headers
|
|
550
|
+
in the spec for a single request.
|
|
551
|
+
:type _headers: dict, optional
|
|
552
|
+
:param _host_index: set to override the host_index for a single
|
|
553
|
+
request; this effectively ignores the host_index
|
|
554
|
+
in the spec for a single request.
|
|
555
|
+
:type _host_index: int, optional
|
|
556
|
+
:return: Returns the result object.
|
|
557
|
+
""" # noqa: E501
|
|
558
|
+
|
|
559
|
+
_param = self._api_v1_knowledge_assertion_post_serialize(
|
|
560
|
+
request=request,
|
|
561
|
+
_request_auth=_request_auth,
|
|
562
|
+
_content_type=_content_type,
|
|
563
|
+
_headers=_headers,
|
|
564
|
+
_host_index=_host_index
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
568
|
+
'201': "KnowledgeAssertionResponse",
|
|
569
|
+
'400': "KnowledgeAssertionResponse",
|
|
570
|
+
'503': "KnowledgeAssertionResponse",
|
|
571
|
+
}
|
|
572
|
+
response_data = self.api_client.call_api(
|
|
573
|
+
*_param,
|
|
574
|
+
_request_timeout=_request_timeout
|
|
575
|
+
)
|
|
576
|
+
return response_data.response
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
def _api_v1_knowledge_assertion_post_serialize(
|
|
580
|
+
self,
|
|
581
|
+
request,
|
|
582
|
+
_request_auth,
|
|
583
|
+
_content_type,
|
|
584
|
+
_headers,
|
|
585
|
+
_host_index,
|
|
586
|
+
) -> RequestSerialized:
|
|
587
|
+
|
|
588
|
+
_host = None
|
|
589
|
+
|
|
590
|
+
_collection_formats: Dict[str, str] = {
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
_path_params: Dict[str, str] = {}
|
|
594
|
+
_query_params: List[Tuple[str, str]] = []
|
|
595
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
596
|
+
_form_params: List[Tuple[str, str]] = []
|
|
597
|
+
_files: Dict[
|
|
598
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
599
|
+
] = {}
|
|
600
|
+
_body_params: Optional[bytes] = None
|
|
601
|
+
|
|
602
|
+
# process the path parameters
|
|
603
|
+
# process the query parameters
|
|
604
|
+
# process the header parameters
|
|
605
|
+
# process the form parameters
|
|
606
|
+
# process the body parameter
|
|
607
|
+
if request is not None:
|
|
608
|
+
_body_params = request
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
# set the HTTP header `Accept`
|
|
612
|
+
if 'Accept' not in _header_params:
|
|
613
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
614
|
+
[
|
|
615
|
+
'application/json'
|
|
616
|
+
]
|
|
617
|
+
)
|
|
618
|
+
|
|
619
|
+
# set the HTTP header `Content-Type`
|
|
620
|
+
if _content_type:
|
|
621
|
+
_header_params['Content-Type'] = _content_type
|
|
622
|
+
else:
|
|
623
|
+
_default_content_type = (
|
|
624
|
+
self.api_client.select_header_content_type(
|
|
625
|
+
[
|
|
626
|
+
'application/json'
|
|
627
|
+
]
|
|
628
|
+
)
|
|
629
|
+
)
|
|
630
|
+
if _default_content_type is not None:
|
|
631
|
+
_header_params['Content-Type'] = _default_content_type
|
|
632
|
+
|
|
633
|
+
# authentication setting
|
|
634
|
+
_auth_settings: List[str] = [
|
|
635
|
+
'TokenAuth'
|
|
636
|
+
]
|
|
637
|
+
|
|
638
|
+
return self.api_client.param_serialize(
|
|
639
|
+
method='POST',
|
|
640
|
+
resource_path='/api/v1/knowledge/assertion',
|
|
641
|
+
path_params=_path_params,
|
|
642
|
+
query_params=_query_params,
|
|
643
|
+
header_params=_header_params,
|
|
644
|
+
body=_body_params,
|
|
645
|
+
post_params=_form_params,
|
|
646
|
+
files=_files,
|
|
647
|
+
auth_settings=_auth_settings,
|
|
648
|
+
collection_formats=_collection_formats,
|
|
649
|
+
_host=_host,
|
|
650
|
+
_request_auth=_request_auth
|
|
651
|
+
)
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
@validate_call
|
|
657
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_get(
|
|
658
|
+
self,
|
|
659
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
660
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
661
|
+
_request_timeout: Union[
|
|
662
|
+
None,
|
|
663
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
664
|
+
Tuple[
|
|
665
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
666
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
667
|
+
]
|
|
668
|
+
] = None,
|
|
669
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
670
|
+
_content_type: Optional[StrictStr] = None,
|
|
671
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
672
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
673
|
+
) -> KnowledgeEnrichmentArtifactResponse:
|
|
674
|
+
"""Get Enrichment Artifact
|
|
675
|
+
|
|
676
|
+
Get enrichment artifact by ID
|
|
677
|
+
|
|
678
|
+
:param client_id: Client ID (required)
|
|
679
|
+
:type client_id: str
|
|
680
|
+
:param artifact_id: Artifact ID (required)
|
|
681
|
+
:type artifact_id: int
|
|
682
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
683
|
+
number provided, it will be total request
|
|
684
|
+
timeout. It can also be a pair (tuple) of
|
|
685
|
+
(connection, read) timeouts.
|
|
686
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
687
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
688
|
+
request; this effectively ignores the
|
|
689
|
+
authentication in the spec for a single request.
|
|
690
|
+
:type _request_auth: dict, optional
|
|
691
|
+
:param _content_type: force content-type for the request.
|
|
692
|
+
:type _content_type: str, Optional
|
|
693
|
+
:param _headers: set to override the headers for a single
|
|
694
|
+
request; this effectively ignores the headers
|
|
695
|
+
in the spec for a single request.
|
|
696
|
+
:type _headers: dict, optional
|
|
697
|
+
:param _host_index: set to override the host_index for a single
|
|
698
|
+
request; this effectively ignores the host_index
|
|
699
|
+
in the spec for a single request.
|
|
700
|
+
:type _host_index: int, optional
|
|
701
|
+
:return: Returns the result object.
|
|
702
|
+
""" # noqa: E501
|
|
703
|
+
|
|
704
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_get_serialize(
|
|
705
|
+
client_id=client_id,
|
|
706
|
+
artifact_id=artifact_id,
|
|
707
|
+
_request_auth=_request_auth,
|
|
708
|
+
_content_type=_content_type,
|
|
709
|
+
_headers=_headers,
|
|
710
|
+
_host_index=_host_index
|
|
711
|
+
)
|
|
712
|
+
|
|
713
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
714
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
715
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
716
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
717
|
+
}
|
|
718
|
+
response_data = self.api_client.call_api(
|
|
719
|
+
*_param,
|
|
720
|
+
_request_timeout=_request_timeout
|
|
721
|
+
)
|
|
722
|
+
response_data.read()
|
|
723
|
+
return self.api_client.response_deserialize(
|
|
724
|
+
response_data=response_data,
|
|
725
|
+
response_types_map=_response_types_map,
|
|
726
|
+
).data
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
@validate_call
|
|
730
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_get_with_http_info(
|
|
731
|
+
self,
|
|
732
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
733
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
734
|
+
_request_timeout: Union[
|
|
735
|
+
None,
|
|
736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
737
|
+
Tuple[
|
|
738
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
739
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
740
|
+
]
|
|
741
|
+
] = None,
|
|
742
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
743
|
+
_content_type: Optional[StrictStr] = None,
|
|
744
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
745
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
746
|
+
) -> ApiResponse[KnowledgeEnrichmentArtifactResponse]:
|
|
747
|
+
"""Get Enrichment Artifact
|
|
748
|
+
|
|
749
|
+
Get enrichment artifact by ID
|
|
750
|
+
|
|
751
|
+
:param client_id: Client ID (required)
|
|
752
|
+
:type client_id: str
|
|
753
|
+
:param artifact_id: Artifact ID (required)
|
|
754
|
+
:type artifact_id: int
|
|
755
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
756
|
+
number provided, it will be total request
|
|
757
|
+
timeout. It can also be a pair (tuple) of
|
|
758
|
+
(connection, read) timeouts.
|
|
759
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
760
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
761
|
+
request; this effectively ignores the
|
|
762
|
+
authentication in the spec for a single request.
|
|
763
|
+
:type _request_auth: dict, optional
|
|
764
|
+
:param _content_type: force content-type for the request.
|
|
765
|
+
:type _content_type: str, Optional
|
|
766
|
+
:param _headers: set to override the headers for a single
|
|
767
|
+
request; this effectively ignores the headers
|
|
768
|
+
in the spec for a single request.
|
|
769
|
+
:type _headers: dict, optional
|
|
770
|
+
:param _host_index: set to override the host_index for a single
|
|
771
|
+
request; this effectively ignores the host_index
|
|
772
|
+
in the spec for a single request.
|
|
773
|
+
:type _host_index: int, optional
|
|
774
|
+
:return: Returns the result object.
|
|
775
|
+
""" # noqa: E501
|
|
776
|
+
|
|
777
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_get_serialize(
|
|
778
|
+
client_id=client_id,
|
|
779
|
+
artifact_id=artifact_id,
|
|
780
|
+
_request_auth=_request_auth,
|
|
781
|
+
_content_type=_content_type,
|
|
782
|
+
_headers=_headers,
|
|
783
|
+
_host_index=_host_index
|
|
784
|
+
)
|
|
785
|
+
|
|
786
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
787
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
788
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
789
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
790
|
+
}
|
|
791
|
+
response_data = self.api_client.call_api(
|
|
792
|
+
*_param,
|
|
793
|
+
_request_timeout=_request_timeout
|
|
794
|
+
)
|
|
795
|
+
response_data.read()
|
|
796
|
+
return self.api_client.response_deserialize(
|
|
797
|
+
response_data=response_data,
|
|
798
|
+
response_types_map=_response_types_map,
|
|
799
|
+
)
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
@validate_call
|
|
803
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_get_without_preload_content(
|
|
804
|
+
self,
|
|
805
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
806
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
807
|
+
_request_timeout: Union[
|
|
808
|
+
None,
|
|
809
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
810
|
+
Tuple[
|
|
811
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
812
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
813
|
+
]
|
|
814
|
+
] = None,
|
|
815
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
816
|
+
_content_type: Optional[StrictStr] = None,
|
|
817
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
818
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
819
|
+
) -> RESTResponseType:
|
|
820
|
+
"""Get Enrichment Artifact
|
|
821
|
+
|
|
822
|
+
Get enrichment artifact by ID
|
|
823
|
+
|
|
824
|
+
:param client_id: Client ID (required)
|
|
825
|
+
:type client_id: str
|
|
826
|
+
:param artifact_id: Artifact ID (required)
|
|
827
|
+
:type artifact_id: int
|
|
828
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
829
|
+
number provided, it will be total request
|
|
830
|
+
timeout. It can also be a pair (tuple) of
|
|
831
|
+
(connection, read) timeouts.
|
|
832
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
833
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
834
|
+
request; this effectively ignores the
|
|
835
|
+
authentication in the spec for a single request.
|
|
836
|
+
:type _request_auth: dict, optional
|
|
837
|
+
:param _content_type: force content-type for the request.
|
|
838
|
+
:type _content_type: str, Optional
|
|
839
|
+
:param _headers: set to override the headers for a single
|
|
840
|
+
request; this effectively ignores the headers
|
|
841
|
+
in the spec for a single request.
|
|
842
|
+
:type _headers: dict, optional
|
|
843
|
+
:param _host_index: set to override the host_index for a single
|
|
844
|
+
request; this effectively ignores the host_index
|
|
845
|
+
in the spec for a single request.
|
|
846
|
+
:type _host_index: int, optional
|
|
847
|
+
:return: Returns the result object.
|
|
848
|
+
""" # noqa: E501
|
|
849
|
+
|
|
850
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_get_serialize(
|
|
851
|
+
client_id=client_id,
|
|
852
|
+
artifact_id=artifact_id,
|
|
853
|
+
_request_auth=_request_auth,
|
|
854
|
+
_content_type=_content_type,
|
|
855
|
+
_headers=_headers,
|
|
856
|
+
_host_index=_host_index
|
|
857
|
+
)
|
|
858
|
+
|
|
859
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
860
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
861
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
862
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
863
|
+
}
|
|
864
|
+
response_data = self.api_client.call_api(
|
|
865
|
+
*_param,
|
|
866
|
+
_request_timeout=_request_timeout
|
|
867
|
+
)
|
|
868
|
+
return response_data.response
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
def _api_v1_knowledge_enrichment_artifact_client_id_artifact_id_get_serialize(
|
|
872
|
+
self,
|
|
873
|
+
client_id,
|
|
874
|
+
artifact_id,
|
|
875
|
+
_request_auth,
|
|
876
|
+
_content_type,
|
|
877
|
+
_headers,
|
|
878
|
+
_host_index,
|
|
879
|
+
) -> RequestSerialized:
|
|
880
|
+
|
|
881
|
+
_host = None
|
|
882
|
+
|
|
883
|
+
_collection_formats: Dict[str, str] = {
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
_path_params: Dict[str, str] = {}
|
|
887
|
+
_query_params: List[Tuple[str, str]] = []
|
|
888
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
889
|
+
_form_params: List[Tuple[str, str]] = []
|
|
890
|
+
_files: Dict[
|
|
891
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
892
|
+
] = {}
|
|
893
|
+
_body_params: Optional[bytes] = None
|
|
894
|
+
|
|
895
|
+
# process the path parameters
|
|
896
|
+
if client_id is not None:
|
|
897
|
+
_path_params['client_id'] = client_id
|
|
898
|
+
if artifact_id is not None:
|
|
899
|
+
_path_params['artifact_id'] = artifact_id
|
|
900
|
+
# process the query parameters
|
|
901
|
+
# process the header parameters
|
|
902
|
+
# process the form parameters
|
|
903
|
+
# process the body parameter
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
# set the HTTP header `Accept`
|
|
907
|
+
if 'Accept' not in _header_params:
|
|
908
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
909
|
+
[
|
|
910
|
+
'application/json'
|
|
911
|
+
]
|
|
912
|
+
)
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
# authentication setting
|
|
916
|
+
_auth_settings: List[str] = [
|
|
917
|
+
'TokenAuth'
|
|
918
|
+
]
|
|
919
|
+
|
|
920
|
+
return self.api_client.param_serialize(
|
|
921
|
+
method='GET',
|
|
922
|
+
resource_path='/api/v1/knowledge/enrichment/artifact/{client_id}/{artifact_id}',
|
|
923
|
+
path_params=_path_params,
|
|
924
|
+
query_params=_query_params,
|
|
925
|
+
header_params=_header_params,
|
|
926
|
+
body=_body_params,
|
|
927
|
+
post_params=_form_params,
|
|
928
|
+
files=_files,
|
|
929
|
+
auth_settings=_auth_settings,
|
|
930
|
+
collection_formats=_collection_formats,
|
|
931
|
+
_host=_host,
|
|
932
|
+
_request_auth=_request_auth
|
|
933
|
+
)
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
@validate_call
|
|
939
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_output_put(
|
|
940
|
+
self,
|
|
941
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
942
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
943
|
+
request: Annotated[KnowledgeEnrichmentArtifactUpdateOutputRequest, Field(description="Body")],
|
|
944
|
+
_request_timeout: Union[
|
|
945
|
+
None,
|
|
946
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
947
|
+
Tuple[
|
|
948
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
949
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
950
|
+
]
|
|
951
|
+
] = None,
|
|
952
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
953
|
+
_content_type: Optional[StrictStr] = None,
|
|
954
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
955
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
956
|
+
) -> KnowledgeEnrichmentArtifactResponse:
|
|
957
|
+
"""Update Enrichment Artifact Output
|
|
958
|
+
|
|
959
|
+
Update output data for a completed enrichment artifact
|
|
960
|
+
|
|
961
|
+
:param client_id: Client ID (required)
|
|
962
|
+
:type client_id: str
|
|
963
|
+
:param artifact_id: Artifact ID (required)
|
|
964
|
+
:type artifact_id: int
|
|
965
|
+
:param request: Body (required)
|
|
966
|
+
:type request: KnowledgeEnrichmentArtifactUpdateOutputRequest
|
|
967
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
968
|
+
number provided, it will be total request
|
|
969
|
+
timeout. It can also be a pair (tuple) of
|
|
970
|
+
(connection, read) timeouts.
|
|
971
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
972
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
973
|
+
request; this effectively ignores the
|
|
974
|
+
authentication in the spec for a single request.
|
|
975
|
+
:type _request_auth: dict, optional
|
|
976
|
+
:param _content_type: force content-type for the request.
|
|
977
|
+
:type _content_type: str, Optional
|
|
978
|
+
:param _headers: set to override the headers for a single
|
|
979
|
+
request; this effectively ignores the headers
|
|
980
|
+
in the spec for a single request.
|
|
981
|
+
:type _headers: dict, optional
|
|
982
|
+
:param _host_index: set to override the host_index for a single
|
|
983
|
+
request; this effectively ignores the host_index
|
|
984
|
+
in the spec for a single request.
|
|
985
|
+
:type _host_index: int, optional
|
|
986
|
+
:return: Returns the result object.
|
|
987
|
+
""" # noqa: E501
|
|
988
|
+
|
|
989
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_output_put_serialize(
|
|
990
|
+
client_id=client_id,
|
|
991
|
+
artifact_id=artifact_id,
|
|
992
|
+
request=request,
|
|
993
|
+
_request_auth=_request_auth,
|
|
994
|
+
_content_type=_content_type,
|
|
995
|
+
_headers=_headers,
|
|
996
|
+
_host_index=_host_index
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1000
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
1001
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
1002
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
1003
|
+
}
|
|
1004
|
+
response_data = self.api_client.call_api(
|
|
1005
|
+
*_param,
|
|
1006
|
+
_request_timeout=_request_timeout
|
|
1007
|
+
)
|
|
1008
|
+
response_data.read()
|
|
1009
|
+
return self.api_client.response_deserialize(
|
|
1010
|
+
response_data=response_data,
|
|
1011
|
+
response_types_map=_response_types_map,
|
|
1012
|
+
).data
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
@validate_call
|
|
1016
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_output_put_with_http_info(
|
|
1017
|
+
self,
|
|
1018
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
1019
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
1020
|
+
request: Annotated[KnowledgeEnrichmentArtifactUpdateOutputRequest, Field(description="Body")],
|
|
1021
|
+
_request_timeout: Union[
|
|
1022
|
+
None,
|
|
1023
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1024
|
+
Tuple[
|
|
1025
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1026
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1027
|
+
]
|
|
1028
|
+
] = None,
|
|
1029
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1030
|
+
_content_type: Optional[StrictStr] = None,
|
|
1031
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1032
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1033
|
+
) -> ApiResponse[KnowledgeEnrichmentArtifactResponse]:
|
|
1034
|
+
"""Update Enrichment Artifact Output
|
|
1035
|
+
|
|
1036
|
+
Update output data for a completed enrichment artifact
|
|
1037
|
+
|
|
1038
|
+
:param client_id: Client ID (required)
|
|
1039
|
+
:type client_id: str
|
|
1040
|
+
:param artifact_id: Artifact ID (required)
|
|
1041
|
+
:type artifact_id: int
|
|
1042
|
+
:param request: Body (required)
|
|
1043
|
+
:type request: KnowledgeEnrichmentArtifactUpdateOutputRequest
|
|
1044
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1045
|
+
number provided, it will be total request
|
|
1046
|
+
timeout. It can also be a pair (tuple) of
|
|
1047
|
+
(connection, read) timeouts.
|
|
1048
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1049
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1050
|
+
request; this effectively ignores the
|
|
1051
|
+
authentication in the spec for a single request.
|
|
1052
|
+
:type _request_auth: dict, optional
|
|
1053
|
+
:param _content_type: force content-type for the request.
|
|
1054
|
+
:type _content_type: str, Optional
|
|
1055
|
+
:param _headers: set to override the headers for a single
|
|
1056
|
+
request; this effectively ignores the headers
|
|
1057
|
+
in the spec for a single request.
|
|
1058
|
+
:type _headers: dict, optional
|
|
1059
|
+
:param _host_index: set to override the host_index for a single
|
|
1060
|
+
request; this effectively ignores the host_index
|
|
1061
|
+
in the spec for a single request.
|
|
1062
|
+
:type _host_index: int, optional
|
|
1063
|
+
:return: Returns the result object.
|
|
1064
|
+
""" # noqa: E501
|
|
1065
|
+
|
|
1066
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_output_put_serialize(
|
|
1067
|
+
client_id=client_id,
|
|
1068
|
+
artifact_id=artifact_id,
|
|
1069
|
+
request=request,
|
|
1070
|
+
_request_auth=_request_auth,
|
|
1071
|
+
_content_type=_content_type,
|
|
1072
|
+
_headers=_headers,
|
|
1073
|
+
_host_index=_host_index
|
|
1074
|
+
)
|
|
1075
|
+
|
|
1076
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1077
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
1078
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
1079
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
1080
|
+
}
|
|
1081
|
+
response_data = self.api_client.call_api(
|
|
1082
|
+
*_param,
|
|
1083
|
+
_request_timeout=_request_timeout
|
|
1084
|
+
)
|
|
1085
|
+
response_data.read()
|
|
1086
|
+
return self.api_client.response_deserialize(
|
|
1087
|
+
response_data=response_data,
|
|
1088
|
+
response_types_map=_response_types_map,
|
|
1089
|
+
)
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
@validate_call
|
|
1093
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_output_put_without_preload_content(
|
|
1094
|
+
self,
|
|
1095
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
1096
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
1097
|
+
request: Annotated[KnowledgeEnrichmentArtifactUpdateOutputRequest, Field(description="Body")],
|
|
1098
|
+
_request_timeout: Union[
|
|
1099
|
+
None,
|
|
1100
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1101
|
+
Tuple[
|
|
1102
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1103
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1104
|
+
]
|
|
1105
|
+
] = None,
|
|
1106
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1107
|
+
_content_type: Optional[StrictStr] = None,
|
|
1108
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1109
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1110
|
+
) -> RESTResponseType:
|
|
1111
|
+
"""Update Enrichment Artifact Output
|
|
1112
|
+
|
|
1113
|
+
Update output data for a completed enrichment artifact
|
|
1114
|
+
|
|
1115
|
+
:param client_id: Client ID (required)
|
|
1116
|
+
:type client_id: str
|
|
1117
|
+
:param artifact_id: Artifact ID (required)
|
|
1118
|
+
:type artifact_id: int
|
|
1119
|
+
:param request: Body (required)
|
|
1120
|
+
:type request: KnowledgeEnrichmentArtifactUpdateOutputRequest
|
|
1121
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1122
|
+
number provided, it will be total request
|
|
1123
|
+
timeout. It can also be a pair (tuple) of
|
|
1124
|
+
(connection, read) timeouts.
|
|
1125
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1126
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1127
|
+
request; this effectively ignores the
|
|
1128
|
+
authentication in the spec for a single request.
|
|
1129
|
+
:type _request_auth: dict, optional
|
|
1130
|
+
:param _content_type: force content-type for the request.
|
|
1131
|
+
:type _content_type: str, Optional
|
|
1132
|
+
:param _headers: set to override the headers for a single
|
|
1133
|
+
request; this effectively ignores the headers
|
|
1134
|
+
in the spec for a single request.
|
|
1135
|
+
:type _headers: dict, optional
|
|
1136
|
+
:param _host_index: set to override the host_index for a single
|
|
1137
|
+
request; this effectively ignores the host_index
|
|
1138
|
+
in the spec for a single request.
|
|
1139
|
+
:type _host_index: int, optional
|
|
1140
|
+
:return: Returns the result object.
|
|
1141
|
+
""" # noqa: E501
|
|
1142
|
+
|
|
1143
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_output_put_serialize(
|
|
1144
|
+
client_id=client_id,
|
|
1145
|
+
artifact_id=artifact_id,
|
|
1146
|
+
request=request,
|
|
1147
|
+
_request_auth=_request_auth,
|
|
1148
|
+
_content_type=_content_type,
|
|
1149
|
+
_headers=_headers,
|
|
1150
|
+
_host_index=_host_index
|
|
1151
|
+
)
|
|
1152
|
+
|
|
1153
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1154
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
1155
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
1156
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
1157
|
+
}
|
|
1158
|
+
response_data = self.api_client.call_api(
|
|
1159
|
+
*_param,
|
|
1160
|
+
_request_timeout=_request_timeout
|
|
1161
|
+
)
|
|
1162
|
+
return response_data.response
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
def _api_v1_knowledge_enrichment_artifact_client_id_artifact_id_output_put_serialize(
|
|
1166
|
+
self,
|
|
1167
|
+
client_id,
|
|
1168
|
+
artifact_id,
|
|
1169
|
+
request,
|
|
1170
|
+
_request_auth,
|
|
1171
|
+
_content_type,
|
|
1172
|
+
_headers,
|
|
1173
|
+
_host_index,
|
|
1174
|
+
) -> RequestSerialized:
|
|
1175
|
+
|
|
1176
|
+
_host = None
|
|
1177
|
+
|
|
1178
|
+
_collection_formats: Dict[str, str] = {
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
_path_params: Dict[str, str] = {}
|
|
1182
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1183
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1184
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1185
|
+
_files: Dict[
|
|
1186
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1187
|
+
] = {}
|
|
1188
|
+
_body_params: Optional[bytes] = None
|
|
1189
|
+
|
|
1190
|
+
# process the path parameters
|
|
1191
|
+
if client_id is not None:
|
|
1192
|
+
_path_params['client_id'] = client_id
|
|
1193
|
+
if artifact_id is not None:
|
|
1194
|
+
_path_params['artifact_id'] = artifact_id
|
|
1195
|
+
# process the query parameters
|
|
1196
|
+
# process the header parameters
|
|
1197
|
+
# process the form parameters
|
|
1198
|
+
# process the body parameter
|
|
1199
|
+
if request is not None:
|
|
1200
|
+
_body_params = request
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
# set the HTTP header `Accept`
|
|
1204
|
+
if 'Accept' not in _header_params:
|
|
1205
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1206
|
+
[
|
|
1207
|
+
'application/json'
|
|
1208
|
+
]
|
|
1209
|
+
)
|
|
1210
|
+
|
|
1211
|
+
# set the HTTP header `Content-Type`
|
|
1212
|
+
if _content_type:
|
|
1213
|
+
_header_params['Content-Type'] = _content_type
|
|
1214
|
+
else:
|
|
1215
|
+
_default_content_type = (
|
|
1216
|
+
self.api_client.select_header_content_type(
|
|
1217
|
+
[
|
|
1218
|
+
'application/json'
|
|
1219
|
+
]
|
|
1220
|
+
)
|
|
1221
|
+
)
|
|
1222
|
+
if _default_content_type is not None:
|
|
1223
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1224
|
+
|
|
1225
|
+
# authentication setting
|
|
1226
|
+
_auth_settings: List[str] = [
|
|
1227
|
+
'TokenAuth'
|
|
1228
|
+
]
|
|
1229
|
+
|
|
1230
|
+
return self.api_client.param_serialize(
|
|
1231
|
+
method='PUT',
|
|
1232
|
+
resource_path='/api/v1/knowledge/enrichment/artifact/{client_id}/{artifact_id}/output',
|
|
1233
|
+
path_params=_path_params,
|
|
1234
|
+
query_params=_query_params,
|
|
1235
|
+
header_params=_header_params,
|
|
1236
|
+
body=_body_params,
|
|
1237
|
+
post_params=_form_params,
|
|
1238
|
+
files=_files,
|
|
1239
|
+
auth_settings=_auth_settings,
|
|
1240
|
+
collection_formats=_collection_formats,
|
|
1241
|
+
_host=_host,
|
|
1242
|
+
_request_auth=_request_auth
|
|
1243
|
+
)
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
@validate_call
|
|
1249
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_status_put(
|
|
1250
|
+
self,
|
|
1251
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
1252
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
1253
|
+
request: Annotated[KnowledgeEnrichmentArtifactUpdateStatusRequest, Field(description="Body")],
|
|
1254
|
+
_request_timeout: Union[
|
|
1255
|
+
None,
|
|
1256
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1257
|
+
Tuple[
|
|
1258
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1259
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1260
|
+
]
|
|
1261
|
+
] = None,
|
|
1262
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1263
|
+
_content_type: Optional[StrictStr] = None,
|
|
1264
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1265
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1266
|
+
) -> KnowledgeEnrichmentArtifactResponse:
|
|
1267
|
+
"""Update Enrichment Artifact Status
|
|
1268
|
+
|
|
1269
|
+
Update status and execution metadata for an enrichment artifact
|
|
1270
|
+
|
|
1271
|
+
:param client_id: Client ID (required)
|
|
1272
|
+
:type client_id: str
|
|
1273
|
+
:param artifact_id: Artifact ID (required)
|
|
1274
|
+
:type artifact_id: int
|
|
1275
|
+
:param request: Body (required)
|
|
1276
|
+
:type request: KnowledgeEnrichmentArtifactUpdateStatusRequest
|
|
1277
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1278
|
+
number provided, it will be total request
|
|
1279
|
+
timeout. It can also be a pair (tuple) of
|
|
1280
|
+
(connection, read) timeouts.
|
|
1281
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1282
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1283
|
+
request; this effectively ignores the
|
|
1284
|
+
authentication in the spec for a single request.
|
|
1285
|
+
:type _request_auth: dict, optional
|
|
1286
|
+
:param _content_type: force content-type for the request.
|
|
1287
|
+
:type _content_type: str, Optional
|
|
1288
|
+
:param _headers: set to override the headers for a single
|
|
1289
|
+
request; this effectively ignores the headers
|
|
1290
|
+
in the spec for a single request.
|
|
1291
|
+
:type _headers: dict, optional
|
|
1292
|
+
:param _host_index: set to override the host_index for a single
|
|
1293
|
+
request; this effectively ignores the host_index
|
|
1294
|
+
in the spec for a single request.
|
|
1295
|
+
:type _host_index: int, optional
|
|
1296
|
+
:return: Returns the result object.
|
|
1297
|
+
""" # noqa: E501
|
|
1298
|
+
|
|
1299
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_status_put_serialize(
|
|
1300
|
+
client_id=client_id,
|
|
1301
|
+
artifact_id=artifact_id,
|
|
1302
|
+
request=request,
|
|
1303
|
+
_request_auth=_request_auth,
|
|
1304
|
+
_content_type=_content_type,
|
|
1305
|
+
_headers=_headers,
|
|
1306
|
+
_host_index=_host_index
|
|
1307
|
+
)
|
|
1308
|
+
|
|
1309
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1310
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
1311
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
1312
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
1313
|
+
}
|
|
1314
|
+
response_data = self.api_client.call_api(
|
|
1315
|
+
*_param,
|
|
1316
|
+
_request_timeout=_request_timeout
|
|
1317
|
+
)
|
|
1318
|
+
response_data.read()
|
|
1319
|
+
return self.api_client.response_deserialize(
|
|
1320
|
+
response_data=response_data,
|
|
1321
|
+
response_types_map=_response_types_map,
|
|
1322
|
+
).data
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
@validate_call
|
|
1326
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_status_put_with_http_info(
|
|
1327
|
+
self,
|
|
1328
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
1329
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
1330
|
+
request: Annotated[KnowledgeEnrichmentArtifactUpdateStatusRequest, Field(description="Body")],
|
|
1331
|
+
_request_timeout: Union[
|
|
1332
|
+
None,
|
|
1333
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1334
|
+
Tuple[
|
|
1335
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1336
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1337
|
+
]
|
|
1338
|
+
] = None,
|
|
1339
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1340
|
+
_content_type: Optional[StrictStr] = None,
|
|
1341
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1342
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1343
|
+
) -> ApiResponse[KnowledgeEnrichmentArtifactResponse]:
|
|
1344
|
+
"""Update Enrichment Artifact Status
|
|
1345
|
+
|
|
1346
|
+
Update status and execution metadata for an enrichment artifact
|
|
1347
|
+
|
|
1348
|
+
:param client_id: Client ID (required)
|
|
1349
|
+
:type client_id: str
|
|
1350
|
+
:param artifact_id: Artifact ID (required)
|
|
1351
|
+
:type artifact_id: int
|
|
1352
|
+
:param request: Body (required)
|
|
1353
|
+
:type request: KnowledgeEnrichmentArtifactUpdateStatusRequest
|
|
1354
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1355
|
+
number provided, it will be total request
|
|
1356
|
+
timeout. It can also be a pair (tuple) of
|
|
1357
|
+
(connection, read) timeouts.
|
|
1358
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1359
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1360
|
+
request; this effectively ignores the
|
|
1361
|
+
authentication in the spec for a single request.
|
|
1362
|
+
:type _request_auth: dict, optional
|
|
1363
|
+
:param _content_type: force content-type for the request.
|
|
1364
|
+
:type _content_type: str, Optional
|
|
1365
|
+
:param _headers: set to override the headers for a single
|
|
1366
|
+
request; this effectively ignores the headers
|
|
1367
|
+
in the spec for a single request.
|
|
1368
|
+
:type _headers: dict, optional
|
|
1369
|
+
:param _host_index: set to override the host_index for a single
|
|
1370
|
+
request; this effectively ignores the host_index
|
|
1371
|
+
in the spec for a single request.
|
|
1372
|
+
:type _host_index: int, optional
|
|
1373
|
+
:return: Returns the result object.
|
|
1374
|
+
""" # noqa: E501
|
|
1375
|
+
|
|
1376
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_status_put_serialize(
|
|
1377
|
+
client_id=client_id,
|
|
1378
|
+
artifact_id=artifact_id,
|
|
1379
|
+
request=request,
|
|
1380
|
+
_request_auth=_request_auth,
|
|
1381
|
+
_content_type=_content_type,
|
|
1382
|
+
_headers=_headers,
|
|
1383
|
+
_host_index=_host_index
|
|
1384
|
+
)
|
|
1385
|
+
|
|
1386
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1387
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
1388
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
1389
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
1390
|
+
}
|
|
1391
|
+
response_data = self.api_client.call_api(
|
|
1392
|
+
*_param,
|
|
1393
|
+
_request_timeout=_request_timeout
|
|
1394
|
+
)
|
|
1395
|
+
response_data.read()
|
|
1396
|
+
return self.api_client.response_deserialize(
|
|
1397
|
+
response_data=response_data,
|
|
1398
|
+
response_types_map=_response_types_map,
|
|
1399
|
+
)
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
@validate_call
|
|
1403
|
+
def api_v1_knowledge_enrichment_artifact_client_id_artifact_id_status_put_without_preload_content(
|
|
1404
|
+
self,
|
|
1405
|
+
client_id: Annotated[StrictStr, Field(description="Client ID")],
|
|
1406
|
+
artifact_id: Annotated[StrictInt, Field(description="Artifact ID")],
|
|
1407
|
+
request: Annotated[KnowledgeEnrichmentArtifactUpdateStatusRequest, Field(description="Body")],
|
|
1408
|
+
_request_timeout: Union[
|
|
1409
|
+
None,
|
|
1410
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1411
|
+
Tuple[
|
|
1412
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1413
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1414
|
+
]
|
|
1415
|
+
] = None,
|
|
1416
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1417
|
+
_content_type: Optional[StrictStr] = None,
|
|
1418
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1419
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1420
|
+
) -> RESTResponseType:
|
|
1421
|
+
"""Update Enrichment Artifact Status
|
|
1422
|
+
|
|
1423
|
+
Update status and execution metadata for an enrichment artifact
|
|
1424
|
+
|
|
1425
|
+
:param client_id: Client ID (required)
|
|
1426
|
+
:type client_id: str
|
|
1427
|
+
:param artifact_id: Artifact ID (required)
|
|
1428
|
+
:type artifact_id: int
|
|
1429
|
+
:param request: Body (required)
|
|
1430
|
+
:type request: KnowledgeEnrichmentArtifactUpdateStatusRequest
|
|
1431
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1432
|
+
number provided, it will be total request
|
|
1433
|
+
timeout. It can also be a pair (tuple) of
|
|
1434
|
+
(connection, read) timeouts.
|
|
1435
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1436
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1437
|
+
request; this effectively ignores the
|
|
1438
|
+
authentication in the spec for a single request.
|
|
1439
|
+
:type _request_auth: dict, optional
|
|
1440
|
+
:param _content_type: force content-type for the request.
|
|
1441
|
+
:type _content_type: str, Optional
|
|
1442
|
+
:param _headers: set to override the headers for a single
|
|
1443
|
+
request; this effectively ignores the headers
|
|
1444
|
+
in the spec for a single request.
|
|
1445
|
+
:type _headers: dict, optional
|
|
1446
|
+
:param _host_index: set to override the host_index for a single
|
|
1447
|
+
request; this effectively ignores the host_index
|
|
1448
|
+
in the spec for a single request.
|
|
1449
|
+
:type _host_index: int, optional
|
|
1450
|
+
:return: Returns the result object.
|
|
1451
|
+
""" # noqa: E501
|
|
1452
|
+
|
|
1453
|
+
_param = self._api_v1_knowledge_enrichment_artifact_client_id_artifact_id_status_put_serialize(
|
|
1454
|
+
client_id=client_id,
|
|
1455
|
+
artifact_id=artifact_id,
|
|
1456
|
+
request=request,
|
|
1457
|
+
_request_auth=_request_auth,
|
|
1458
|
+
_content_type=_content_type,
|
|
1459
|
+
_headers=_headers,
|
|
1460
|
+
_host_index=_host_index
|
|
1461
|
+
)
|
|
1462
|
+
|
|
1463
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1464
|
+
'200': "KnowledgeEnrichmentArtifactResponse",
|
|
1465
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
1466
|
+
'404': "KnowledgeEnrichmentArtifactResponse",
|
|
1467
|
+
}
|
|
1468
|
+
response_data = self.api_client.call_api(
|
|
1469
|
+
*_param,
|
|
1470
|
+
_request_timeout=_request_timeout
|
|
1471
|
+
)
|
|
1472
|
+
return response_data.response
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
def _api_v1_knowledge_enrichment_artifact_client_id_artifact_id_status_put_serialize(
|
|
1476
|
+
self,
|
|
1477
|
+
client_id,
|
|
1478
|
+
artifact_id,
|
|
1479
|
+
request,
|
|
1480
|
+
_request_auth,
|
|
1481
|
+
_content_type,
|
|
1482
|
+
_headers,
|
|
1483
|
+
_host_index,
|
|
1484
|
+
) -> RequestSerialized:
|
|
1485
|
+
|
|
1486
|
+
_host = None
|
|
1487
|
+
|
|
1488
|
+
_collection_formats: Dict[str, str] = {
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
_path_params: Dict[str, str] = {}
|
|
1492
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1493
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1494
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1495
|
+
_files: Dict[
|
|
1496
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1497
|
+
] = {}
|
|
1498
|
+
_body_params: Optional[bytes] = None
|
|
1499
|
+
|
|
1500
|
+
# process the path parameters
|
|
1501
|
+
if client_id is not None:
|
|
1502
|
+
_path_params['client_id'] = client_id
|
|
1503
|
+
if artifact_id is not None:
|
|
1504
|
+
_path_params['artifact_id'] = artifact_id
|
|
1505
|
+
# process the query parameters
|
|
1506
|
+
# process the header parameters
|
|
1507
|
+
# process the form parameters
|
|
1508
|
+
# process the body parameter
|
|
1509
|
+
if request is not None:
|
|
1510
|
+
_body_params = request
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
# set the HTTP header `Accept`
|
|
1514
|
+
if 'Accept' not in _header_params:
|
|
1515
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1516
|
+
[
|
|
1517
|
+
'application/json'
|
|
1518
|
+
]
|
|
1519
|
+
)
|
|
1520
|
+
|
|
1521
|
+
# set the HTTP header `Content-Type`
|
|
1522
|
+
if _content_type:
|
|
1523
|
+
_header_params['Content-Type'] = _content_type
|
|
1524
|
+
else:
|
|
1525
|
+
_default_content_type = (
|
|
1526
|
+
self.api_client.select_header_content_type(
|
|
1527
|
+
[
|
|
1528
|
+
'application/json'
|
|
1529
|
+
]
|
|
1530
|
+
)
|
|
1531
|
+
)
|
|
1532
|
+
if _default_content_type is not None:
|
|
1533
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1534
|
+
|
|
1535
|
+
# authentication setting
|
|
1536
|
+
_auth_settings: List[str] = [
|
|
1537
|
+
'TokenAuth'
|
|
1538
|
+
]
|
|
1539
|
+
|
|
1540
|
+
return self.api_client.param_serialize(
|
|
1541
|
+
method='PUT',
|
|
1542
|
+
resource_path='/api/v1/knowledge/enrichment/artifact/{client_id}/{artifact_id}/status',
|
|
1543
|
+
path_params=_path_params,
|
|
1544
|
+
query_params=_query_params,
|
|
1545
|
+
header_params=_header_params,
|
|
1546
|
+
body=_body_params,
|
|
1547
|
+
post_params=_form_params,
|
|
1548
|
+
files=_files,
|
|
1549
|
+
auth_settings=_auth_settings,
|
|
1550
|
+
collection_formats=_collection_formats,
|
|
1551
|
+
_host=_host,
|
|
1552
|
+
_request_auth=_request_auth
|
|
1553
|
+
)
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
@validate_call
|
|
1559
|
+
def api_v1_knowledge_enrichment_artifact_get(
|
|
1560
|
+
self,
|
|
1561
|
+
client_id: Optional[StrictStr] = None,
|
|
1562
|
+
is_current: Optional[StrictBool] = None,
|
|
1563
|
+
job_name: Optional[StrictStr] = None,
|
|
1564
|
+
limit: Optional[StrictInt] = None,
|
|
1565
|
+
offset: Optional[StrictInt] = None,
|
|
1566
|
+
status: Optional[StrictStr] = None,
|
|
1567
|
+
subject_entity_id: Optional[StrictStr] = None,
|
|
1568
|
+
_request_timeout: Union[
|
|
1569
|
+
None,
|
|
1570
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1571
|
+
Tuple[
|
|
1572
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1573
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1574
|
+
]
|
|
1575
|
+
] = None,
|
|
1576
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1577
|
+
_content_type: Optional[StrictStr] = None,
|
|
1578
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1579
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1580
|
+
) -> KnowledgeEnrichmentArtifactListResponse:
|
|
1581
|
+
"""Get Many Enrichment Artifacts
|
|
1582
|
+
|
|
1583
|
+
Get enrichment artifacts with filtering
|
|
1584
|
+
|
|
1585
|
+
:param client_id:
|
|
1586
|
+
:type client_id: str
|
|
1587
|
+
:param is_current:
|
|
1588
|
+
:type is_current: bool
|
|
1589
|
+
:param job_name:
|
|
1590
|
+
:type job_name: str
|
|
1591
|
+
:param limit:
|
|
1592
|
+
:type limit: int
|
|
1593
|
+
:param offset:
|
|
1594
|
+
:type offset: int
|
|
1595
|
+
:param status:
|
|
1596
|
+
:type status: str
|
|
1597
|
+
:param subject_entity_id:
|
|
1598
|
+
:type subject_entity_id: str
|
|
1599
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1600
|
+
number provided, it will be total request
|
|
1601
|
+
timeout. It can also be a pair (tuple) of
|
|
1602
|
+
(connection, read) timeouts.
|
|
1603
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1604
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1605
|
+
request; this effectively ignores the
|
|
1606
|
+
authentication in the spec for a single request.
|
|
1607
|
+
:type _request_auth: dict, optional
|
|
1608
|
+
:param _content_type: force content-type for the request.
|
|
1609
|
+
:type _content_type: str, Optional
|
|
1610
|
+
:param _headers: set to override the headers for a single
|
|
1611
|
+
request; this effectively ignores the headers
|
|
1612
|
+
in the spec for a single request.
|
|
1613
|
+
:type _headers: dict, optional
|
|
1614
|
+
:param _host_index: set to override the host_index for a single
|
|
1615
|
+
request; this effectively ignores the host_index
|
|
1616
|
+
in the spec for a single request.
|
|
1617
|
+
:type _host_index: int, optional
|
|
1618
|
+
:return: Returns the result object.
|
|
1619
|
+
""" # noqa: E501
|
|
1620
|
+
|
|
1621
|
+
_param = self._api_v1_knowledge_enrichment_artifact_get_serialize(
|
|
1622
|
+
client_id=client_id,
|
|
1623
|
+
is_current=is_current,
|
|
1624
|
+
job_name=job_name,
|
|
1625
|
+
limit=limit,
|
|
1626
|
+
offset=offset,
|
|
1627
|
+
status=status,
|
|
1628
|
+
subject_entity_id=subject_entity_id,
|
|
1629
|
+
_request_auth=_request_auth,
|
|
1630
|
+
_content_type=_content_type,
|
|
1631
|
+
_headers=_headers,
|
|
1632
|
+
_host_index=_host_index
|
|
1633
|
+
)
|
|
1634
|
+
|
|
1635
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1636
|
+
'200': "KnowledgeEnrichmentArtifactListResponse",
|
|
1637
|
+
'400': "KnowledgeEnrichmentArtifactListResponse",
|
|
1638
|
+
'503': "KnowledgeEnrichmentArtifactListResponse",
|
|
1639
|
+
}
|
|
1640
|
+
response_data = self.api_client.call_api(
|
|
1641
|
+
*_param,
|
|
1642
|
+
_request_timeout=_request_timeout
|
|
1643
|
+
)
|
|
1644
|
+
response_data.read()
|
|
1645
|
+
return self.api_client.response_deserialize(
|
|
1646
|
+
response_data=response_data,
|
|
1647
|
+
response_types_map=_response_types_map,
|
|
1648
|
+
).data
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
@validate_call
|
|
1652
|
+
def api_v1_knowledge_enrichment_artifact_get_with_http_info(
|
|
1653
|
+
self,
|
|
1654
|
+
client_id: Optional[StrictStr] = None,
|
|
1655
|
+
is_current: Optional[StrictBool] = None,
|
|
1656
|
+
job_name: Optional[StrictStr] = None,
|
|
1657
|
+
limit: Optional[StrictInt] = None,
|
|
1658
|
+
offset: Optional[StrictInt] = None,
|
|
1659
|
+
status: Optional[StrictStr] = None,
|
|
1660
|
+
subject_entity_id: Optional[StrictStr] = None,
|
|
1661
|
+
_request_timeout: Union[
|
|
1662
|
+
None,
|
|
1663
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1664
|
+
Tuple[
|
|
1665
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1666
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1667
|
+
]
|
|
1668
|
+
] = None,
|
|
1669
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1670
|
+
_content_type: Optional[StrictStr] = None,
|
|
1671
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1672
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1673
|
+
) -> ApiResponse[KnowledgeEnrichmentArtifactListResponse]:
|
|
1674
|
+
"""Get Many Enrichment Artifacts
|
|
1675
|
+
|
|
1676
|
+
Get enrichment artifacts with filtering
|
|
1677
|
+
|
|
1678
|
+
:param client_id:
|
|
1679
|
+
:type client_id: str
|
|
1680
|
+
:param is_current:
|
|
1681
|
+
:type is_current: bool
|
|
1682
|
+
:param job_name:
|
|
1683
|
+
:type job_name: str
|
|
1684
|
+
:param limit:
|
|
1685
|
+
:type limit: int
|
|
1686
|
+
:param offset:
|
|
1687
|
+
:type offset: int
|
|
1688
|
+
:param status:
|
|
1689
|
+
:type status: str
|
|
1690
|
+
:param subject_entity_id:
|
|
1691
|
+
:type subject_entity_id: str
|
|
1692
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1693
|
+
number provided, it will be total request
|
|
1694
|
+
timeout. It can also be a pair (tuple) of
|
|
1695
|
+
(connection, read) timeouts.
|
|
1696
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1697
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1698
|
+
request; this effectively ignores the
|
|
1699
|
+
authentication in the spec for a single request.
|
|
1700
|
+
:type _request_auth: dict, optional
|
|
1701
|
+
:param _content_type: force content-type for the request.
|
|
1702
|
+
:type _content_type: str, Optional
|
|
1703
|
+
:param _headers: set to override the headers for a single
|
|
1704
|
+
request; this effectively ignores the headers
|
|
1705
|
+
in the spec for a single request.
|
|
1706
|
+
:type _headers: dict, optional
|
|
1707
|
+
:param _host_index: set to override the host_index for a single
|
|
1708
|
+
request; this effectively ignores the host_index
|
|
1709
|
+
in the spec for a single request.
|
|
1710
|
+
:type _host_index: int, optional
|
|
1711
|
+
:return: Returns the result object.
|
|
1712
|
+
""" # noqa: E501
|
|
1713
|
+
|
|
1714
|
+
_param = self._api_v1_knowledge_enrichment_artifact_get_serialize(
|
|
1715
|
+
client_id=client_id,
|
|
1716
|
+
is_current=is_current,
|
|
1717
|
+
job_name=job_name,
|
|
1718
|
+
limit=limit,
|
|
1719
|
+
offset=offset,
|
|
1720
|
+
status=status,
|
|
1721
|
+
subject_entity_id=subject_entity_id,
|
|
1722
|
+
_request_auth=_request_auth,
|
|
1723
|
+
_content_type=_content_type,
|
|
1724
|
+
_headers=_headers,
|
|
1725
|
+
_host_index=_host_index
|
|
1726
|
+
)
|
|
1727
|
+
|
|
1728
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1729
|
+
'200': "KnowledgeEnrichmentArtifactListResponse",
|
|
1730
|
+
'400': "KnowledgeEnrichmentArtifactListResponse",
|
|
1731
|
+
'503': "KnowledgeEnrichmentArtifactListResponse",
|
|
1732
|
+
}
|
|
1733
|
+
response_data = self.api_client.call_api(
|
|
1734
|
+
*_param,
|
|
1735
|
+
_request_timeout=_request_timeout
|
|
1736
|
+
)
|
|
1737
|
+
response_data.read()
|
|
1738
|
+
return self.api_client.response_deserialize(
|
|
1739
|
+
response_data=response_data,
|
|
1740
|
+
response_types_map=_response_types_map,
|
|
1741
|
+
)
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
@validate_call
|
|
1745
|
+
def api_v1_knowledge_enrichment_artifact_get_without_preload_content(
|
|
1746
|
+
self,
|
|
1747
|
+
client_id: Optional[StrictStr] = None,
|
|
1748
|
+
is_current: Optional[StrictBool] = None,
|
|
1749
|
+
job_name: Optional[StrictStr] = None,
|
|
1750
|
+
limit: Optional[StrictInt] = None,
|
|
1751
|
+
offset: Optional[StrictInt] = None,
|
|
1752
|
+
status: Optional[StrictStr] = None,
|
|
1753
|
+
subject_entity_id: Optional[StrictStr] = None,
|
|
1754
|
+
_request_timeout: Union[
|
|
1755
|
+
None,
|
|
1756
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1757
|
+
Tuple[
|
|
1758
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1759
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1760
|
+
]
|
|
1761
|
+
] = None,
|
|
1762
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1763
|
+
_content_type: Optional[StrictStr] = None,
|
|
1764
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1765
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1766
|
+
) -> RESTResponseType:
|
|
1767
|
+
"""Get Many Enrichment Artifacts
|
|
1768
|
+
|
|
1769
|
+
Get enrichment artifacts with filtering
|
|
1770
|
+
|
|
1771
|
+
:param client_id:
|
|
1772
|
+
:type client_id: str
|
|
1773
|
+
:param is_current:
|
|
1774
|
+
:type is_current: bool
|
|
1775
|
+
:param job_name:
|
|
1776
|
+
:type job_name: str
|
|
1777
|
+
:param limit:
|
|
1778
|
+
:type limit: int
|
|
1779
|
+
:param offset:
|
|
1780
|
+
:type offset: int
|
|
1781
|
+
:param status:
|
|
1782
|
+
:type status: str
|
|
1783
|
+
:param subject_entity_id:
|
|
1784
|
+
:type subject_entity_id: str
|
|
1785
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1786
|
+
number provided, it will be total request
|
|
1787
|
+
timeout. It can also be a pair (tuple) of
|
|
1788
|
+
(connection, read) timeouts.
|
|
1789
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1790
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1791
|
+
request; this effectively ignores the
|
|
1792
|
+
authentication in the spec for a single request.
|
|
1793
|
+
:type _request_auth: dict, optional
|
|
1794
|
+
:param _content_type: force content-type for the request.
|
|
1795
|
+
:type _content_type: str, Optional
|
|
1796
|
+
:param _headers: set to override the headers for a single
|
|
1797
|
+
request; this effectively ignores the headers
|
|
1798
|
+
in the spec for a single request.
|
|
1799
|
+
:type _headers: dict, optional
|
|
1800
|
+
:param _host_index: set to override the host_index for a single
|
|
1801
|
+
request; this effectively ignores the host_index
|
|
1802
|
+
in the spec for a single request.
|
|
1803
|
+
:type _host_index: int, optional
|
|
1804
|
+
:return: Returns the result object.
|
|
1805
|
+
""" # noqa: E501
|
|
1806
|
+
|
|
1807
|
+
_param = self._api_v1_knowledge_enrichment_artifact_get_serialize(
|
|
1808
|
+
client_id=client_id,
|
|
1809
|
+
is_current=is_current,
|
|
1810
|
+
job_name=job_name,
|
|
1811
|
+
limit=limit,
|
|
1812
|
+
offset=offset,
|
|
1813
|
+
status=status,
|
|
1814
|
+
subject_entity_id=subject_entity_id,
|
|
1815
|
+
_request_auth=_request_auth,
|
|
1816
|
+
_content_type=_content_type,
|
|
1817
|
+
_headers=_headers,
|
|
1818
|
+
_host_index=_host_index
|
|
1819
|
+
)
|
|
1820
|
+
|
|
1821
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1822
|
+
'200': "KnowledgeEnrichmentArtifactListResponse",
|
|
1823
|
+
'400': "KnowledgeEnrichmentArtifactListResponse",
|
|
1824
|
+
'503': "KnowledgeEnrichmentArtifactListResponse",
|
|
1825
|
+
}
|
|
1826
|
+
response_data = self.api_client.call_api(
|
|
1827
|
+
*_param,
|
|
1828
|
+
_request_timeout=_request_timeout
|
|
1829
|
+
)
|
|
1830
|
+
return response_data.response
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
def _api_v1_knowledge_enrichment_artifact_get_serialize(
|
|
1834
|
+
self,
|
|
1835
|
+
client_id,
|
|
1836
|
+
is_current,
|
|
1837
|
+
job_name,
|
|
1838
|
+
limit,
|
|
1839
|
+
offset,
|
|
1840
|
+
status,
|
|
1841
|
+
subject_entity_id,
|
|
1842
|
+
_request_auth,
|
|
1843
|
+
_content_type,
|
|
1844
|
+
_headers,
|
|
1845
|
+
_host_index,
|
|
1846
|
+
) -> RequestSerialized:
|
|
1847
|
+
|
|
1848
|
+
_host = None
|
|
1849
|
+
|
|
1850
|
+
_collection_formats: Dict[str, str] = {
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
_path_params: Dict[str, str] = {}
|
|
1854
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1855
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1856
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1857
|
+
_files: Dict[
|
|
1858
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1859
|
+
] = {}
|
|
1860
|
+
_body_params: Optional[bytes] = None
|
|
1861
|
+
|
|
1862
|
+
# process the path parameters
|
|
1863
|
+
# process the query parameters
|
|
1864
|
+
if client_id is not None:
|
|
1865
|
+
|
|
1866
|
+
_query_params.append(('client_id', client_id))
|
|
1867
|
+
|
|
1868
|
+
if is_current is not None:
|
|
1869
|
+
|
|
1870
|
+
_query_params.append(('is_current', is_current))
|
|
1871
|
+
|
|
1872
|
+
if job_name is not None:
|
|
1873
|
+
|
|
1874
|
+
_query_params.append(('job_name', job_name))
|
|
1875
|
+
|
|
1876
|
+
if limit is not None:
|
|
1877
|
+
|
|
1878
|
+
_query_params.append(('limit', limit))
|
|
1879
|
+
|
|
1880
|
+
if offset is not None:
|
|
1881
|
+
|
|
1882
|
+
_query_params.append(('offset', offset))
|
|
1883
|
+
|
|
1884
|
+
if status is not None:
|
|
1885
|
+
|
|
1886
|
+
_query_params.append(('status', status))
|
|
1887
|
+
|
|
1888
|
+
if subject_entity_id is not None:
|
|
1889
|
+
|
|
1890
|
+
_query_params.append(('subject_entity_id', subject_entity_id))
|
|
1891
|
+
|
|
1892
|
+
# process the header parameters
|
|
1893
|
+
# process the form parameters
|
|
1894
|
+
# process the body parameter
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
# set the HTTP header `Accept`
|
|
1898
|
+
if 'Accept' not in _header_params:
|
|
1899
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1900
|
+
[
|
|
1901
|
+
'application/json'
|
|
1902
|
+
]
|
|
1903
|
+
)
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
# authentication setting
|
|
1907
|
+
_auth_settings: List[str] = [
|
|
1908
|
+
'TokenAuth'
|
|
1909
|
+
]
|
|
1910
|
+
|
|
1911
|
+
return self.api_client.param_serialize(
|
|
1912
|
+
method='GET',
|
|
1913
|
+
resource_path='/api/v1/knowledge/enrichment/artifact',
|
|
1914
|
+
path_params=_path_params,
|
|
1915
|
+
query_params=_query_params,
|
|
1916
|
+
header_params=_header_params,
|
|
1917
|
+
body=_body_params,
|
|
1918
|
+
post_params=_form_params,
|
|
1919
|
+
files=_files,
|
|
1920
|
+
auth_settings=_auth_settings,
|
|
1921
|
+
collection_formats=_collection_formats,
|
|
1922
|
+
_host=_host,
|
|
1923
|
+
_request_auth=_request_auth
|
|
1924
|
+
)
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
@validate_call
|
|
1930
|
+
def api_v1_knowledge_enrichment_artifact_post(
|
|
1931
|
+
self,
|
|
1932
|
+
request: Annotated[KnowledgeEnrichmentArtifactCreateRequest, Field(description="Body")],
|
|
1933
|
+
_request_timeout: Union[
|
|
1934
|
+
None,
|
|
1935
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1936
|
+
Tuple[
|
|
1937
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1938
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1939
|
+
]
|
|
1940
|
+
] = None,
|
|
1941
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1942
|
+
_content_type: Optional[StrictStr] = None,
|
|
1943
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1944
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1945
|
+
) -> KnowledgeEnrichmentArtifactResponse:
|
|
1946
|
+
"""Create Enrichment Artifact
|
|
1947
|
+
|
|
1948
|
+
Create a new enrichment artifact for async knowledge processing
|
|
1949
|
+
|
|
1950
|
+
:param request: Body (required)
|
|
1951
|
+
:type request: KnowledgeEnrichmentArtifactCreateRequest
|
|
1952
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1953
|
+
number provided, it will be total request
|
|
1954
|
+
timeout. It can also be a pair (tuple) of
|
|
1955
|
+
(connection, read) timeouts.
|
|
1956
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1957
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1958
|
+
request; this effectively ignores the
|
|
1959
|
+
authentication in the spec for a single request.
|
|
1960
|
+
:type _request_auth: dict, optional
|
|
1961
|
+
:param _content_type: force content-type for the request.
|
|
1962
|
+
:type _content_type: str, Optional
|
|
1963
|
+
:param _headers: set to override the headers for a single
|
|
1964
|
+
request; this effectively ignores the headers
|
|
1965
|
+
in the spec for a single request.
|
|
1966
|
+
:type _headers: dict, optional
|
|
1967
|
+
:param _host_index: set to override the host_index for a single
|
|
1968
|
+
request; this effectively ignores the host_index
|
|
1969
|
+
in the spec for a single request.
|
|
1970
|
+
:type _host_index: int, optional
|
|
1971
|
+
:return: Returns the result object.
|
|
1972
|
+
""" # noqa: E501
|
|
1973
|
+
|
|
1974
|
+
_param = self._api_v1_knowledge_enrichment_artifact_post_serialize(
|
|
1975
|
+
request=request,
|
|
1976
|
+
_request_auth=_request_auth,
|
|
1977
|
+
_content_type=_content_type,
|
|
1978
|
+
_headers=_headers,
|
|
1979
|
+
_host_index=_host_index
|
|
1980
|
+
)
|
|
1981
|
+
|
|
1982
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1983
|
+
'201': "KnowledgeEnrichmentArtifactResponse",
|
|
1984
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
1985
|
+
'503': "KnowledgeEnrichmentArtifactResponse",
|
|
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
|
+
).data
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
@validate_call
|
|
1999
|
+
def api_v1_knowledge_enrichment_artifact_post_with_http_info(
|
|
2000
|
+
self,
|
|
2001
|
+
request: Annotated[KnowledgeEnrichmentArtifactCreateRequest, Field(description="Body")],
|
|
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
|
+
) -> ApiResponse[KnowledgeEnrichmentArtifactResponse]:
|
|
2015
|
+
"""Create Enrichment Artifact
|
|
2016
|
+
|
|
2017
|
+
Create a new enrichment artifact for async knowledge processing
|
|
2018
|
+
|
|
2019
|
+
:param request: Body (required)
|
|
2020
|
+
:type request: KnowledgeEnrichmentArtifactCreateRequest
|
|
2021
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2022
|
+
number provided, it will be total request
|
|
2023
|
+
timeout. It can also be a pair (tuple) of
|
|
2024
|
+
(connection, read) timeouts.
|
|
2025
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2026
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2027
|
+
request; this effectively ignores the
|
|
2028
|
+
authentication in the spec for a single request.
|
|
2029
|
+
:type _request_auth: dict, optional
|
|
2030
|
+
:param _content_type: force content-type for the request.
|
|
2031
|
+
:type _content_type: str, Optional
|
|
2032
|
+
:param _headers: set to override the headers for a single
|
|
2033
|
+
request; this effectively ignores the headers
|
|
2034
|
+
in the spec for a single request.
|
|
2035
|
+
:type _headers: dict, optional
|
|
2036
|
+
:param _host_index: set to override the host_index for a single
|
|
2037
|
+
request; this effectively ignores the host_index
|
|
2038
|
+
in the spec for a single request.
|
|
2039
|
+
:type _host_index: int, optional
|
|
2040
|
+
:return: Returns the result object.
|
|
2041
|
+
""" # noqa: E501
|
|
2042
|
+
|
|
2043
|
+
_param = self._api_v1_knowledge_enrichment_artifact_post_serialize(
|
|
2044
|
+
request=request,
|
|
2045
|
+
_request_auth=_request_auth,
|
|
2046
|
+
_content_type=_content_type,
|
|
2047
|
+
_headers=_headers,
|
|
2048
|
+
_host_index=_host_index
|
|
2049
|
+
)
|
|
2050
|
+
|
|
2051
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2052
|
+
'201': "KnowledgeEnrichmentArtifactResponse",
|
|
2053
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
2054
|
+
'503': "KnowledgeEnrichmentArtifactResponse",
|
|
2055
|
+
}
|
|
2056
|
+
response_data = self.api_client.call_api(
|
|
2057
|
+
*_param,
|
|
2058
|
+
_request_timeout=_request_timeout
|
|
2059
|
+
)
|
|
2060
|
+
response_data.read()
|
|
2061
|
+
return self.api_client.response_deserialize(
|
|
2062
|
+
response_data=response_data,
|
|
2063
|
+
response_types_map=_response_types_map,
|
|
2064
|
+
)
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
@validate_call
|
|
2068
|
+
def api_v1_knowledge_enrichment_artifact_post_without_preload_content(
|
|
2069
|
+
self,
|
|
2070
|
+
request: Annotated[KnowledgeEnrichmentArtifactCreateRequest, Field(description="Body")],
|
|
2071
|
+
_request_timeout: Union[
|
|
2072
|
+
None,
|
|
2073
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2074
|
+
Tuple[
|
|
2075
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2076
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2077
|
+
]
|
|
2078
|
+
] = None,
|
|
2079
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2080
|
+
_content_type: Optional[StrictStr] = None,
|
|
2081
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2082
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2083
|
+
) -> RESTResponseType:
|
|
2084
|
+
"""Create Enrichment Artifact
|
|
2085
|
+
|
|
2086
|
+
Create a new enrichment artifact for async knowledge processing
|
|
2087
|
+
|
|
2088
|
+
:param request: Body (required)
|
|
2089
|
+
:type request: KnowledgeEnrichmentArtifactCreateRequest
|
|
2090
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2091
|
+
number provided, it will be total request
|
|
2092
|
+
timeout. It can also be a pair (tuple) of
|
|
2093
|
+
(connection, read) timeouts.
|
|
2094
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2095
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2096
|
+
request; this effectively ignores the
|
|
2097
|
+
authentication in the spec for a single request.
|
|
2098
|
+
:type _request_auth: dict, optional
|
|
2099
|
+
:param _content_type: force content-type for the request.
|
|
2100
|
+
:type _content_type: str, Optional
|
|
2101
|
+
:param _headers: set to override the headers for a single
|
|
2102
|
+
request; this effectively ignores the headers
|
|
2103
|
+
in the spec for a single request.
|
|
2104
|
+
:type _headers: dict, optional
|
|
2105
|
+
:param _host_index: set to override the host_index for a single
|
|
2106
|
+
request; this effectively ignores the host_index
|
|
2107
|
+
in the spec for a single request.
|
|
2108
|
+
:type _host_index: int, optional
|
|
2109
|
+
:return: Returns the result object.
|
|
2110
|
+
""" # noqa: E501
|
|
2111
|
+
|
|
2112
|
+
_param = self._api_v1_knowledge_enrichment_artifact_post_serialize(
|
|
2113
|
+
request=request,
|
|
2114
|
+
_request_auth=_request_auth,
|
|
2115
|
+
_content_type=_content_type,
|
|
2116
|
+
_headers=_headers,
|
|
2117
|
+
_host_index=_host_index
|
|
2118
|
+
)
|
|
2119
|
+
|
|
2120
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2121
|
+
'201': "KnowledgeEnrichmentArtifactResponse",
|
|
2122
|
+
'400': "KnowledgeEnrichmentArtifactResponse",
|
|
2123
|
+
'503': "KnowledgeEnrichmentArtifactResponse",
|
|
2124
|
+
}
|
|
2125
|
+
response_data = self.api_client.call_api(
|
|
2126
|
+
*_param,
|
|
2127
|
+
_request_timeout=_request_timeout
|
|
2128
|
+
)
|
|
2129
|
+
return response_data.response
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
def _api_v1_knowledge_enrichment_artifact_post_serialize(
|
|
2133
|
+
self,
|
|
2134
|
+
request,
|
|
2135
|
+
_request_auth,
|
|
2136
|
+
_content_type,
|
|
2137
|
+
_headers,
|
|
2138
|
+
_host_index,
|
|
2139
|
+
) -> RequestSerialized:
|
|
2140
|
+
|
|
2141
|
+
_host = None
|
|
2142
|
+
|
|
2143
|
+
_collection_formats: Dict[str, str] = {
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
_path_params: Dict[str, str] = {}
|
|
2147
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2148
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2149
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2150
|
+
_files: Dict[
|
|
2151
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2152
|
+
] = {}
|
|
2153
|
+
_body_params: Optional[bytes] = None
|
|
2154
|
+
|
|
2155
|
+
# process the path parameters
|
|
2156
|
+
# process the query parameters
|
|
2157
|
+
# process the header parameters
|
|
2158
|
+
# process the form parameters
|
|
2159
|
+
# process the body parameter
|
|
2160
|
+
if request is not None:
|
|
2161
|
+
_body_params = request
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
# set the HTTP header `Accept`
|
|
2165
|
+
if 'Accept' not in _header_params:
|
|
2166
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2167
|
+
[
|
|
2168
|
+
'application/json'
|
|
2169
|
+
]
|
|
2170
|
+
)
|
|
2171
|
+
|
|
2172
|
+
# set the HTTP header `Content-Type`
|
|
2173
|
+
if _content_type:
|
|
2174
|
+
_header_params['Content-Type'] = _content_type
|
|
2175
|
+
else:
|
|
2176
|
+
_default_content_type = (
|
|
2177
|
+
self.api_client.select_header_content_type(
|
|
2178
|
+
[
|
|
2179
|
+
'application/json'
|
|
2180
|
+
]
|
|
2181
|
+
)
|
|
2182
|
+
)
|
|
2183
|
+
if _default_content_type is not None:
|
|
2184
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2185
|
+
|
|
2186
|
+
# authentication setting
|
|
2187
|
+
_auth_settings: List[str] = [
|
|
2188
|
+
'TokenAuth'
|
|
2189
|
+
]
|
|
2190
|
+
|
|
2191
|
+
return self.api_client.param_serialize(
|
|
2192
|
+
method='POST',
|
|
2193
|
+
resource_path='/api/v1/knowledge/enrichment/artifact',
|
|
2194
|
+
path_params=_path_params,
|
|
2195
|
+
query_params=_query_params,
|
|
2196
|
+
header_params=_header_params,
|
|
2197
|
+
body=_body_params,
|
|
2198
|
+
post_params=_form_params,
|
|
2199
|
+
files=_files,
|
|
2200
|
+
auth_settings=_auth_settings,
|
|
2201
|
+
collection_formats=_collection_formats,
|
|
2202
|
+
_host=_host,
|
|
2203
|
+
_request_auth=_request_auth
|
|
2204
|
+
)
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
|
|
52
2209
|
@validate_call
|
|
53
2210
|
def api_v1_knowledge_entity_get(
|
|
54
2211
|
self,
|
|
@@ -69,7 +2226,7 @@ class KnowledgeApi:
|
|
|
69
2226
|
_content_type: Optional[StrictStr] = None,
|
|
70
2227
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
71
2228
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
72
|
-
) ->
|
|
2229
|
+
) -> KnowledgeEntityGetManyResponse:
|
|
73
2230
|
"""Get Knowledge Entities
|
|
74
2231
|
|
|
75
2232
|
Get one or many knowledge Entities, up to 10mb per request
|
|
@@ -119,9 +2276,9 @@ class KnowledgeApi:
|
|
|
119
2276
|
)
|
|
120
2277
|
|
|
121
2278
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
122
|
-
'200': "
|
|
123
|
-
'400': "
|
|
124
|
-
'503': "
|
|
2279
|
+
'200': "KnowledgeEntityGetManyResponse",
|
|
2280
|
+
'400': "KnowledgeEntityGetManyResponse",
|
|
2281
|
+
'503': "KnowledgeEntityGetManyResponse",
|
|
125
2282
|
}
|
|
126
2283
|
response_data = self.api_client.call_api(
|
|
127
2284
|
*_param,
|
|
@@ -154,7 +2311,7 @@ class KnowledgeApi:
|
|
|
154
2311
|
_content_type: Optional[StrictStr] = None,
|
|
155
2312
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
156
2313
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
157
|
-
) -> ApiResponse[
|
|
2314
|
+
) -> ApiResponse[KnowledgeEntityGetManyResponse]:
|
|
158
2315
|
"""Get Knowledge Entities
|
|
159
2316
|
|
|
160
2317
|
Get one or many knowledge Entities, up to 10mb per request
|
|
@@ -204,9 +2361,9 @@ class KnowledgeApi:
|
|
|
204
2361
|
)
|
|
205
2362
|
|
|
206
2363
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
207
|
-
'200': "
|
|
208
|
-
'400': "
|
|
209
|
-
'503': "
|
|
2364
|
+
'200': "KnowledgeEntityGetManyResponse",
|
|
2365
|
+
'400': "KnowledgeEntityGetManyResponse",
|
|
2366
|
+
'503': "KnowledgeEntityGetManyResponse",
|
|
210
2367
|
}
|
|
211
2368
|
response_data = self.api_client.call_api(
|
|
212
2369
|
*_param,
|
|
@@ -289,9 +2446,9 @@ class KnowledgeApi:
|
|
|
289
2446
|
)
|
|
290
2447
|
|
|
291
2448
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
292
|
-
'200': "
|
|
293
|
-
'400': "
|
|
294
|
-
'503': "
|
|
2449
|
+
'200': "KnowledgeEntityGetManyResponse",
|
|
2450
|
+
'400': "KnowledgeEntityGetManyResponse",
|
|
2451
|
+
'503': "KnowledgeEntityGetManyResponse",
|
|
295
2452
|
}
|
|
296
2453
|
response_data = self.api_client.call_api(
|
|
297
2454
|
*_param,
|
|
@@ -389,7 +2546,7 @@ class KnowledgeApi:
|
|
|
389
2546
|
@validate_call
|
|
390
2547
|
def api_v1_knowledge_entity_post(
|
|
391
2548
|
self,
|
|
392
|
-
request: Annotated[
|
|
2549
|
+
request: Annotated[KnowledgeEntityCreateRequest, Field(description="Body")],
|
|
393
2550
|
_request_timeout: Union[
|
|
394
2551
|
None,
|
|
395
2552
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -402,13 +2559,13 @@ class KnowledgeApi:
|
|
|
402
2559
|
_content_type: Optional[StrictStr] = None,
|
|
403
2560
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
404
2561
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
405
|
-
) ->
|
|
2562
|
+
) -> KnowledgeEntityCreateResponse:
|
|
406
2563
|
"""Create Knowledge Entities
|
|
407
2564
|
|
|
408
2565
|
Create one or many knowledge Entities, up to 10mb per request
|
|
409
2566
|
|
|
410
2567
|
:param request: Body (required)
|
|
411
|
-
:type request:
|
|
2568
|
+
:type request: KnowledgeEntityCreateRequest
|
|
412
2569
|
:param _request_timeout: timeout setting for this request. If one
|
|
413
2570
|
number provided, it will be total request
|
|
414
2571
|
timeout. It can also be a pair (tuple) of
|
|
@@ -440,9 +2597,9 @@ class KnowledgeApi:
|
|
|
440
2597
|
)
|
|
441
2598
|
|
|
442
2599
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
443
|
-
'200': "
|
|
444
|
-
'400': "
|
|
445
|
-
'503': "
|
|
2600
|
+
'200': "KnowledgeEntityCreateResponse",
|
|
2601
|
+
'400': "KnowledgeEntityCreateResponse",
|
|
2602
|
+
'503': "KnowledgeEntityCreateResponse",
|
|
446
2603
|
}
|
|
447
2604
|
response_data = self.api_client.call_api(
|
|
448
2605
|
*_param,
|
|
@@ -458,7 +2615,7 @@ class KnowledgeApi:
|
|
|
458
2615
|
@validate_call
|
|
459
2616
|
def api_v1_knowledge_entity_post_with_http_info(
|
|
460
2617
|
self,
|
|
461
|
-
request: Annotated[
|
|
2618
|
+
request: Annotated[KnowledgeEntityCreateRequest, Field(description="Body")],
|
|
462
2619
|
_request_timeout: Union[
|
|
463
2620
|
None,
|
|
464
2621
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -471,13 +2628,13 @@ class KnowledgeApi:
|
|
|
471
2628
|
_content_type: Optional[StrictStr] = None,
|
|
472
2629
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
473
2630
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
474
|
-
) -> ApiResponse[
|
|
2631
|
+
) -> ApiResponse[KnowledgeEntityCreateResponse]:
|
|
475
2632
|
"""Create Knowledge Entities
|
|
476
2633
|
|
|
477
2634
|
Create one or many knowledge Entities, up to 10mb per request
|
|
478
2635
|
|
|
479
2636
|
:param request: Body (required)
|
|
480
|
-
:type request:
|
|
2637
|
+
:type request: KnowledgeEntityCreateRequest
|
|
481
2638
|
:param _request_timeout: timeout setting for this request. If one
|
|
482
2639
|
number provided, it will be total request
|
|
483
2640
|
timeout. It can also be a pair (tuple) of
|
|
@@ -509,9 +2666,9 @@ class KnowledgeApi:
|
|
|
509
2666
|
)
|
|
510
2667
|
|
|
511
2668
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
512
|
-
'200': "
|
|
513
|
-
'400': "
|
|
514
|
-
'503': "
|
|
2669
|
+
'200': "KnowledgeEntityCreateResponse",
|
|
2670
|
+
'400': "KnowledgeEntityCreateResponse",
|
|
2671
|
+
'503': "KnowledgeEntityCreateResponse",
|
|
515
2672
|
}
|
|
516
2673
|
response_data = self.api_client.call_api(
|
|
517
2674
|
*_param,
|
|
@@ -527,7 +2684,7 @@ class KnowledgeApi:
|
|
|
527
2684
|
@validate_call
|
|
528
2685
|
def api_v1_knowledge_entity_post_without_preload_content(
|
|
529
2686
|
self,
|
|
530
|
-
request: Annotated[
|
|
2687
|
+
request: Annotated[KnowledgeEntityCreateRequest, Field(description="Body")],
|
|
531
2688
|
_request_timeout: Union[
|
|
532
2689
|
None,
|
|
533
2690
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -546,7 +2703,7 @@ class KnowledgeApi:
|
|
|
546
2703
|
Create one or many knowledge Entities, up to 10mb per request
|
|
547
2704
|
|
|
548
2705
|
:param request: Body (required)
|
|
549
|
-
:type request:
|
|
2706
|
+
:type request: KnowledgeEntityCreateRequest
|
|
550
2707
|
:param _request_timeout: timeout setting for this request. If one
|
|
551
2708
|
number provided, it will be total request
|
|
552
2709
|
timeout. It can also be a pair (tuple) of
|
|
@@ -578,9 +2735,9 @@ class KnowledgeApi:
|
|
|
578
2735
|
)
|
|
579
2736
|
|
|
580
2737
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
581
|
-
'200': "
|
|
582
|
-
'400': "
|
|
583
|
-
'503': "
|
|
2738
|
+
'200': "KnowledgeEntityCreateResponse",
|
|
2739
|
+
'400': "KnowledgeEntityCreateResponse",
|
|
2740
|
+
'503': "KnowledgeEntityCreateResponse",
|
|
584
2741
|
}
|
|
585
2742
|
response_data = self.api_client.call_api(
|
|
586
2743
|
*_param,
|
|
@@ -669,7 +2826,7 @@ class KnowledgeApi:
|
|
|
669
2826
|
@validate_call
|
|
670
2827
|
def api_v1_knowledge_ingest_raw_post(
|
|
671
2828
|
self,
|
|
672
|
-
request: Annotated[
|
|
2829
|
+
request: Annotated[KnowledgeIngestRawRequest, Field(description="Body")],
|
|
673
2830
|
_request_timeout: Union[
|
|
674
2831
|
None,
|
|
675
2832
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -682,13 +2839,13 @@ class KnowledgeApi:
|
|
|
682
2839
|
_content_type: Optional[StrictStr] = None,
|
|
683
2840
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
684
2841
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
685
|
-
) ->
|
|
2842
|
+
) -> KnowledgeIngestRawResponse:
|
|
686
2843
|
"""Ingest raw source payloads
|
|
687
2844
|
|
|
688
2845
|
Append raw payloads into knowledge.ingest_raw (deduped by conflict key)
|
|
689
2846
|
|
|
690
2847
|
:param request: Body (required)
|
|
691
|
-
:type request:
|
|
2848
|
+
:type request: KnowledgeIngestRawRequest
|
|
692
2849
|
:param _request_timeout: timeout setting for this request. If one
|
|
693
2850
|
number provided, it will be total request
|
|
694
2851
|
timeout. It can also be a pair (tuple) of
|
|
@@ -720,9 +2877,9 @@ class KnowledgeApi:
|
|
|
720
2877
|
)
|
|
721
2878
|
|
|
722
2879
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
723
|
-
'200': "
|
|
724
|
-
'400': "
|
|
725
|
-
'503': "
|
|
2880
|
+
'200': "KnowledgeIngestRawResponse",
|
|
2881
|
+
'400': "KnowledgeIngestRawResponse",
|
|
2882
|
+
'503': "KnowledgeIngestRawResponse",
|
|
726
2883
|
}
|
|
727
2884
|
response_data = self.api_client.call_api(
|
|
728
2885
|
*_param,
|
|
@@ -738,7 +2895,7 @@ class KnowledgeApi:
|
|
|
738
2895
|
@validate_call
|
|
739
2896
|
def api_v1_knowledge_ingest_raw_post_with_http_info(
|
|
740
2897
|
self,
|
|
741
|
-
request: Annotated[
|
|
2898
|
+
request: Annotated[KnowledgeIngestRawRequest, Field(description="Body")],
|
|
742
2899
|
_request_timeout: Union[
|
|
743
2900
|
None,
|
|
744
2901
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -751,13 +2908,13 @@ class KnowledgeApi:
|
|
|
751
2908
|
_content_type: Optional[StrictStr] = None,
|
|
752
2909
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
753
2910
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
754
|
-
) -> ApiResponse[
|
|
2911
|
+
) -> ApiResponse[KnowledgeIngestRawResponse]:
|
|
755
2912
|
"""Ingest raw source payloads
|
|
756
2913
|
|
|
757
2914
|
Append raw payloads into knowledge.ingest_raw (deduped by conflict key)
|
|
758
2915
|
|
|
759
2916
|
:param request: Body (required)
|
|
760
|
-
:type request:
|
|
2917
|
+
:type request: KnowledgeIngestRawRequest
|
|
761
2918
|
:param _request_timeout: timeout setting for this request. If one
|
|
762
2919
|
number provided, it will be total request
|
|
763
2920
|
timeout. It can also be a pair (tuple) of
|
|
@@ -789,9 +2946,9 @@ class KnowledgeApi:
|
|
|
789
2946
|
)
|
|
790
2947
|
|
|
791
2948
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
792
|
-
'200': "
|
|
793
|
-
'400': "
|
|
794
|
-
'503': "
|
|
2949
|
+
'200': "KnowledgeIngestRawResponse",
|
|
2950
|
+
'400': "KnowledgeIngestRawResponse",
|
|
2951
|
+
'503': "KnowledgeIngestRawResponse",
|
|
795
2952
|
}
|
|
796
2953
|
response_data = self.api_client.call_api(
|
|
797
2954
|
*_param,
|
|
@@ -807,7 +2964,7 @@ class KnowledgeApi:
|
|
|
807
2964
|
@validate_call
|
|
808
2965
|
def api_v1_knowledge_ingest_raw_post_without_preload_content(
|
|
809
2966
|
self,
|
|
810
|
-
request: Annotated[
|
|
2967
|
+
request: Annotated[KnowledgeIngestRawRequest, Field(description="Body")],
|
|
811
2968
|
_request_timeout: Union[
|
|
812
2969
|
None,
|
|
813
2970
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -826,7 +2983,7 @@ class KnowledgeApi:
|
|
|
826
2983
|
Append raw payloads into knowledge.ingest_raw (deduped by conflict key)
|
|
827
2984
|
|
|
828
2985
|
:param request: Body (required)
|
|
829
|
-
:type request:
|
|
2986
|
+
:type request: KnowledgeIngestRawRequest
|
|
830
2987
|
:param _request_timeout: timeout setting for this request. If one
|
|
831
2988
|
number provided, it will be total request
|
|
832
2989
|
timeout. It can also be a pair (tuple) of
|
|
@@ -858,9 +3015,9 @@ class KnowledgeApi:
|
|
|
858
3015
|
)
|
|
859
3016
|
|
|
860
3017
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
861
|
-
'200': "
|
|
862
|
-
'400': "
|
|
863
|
-
'503': "
|
|
3018
|
+
'200': "KnowledgeIngestRawResponse",
|
|
3019
|
+
'400': "KnowledgeIngestRawResponse",
|
|
3020
|
+
'503': "KnowledgeIngestRawResponse",
|
|
864
3021
|
}
|
|
865
3022
|
response_data = self.api_client.call_api(
|
|
866
3023
|
*_param,
|
|
@@ -961,7 +3118,7 @@ class KnowledgeApi:
|
|
|
961
3118
|
_content_type: Optional[StrictStr] = None,
|
|
962
3119
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
963
3120
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
964
|
-
) ->
|
|
3121
|
+
) -> KnowledgeKindResponse:
|
|
965
3122
|
"""Get Knowledge Kinds
|
|
966
3123
|
|
|
967
3124
|
Knowledge kinds are an enum of the valid knowledg entity 'kind' field
|
|
@@ -996,9 +3153,9 @@ class KnowledgeApi:
|
|
|
996
3153
|
)
|
|
997
3154
|
|
|
998
3155
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
999
|
-
'200': "
|
|
1000
|
-
'400': "
|
|
1001
|
-
'503': "
|
|
3156
|
+
'200': "KnowledgeKindResponse",
|
|
3157
|
+
'400': "KnowledgeKindResponse",
|
|
3158
|
+
'503': "KnowledgeKindResponse",
|
|
1002
3159
|
}
|
|
1003
3160
|
response_data = self.api_client.call_api(
|
|
1004
3161
|
*_param,
|
|
@@ -1026,7 +3183,7 @@ class KnowledgeApi:
|
|
|
1026
3183
|
_content_type: Optional[StrictStr] = None,
|
|
1027
3184
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1028
3185
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1029
|
-
) -> ApiResponse[
|
|
3186
|
+
) -> ApiResponse[KnowledgeKindResponse]:
|
|
1030
3187
|
"""Get Knowledge Kinds
|
|
1031
3188
|
|
|
1032
3189
|
Knowledge kinds are an enum of the valid knowledg entity 'kind' field
|
|
@@ -1061,9 +3218,9 @@ class KnowledgeApi:
|
|
|
1061
3218
|
)
|
|
1062
3219
|
|
|
1063
3220
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1064
|
-
'200': "
|
|
1065
|
-
'400': "
|
|
1066
|
-
'503': "
|
|
3221
|
+
'200': "KnowledgeKindResponse",
|
|
3222
|
+
'400': "KnowledgeKindResponse",
|
|
3223
|
+
'503': "KnowledgeKindResponse",
|
|
1067
3224
|
}
|
|
1068
3225
|
response_data = self.api_client.call_api(
|
|
1069
3226
|
*_param,
|
|
@@ -1126,9 +3283,9 @@ class KnowledgeApi:
|
|
|
1126
3283
|
)
|
|
1127
3284
|
|
|
1128
3285
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1129
|
-
'200': "
|
|
1130
|
-
'400': "
|
|
1131
|
-
'503': "
|
|
3286
|
+
'200': "KnowledgeKindResponse",
|
|
3287
|
+
'400': "KnowledgeKindResponse",
|
|
3288
|
+
'503': "KnowledgeKindResponse",
|
|
1132
3289
|
}
|
|
1133
3290
|
response_data = self.api_client.call_api(
|
|
1134
3291
|
*_param,
|
|
@@ -1216,7 +3373,7 @@ class KnowledgeApi:
|
|
|
1216
3373
|
_content_type: Optional[StrictStr] = None,
|
|
1217
3374
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1218
3375
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1219
|
-
) ->
|
|
3376
|
+
) -> KnowledgeEntitySchemasResponse:
|
|
1220
3377
|
"""Get Knowledge Entity Schemas
|
|
1221
3378
|
|
|
1222
3379
|
|
|
@@ -1256,9 +3413,9 @@ class KnowledgeApi:
|
|
|
1256
3413
|
)
|
|
1257
3414
|
|
|
1258
3415
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1259
|
-
'200': "
|
|
1260
|
-
'400': "
|
|
1261
|
-
'503': "
|
|
3416
|
+
'200': "KnowledgeEntitySchemasResponse",
|
|
3417
|
+
'400': "KnowledgeEntitySchemasResponse",
|
|
3418
|
+
'503': "KnowledgeEntitySchemasResponse",
|
|
1262
3419
|
}
|
|
1263
3420
|
response_data = self.api_client.call_api(
|
|
1264
3421
|
*_param,
|
|
@@ -1288,7 +3445,7 @@ class KnowledgeApi:
|
|
|
1288
3445
|
_content_type: Optional[StrictStr] = None,
|
|
1289
3446
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1290
3447
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1291
|
-
) -> ApiResponse[
|
|
3448
|
+
) -> ApiResponse[KnowledgeEntitySchemasResponse]:
|
|
1292
3449
|
"""Get Knowledge Entity Schemas
|
|
1293
3450
|
|
|
1294
3451
|
|
|
@@ -1328,9 +3485,9 @@ class KnowledgeApi:
|
|
|
1328
3485
|
)
|
|
1329
3486
|
|
|
1330
3487
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1331
|
-
'200': "
|
|
1332
|
-
'400': "
|
|
1333
|
-
'503': "
|
|
3488
|
+
'200': "KnowledgeEntitySchemasResponse",
|
|
3489
|
+
'400': "KnowledgeEntitySchemasResponse",
|
|
3490
|
+
'503': "KnowledgeEntitySchemasResponse",
|
|
1334
3491
|
}
|
|
1335
3492
|
response_data = self.api_client.call_api(
|
|
1336
3493
|
*_param,
|
|
@@ -1400,9 +3557,9 @@ class KnowledgeApi:
|
|
|
1400
3557
|
)
|
|
1401
3558
|
|
|
1402
3559
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1403
|
-
'200': "
|
|
1404
|
-
'400': "
|
|
1405
|
-
'503': "
|
|
3560
|
+
'200': "KnowledgeEntitySchemasResponse",
|
|
3561
|
+
'400': "KnowledgeEntitySchemasResponse",
|
|
3562
|
+
'503': "KnowledgeEntitySchemasResponse",
|
|
1406
3563
|
}
|
|
1407
3564
|
response_data = self.api_client.call_api(
|
|
1408
3565
|
*_param,
|
|
@@ -1486,7 +3643,7 @@ class KnowledgeApi:
|
|
|
1486
3643
|
@validate_call
|
|
1487
3644
|
def api_v1_knowledge_schema_post(
|
|
1488
3645
|
self,
|
|
1489
|
-
request: Annotated[
|
|
3646
|
+
request: Annotated[KnowledgeEntitySchemaUpsertRequest, Field(description="Body")],
|
|
1490
3647
|
_request_timeout: Union[
|
|
1491
3648
|
None,
|
|
1492
3649
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1499,12 +3656,12 @@ class KnowledgeApi:
|
|
|
1499
3656
|
_content_type: Optional[StrictStr] = None,
|
|
1500
3657
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1501
3658
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1502
|
-
) ->
|
|
3659
|
+
) -> KnowledgeEntitySchemasUpsertResponse:
|
|
1503
3660
|
"""Upsert a Knowledge Entity Schema
|
|
1504
3661
|
|
|
1505
3662
|
|
|
1506
3663
|
:param request: Body (required)
|
|
1507
|
-
:type request:
|
|
3664
|
+
:type request: KnowledgeEntitySchemaUpsertRequest
|
|
1508
3665
|
:param _request_timeout: timeout setting for this request. If one
|
|
1509
3666
|
number provided, it will be total request
|
|
1510
3667
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1536,9 +3693,9 @@ class KnowledgeApi:
|
|
|
1536
3693
|
)
|
|
1537
3694
|
|
|
1538
3695
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1539
|
-
'200': "
|
|
1540
|
-
'400': "
|
|
1541
|
-
'503': "
|
|
3696
|
+
'200': "KnowledgeEntitySchemasUpsertResponse",
|
|
3697
|
+
'400': "KnowledgeEntitySchemasUpsertResponse",
|
|
3698
|
+
'503': "KnowledgeEntitySchemasUpsertResponse",
|
|
1542
3699
|
}
|
|
1543
3700
|
response_data = self.api_client.call_api(
|
|
1544
3701
|
*_param,
|
|
@@ -1554,7 +3711,7 @@ class KnowledgeApi:
|
|
|
1554
3711
|
@validate_call
|
|
1555
3712
|
def api_v1_knowledge_schema_post_with_http_info(
|
|
1556
3713
|
self,
|
|
1557
|
-
request: Annotated[
|
|
3714
|
+
request: Annotated[KnowledgeEntitySchemaUpsertRequest, Field(description="Body")],
|
|
1558
3715
|
_request_timeout: Union[
|
|
1559
3716
|
None,
|
|
1560
3717
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1567,12 +3724,12 @@ class KnowledgeApi:
|
|
|
1567
3724
|
_content_type: Optional[StrictStr] = None,
|
|
1568
3725
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1569
3726
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1570
|
-
) -> ApiResponse[
|
|
3727
|
+
) -> ApiResponse[KnowledgeEntitySchemasUpsertResponse]:
|
|
1571
3728
|
"""Upsert a Knowledge Entity Schema
|
|
1572
3729
|
|
|
1573
3730
|
|
|
1574
3731
|
:param request: Body (required)
|
|
1575
|
-
:type request:
|
|
3732
|
+
:type request: KnowledgeEntitySchemaUpsertRequest
|
|
1576
3733
|
:param _request_timeout: timeout setting for this request. If one
|
|
1577
3734
|
number provided, it will be total request
|
|
1578
3735
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1604,9 +3761,9 @@ class KnowledgeApi:
|
|
|
1604
3761
|
)
|
|
1605
3762
|
|
|
1606
3763
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1607
|
-
'200': "
|
|
1608
|
-
'400': "
|
|
1609
|
-
'503': "
|
|
3764
|
+
'200': "KnowledgeEntitySchemasUpsertResponse",
|
|
3765
|
+
'400': "KnowledgeEntitySchemasUpsertResponse",
|
|
3766
|
+
'503': "KnowledgeEntitySchemasUpsertResponse",
|
|
1610
3767
|
}
|
|
1611
3768
|
response_data = self.api_client.call_api(
|
|
1612
3769
|
*_param,
|
|
@@ -1622,7 +3779,7 @@ class KnowledgeApi:
|
|
|
1622
3779
|
@validate_call
|
|
1623
3780
|
def api_v1_knowledge_schema_post_without_preload_content(
|
|
1624
3781
|
self,
|
|
1625
|
-
request: Annotated[
|
|
3782
|
+
request: Annotated[KnowledgeEntitySchemaUpsertRequest, Field(description="Body")],
|
|
1626
3783
|
_request_timeout: Union[
|
|
1627
3784
|
None,
|
|
1628
3785
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1640,7 +3797,7 @@ class KnowledgeApi:
|
|
|
1640
3797
|
|
|
1641
3798
|
|
|
1642
3799
|
:param request: Body (required)
|
|
1643
|
-
:type request:
|
|
3800
|
+
:type request: KnowledgeEntitySchemaUpsertRequest
|
|
1644
3801
|
:param _request_timeout: timeout setting for this request. If one
|
|
1645
3802
|
number provided, it will be total request
|
|
1646
3803
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1672,9 +3829,9 @@ class KnowledgeApi:
|
|
|
1672
3829
|
)
|
|
1673
3830
|
|
|
1674
3831
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1675
|
-
'200': "
|
|
1676
|
-
'400': "
|
|
1677
|
-
'503': "
|
|
3832
|
+
'200': "KnowledgeEntitySchemasUpsertResponse",
|
|
3833
|
+
'400': "KnowledgeEntitySchemasUpsertResponse",
|
|
3834
|
+
'503': "KnowledgeEntitySchemasUpsertResponse",
|
|
1678
3835
|
}
|
|
1679
3836
|
response_data = self.api_client.call_api(
|
|
1680
3837
|
*_param,
|
|
@@ -1763,7 +3920,7 @@ class KnowledgeApi:
|
|
|
1763
3920
|
_content_type: Optional[StrictStr] = None,
|
|
1764
3921
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1765
3922
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1766
|
-
) ->
|
|
3923
|
+
) -> KnowledgeTypeResponse:
|
|
1767
3924
|
"""Get Knowledge Types
|
|
1768
3925
|
|
|
1769
3926
|
Knowledge Types are a sub-classification under kind.
|
|
@@ -1798,9 +3955,9 @@ class KnowledgeApi:
|
|
|
1798
3955
|
)
|
|
1799
3956
|
|
|
1800
3957
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1801
|
-
'200': "
|
|
1802
|
-
'400': "
|
|
1803
|
-
'503': "
|
|
3958
|
+
'200': "KnowledgeTypeResponse",
|
|
3959
|
+
'400': "KnowledgeTypeResponse",
|
|
3960
|
+
'503': "KnowledgeTypeResponse",
|
|
1804
3961
|
}
|
|
1805
3962
|
response_data = self.api_client.call_api(
|
|
1806
3963
|
*_param,
|
|
@@ -1828,7 +3985,7 @@ class KnowledgeApi:
|
|
|
1828
3985
|
_content_type: Optional[StrictStr] = None,
|
|
1829
3986
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1830
3987
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1831
|
-
) -> ApiResponse[
|
|
3988
|
+
) -> ApiResponse[KnowledgeTypeResponse]:
|
|
1832
3989
|
"""Get Knowledge Types
|
|
1833
3990
|
|
|
1834
3991
|
Knowledge Types are a sub-classification under kind.
|
|
@@ -1863,9 +4020,9 @@ class KnowledgeApi:
|
|
|
1863
4020
|
)
|
|
1864
4021
|
|
|
1865
4022
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1866
|
-
'200': "
|
|
1867
|
-
'400': "
|
|
1868
|
-
'503': "
|
|
4023
|
+
'200': "KnowledgeTypeResponse",
|
|
4024
|
+
'400': "KnowledgeTypeResponse",
|
|
4025
|
+
'503': "KnowledgeTypeResponse",
|
|
1869
4026
|
}
|
|
1870
4027
|
response_data = self.api_client.call_api(
|
|
1871
4028
|
*_param,
|
|
@@ -1928,9 +4085,9 @@ class KnowledgeApi:
|
|
|
1928
4085
|
)
|
|
1929
4086
|
|
|
1930
4087
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1931
|
-
'200': "
|
|
1932
|
-
'400': "
|
|
1933
|
-
'503': "
|
|
4088
|
+
'200': "KnowledgeTypeResponse",
|
|
4089
|
+
'400': "KnowledgeTypeResponse",
|
|
4090
|
+
'503': "KnowledgeTypeResponse",
|
|
1934
4091
|
}
|
|
1935
4092
|
response_data = self.api_client.call_api(
|
|
1936
4093
|
*_param,
|
|
@@ -2004,7 +4161,7 @@ class KnowledgeApi:
|
|
|
2004
4161
|
@validate_call
|
|
2005
4162
|
def api_v1_knowledge_type_post(
|
|
2006
4163
|
self,
|
|
2007
|
-
request: Annotated[
|
|
4164
|
+
request: Annotated[KnowledgeEntityUpsertRequest, Field(description="Body")],
|
|
2008
4165
|
_request_timeout: Union[
|
|
2009
4166
|
None,
|
|
2010
4167
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2017,13 +4174,13 @@ class KnowledgeApi:
|
|
|
2017
4174
|
_content_type: Optional[StrictStr] = None,
|
|
2018
4175
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2019
4176
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2020
|
-
) ->
|
|
4177
|
+
) -> KnowledgeTypeResponse:
|
|
2021
4178
|
"""Get Knowledge Types
|
|
2022
4179
|
|
|
2023
4180
|
Knowledge Types are a sub-classification under kind.
|
|
2024
4181
|
|
|
2025
4182
|
:param request: Body (required)
|
|
2026
|
-
:type request:
|
|
4183
|
+
:type request: KnowledgeEntityUpsertRequest
|
|
2027
4184
|
:param _request_timeout: timeout setting for this request. If one
|
|
2028
4185
|
number provided, it will be total request
|
|
2029
4186
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2055,9 +4212,9 @@ class KnowledgeApi:
|
|
|
2055
4212
|
)
|
|
2056
4213
|
|
|
2057
4214
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2058
|
-
'200': "
|
|
2059
|
-
'400': "
|
|
2060
|
-
'503': "
|
|
4215
|
+
'200': "KnowledgeTypeResponse",
|
|
4216
|
+
'400': "KnowledgeTypeResponse",
|
|
4217
|
+
'503': "KnowledgeTypeResponse",
|
|
2061
4218
|
}
|
|
2062
4219
|
response_data = self.api_client.call_api(
|
|
2063
4220
|
*_param,
|
|
@@ -2073,7 +4230,7 @@ class KnowledgeApi:
|
|
|
2073
4230
|
@validate_call
|
|
2074
4231
|
def api_v1_knowledge_type_post_with_http_info(
|
|
2075
4232
|
self,
|
|
2076
|
-
request: Annotated[
|
|
4233
|
+
request: Annotated[KnowledgeEntityUpsertRequest, Field(description="Body")],
|
|
2077
4234
|
_request_timeout: Union[
|
|
2078
4235
|
None,
|
|
2079
4236
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2086,13 +4243,13 @@ class KnowledgeApi:
|
|
|
2086
4243
|
_content_type: Optional[StrictStr] = None,
|
|
2087
4244
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2088
4245
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2089
|
-
) -> ApiResponse[
|
|
4246
|
+
) -> ApiResponse[KnowledgeTypeResponse]:
|
|
2090
4247
|
"""Get Knowledge Types
|
|
2091
4248
|
|
|
2092
4249
|
Knowledge Types are a sub-classification under kind.
|
|
2093
4250
|
|
|
2094
4251
|
:param request: Body (required)
|
|
2095
|
-
:type request:
|
|
4252
|
+
:type request: KnowledgeEntityUpsertRequest
|
|
2096
4253
|
:param _request_timeout: timeout setting for this request. If one
|
|
2097
4254
|
number provided, it will be total request
|
|
2098
4255
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2124,9 +4281,9 @@ class KnowledgeApi:
|
|
|
2124
4281
|
)
|
|
2125
4282
|
|
|
2126
4283
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2127
|
-
'200': "
|
|
2128
|
-
'400': "
|
|
2129
|
-
'503': "
|
|
4284
|
+
'200': "KnowledgeTypeResponse",
|
|
4285
|
+
'400': "KnowledgeTypeResponse",
|
|
4286
|
+
'503': "KnowledgeTypeResponse",
|
|
2130
4287
|
}
|
|
2131
4288
|
response_data = self.api_client.call_api(
|
|
2132
4289
|
*_param,
|
|
@@ -2142,7 +4299,7 @@ class KnowledgeApi:
|
|
|
2142
4299
|
@validate_call
|
|
2143
4300
|
def api_v1_knowledge_type_post_without_preload_content(
|
|
2144
4301
|
self,
|
|
2145
|
-
request: Annotated[
|
|
4302
|
+
request: Annotated[KnowledgeEntityUpsertRequest, Field(description="Body")],
|
|
2146
4303
|
_request_timeout: Union[
|
|
2147
4304
|
None,
|
|
2148
4305
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2161,7 +4318,7 @@ class KnowledgeApi:
|
|
|
2161
4318
|
Knowledge Types are a sub-classification under kind.
|
|
2162
4319
|
|
|
2163
4320
|
:param request: Body (required)
|
|
2164
|
-
:type request:
|
|
4321
|
+
:type request: KnowledgeEntityUpsertRequest
|
|
2165
4322
|
:param _request_timeout: timeout setting for this request. If one
|
|
2166
4323
|
number provided, it will be total request
|
|
2167
4324
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2193,9 +4350,9 @@ class KnowledgeApi:
|
|
|
2193
4350
|
)
|
|
2194
4351
|
|
|
2195
4352
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2196
|
-
'200': "
|
|
2197
|
-
'400': "
|
|
2198
|
-
'503': "
|
|
4353
|
+
'200': "KnowledgeTypeResponse",
|
|
4354
|
+
'400': "KnowledgeTypeResponse",
|
|
4355
|
+
'503': "KnowledgeTypeResponse",
|
|
2199
4356
|
}
|
|
2200
4357
|
response_data = self.api_client.call_api(
|
|
2201
4358
|
*_param,
|