fds.sdk.VectorData 0.0.1__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.
- fds/__init__.py +0 -0
- fds/sdk/VectorData/__init__.py +28 -0
- fds/sdk/VectorData/api/__init__.py +3 -0
- fds/sdk/VectorData/api/meta_api.py +959 -0
- fds/sdk/VectorData/api/vector_api.py +564 -0
- fds/sdk/VectorData/api_client.py +939 -0
- fds/sdk/VectorData/apis/__init__.py +18 -0
- fds/sdk/VectorData/configuration.py +496 -0
- fds/sdk/VectorData/exceptions.py +160 -0
- fds/sdk/VectorData/model/__init__.py +5 -0
- fds/sdk/VectorData/model/chunk_text_response.py +268 -0
- fds/sdk/VectorData/model/chunk_text_response_meta.py +262 -0
- fds/sdk/VectorData/model/chunk_text_response_meta_pagination.py +260 -0
- fds/sdk/VectorData/model/chunk_text_result.py +284 -0
- fds/sdk/VectorData/model/document_types.py +268 -0
- fds/sdk/VectorData/model/document_types_response.py +262 -0
- fds/sdk/VectorData/model/error_object.py +268 -0
- fds/sdk/VectorData/model/error_response.py +262 -0
- fds/sdk/VectorData/model/meta.py +260 -0
- fds/sdk/VectorData/model/schemas.py +274 -0
- fds/sdk/VectorData/model/schemas_response.py +262 -0
- fds/sdk/VectorData/model/source.py +268 -0
- fds/sdk/VectorData/model/source_response.py +262 -0
- fds/sdk/VectorData/model/themes.py +274 -0
- fds/sdk/VectorData/model/themes_response.py +262 -0
- fds/sdk/VectorData/model/vector_data_request.py +274 -0
- fds/sdk/VectorData/model/vector_data_request_data.py +313 -0
- fds/sdk/VectorData/model/vector_data_response.py +268 -0
- fds/sdk/VectorData/model/vector_data_response_meta.py +256 -0
- fds/sdk/VectorData/model/vector_data_result.py +296 -0
- fds/sdk/VectorData/model_utils.py +2062 -0
- fds/sdk/VectorData/models/__init__.py +31 -0
- fds/sdk/VectorData/rest.py +347 -0
- fds/sdk/__init__.py +0 -0
- fds_sdk_vectordata-0.0.1.dist-info/METADATA +349 -0
- fds_sdk_vectordata-0.0.1.dist-info/RECORD +39 -0
- fds_sdk_vectordata-0.0.1.dist-info/WHEEL +5 -0
- fds_sdk_vectordata-0.0.1.dist-info/licenses/LICENSE +202 -0
- fds_sdk_vectordata-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Vector Data API
|
|
3
|
+
|
|
4
|
+
The Vector Data API provides streamlined access to vector data through its defined endpoints. It supports functionalities such as: Retrieving detailed vector data based on user-defined parameters. Efficiently processing associated text data for enhanced performance. This API is designed to enable developers to integrate vector data into their applications, ensuring flexibility and performance while leveraging the specified endpoint functionalities. # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
|
+
Contact: api@factset.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
import re # noqa: F401
|
|
13
|
+
import sys # noqa: F401
|
|
14
|
+
from multiprocessing.pool import ApplyResult
|
|
15
|
+
import typing
|
|
16
|
+
|
|
17
|
+
from fds.sdk.VectorData.api_client import ApiClient, Endpoint as _Endpoint
|
|
18
|
+
from fds.sdk.VectorData.model_utils import ( # noqa: F401
|
|
19
|
+
check_allowed_values,
|
|
20
|
+
check_validations,
|
|
21
|
+
date,
|
|
22
|
+
datetime,
|
|
23
|
+
file_type,
|
|
24
|
+
none_type,
|
|
25
|
+
validate_and_convert_types
|
|
26
|
+
)
|
|
27
|
+
from fds.sdk.VectorData.exceptions import ApiException
|
|
28
|
+
from fds.sdk.VectorData.model.chunk_text_response import ChunkTextResponse
|
|
29
|
+
from fds.sdk.VectorData.model.error_response import ErrorResponse
|
|
30
|
+
from fds.sdk.VectorData.model.vector_data_request import VectorDataRequest
|
|
31
|
+
from fds.sdk.VectorData.model.vector_data_response import VectorDataResponse
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class VectorApi(object):
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def __init__(self, api_client=None):
|
|
45
|
+
if api_client is None:
|
|
46
|
+
api_client = ApiClient()
|
|
47
|
+
self.api_client = api_client
|
|
48
|
+
|
|
49
|
+
self.get_count_endpoint = _Endpoint(
|
|
50
|
+
settings={
|
|
51
|
+
'response_type': (
|
|
52
|
+
{ 200: (ChunkTextResponse,), 400: (ErrorResponse,), 401: (ErrorResponse,), 403: (ErrorResponse,), 500: (ErrorResponse,), },
|
|
53
|
+
None
|
|
54
|
+
),
|
|
55
|
+
'auth': [
|
|
56
|
+
'FactSetApiKey',
|
|
57
|
+
'FactSetOAuth2'
|
|
58
|
+
],
|
|
59
|
+
'endpoint_path': '/chunk-text',
|
|
60
|
+
'operation_id': 'get_count',
|
|
61
|
+
'http_method': 'GET',
|
|
62
|
+
'servers': None,
|
|
63
|
+
},
|
|
64
|
+
params_map={
|
|
65
|
+
'all': [
|
|
66
|
+
'vector_id',
|
|
67
|
+
'pagination_limit',
|
|
68
|
+
'pagination_offset',
|
|
69
|
+
],
|
|
70
|
+
'required': [
|
|
71
|
+
'vector_id',
|
|
72
|
+
],
|
|
73
|
+
'nullable': [
|
|
74
|
+
],
|
|
75
|
+
'enum': [
|
|
76
|
+
],
|
|
77
|
+
'validation': [
|
|
78
|
+
'vector_id',
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
root_map={
|
|
82
|
+
'validations': {
|
|
83
|
+
('vector_id',): {
|
|
84
|
+
|
|
85
|
+
'max_items': 50,
|
|
86
|
+
'min_items': 1,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
'allowed_values': {
|
|
90
|
+
},
|
|
91
|
+
'openapi_types': {
|
|
92
|
+
'vector_id':
|
|
93
|
+
([str],),
|
|
94
|
+
'pagination_limit':
|
|
95
|
+
(int,),
|
|
96
|
+
'pagination_offset':
|
|
97
|
+
(int,),
|
|
98
|
+
},
|
|
99
|
+
'attribute_map': {
|
|
100
|
+
'vector_id': 'vectorId',
|
|
101
|
+
'pagination_limit': '_paginationLimit',
|
|
102
|
+
'pagination_offset': '_paginationOffset',
|
|
103
|
+
},
|
|
104
|
+
'location_map': {
|
|
105
|
+
'vector_id': 'query',
|
|
106
|
+
'pagination_limit': 'query',
|
|
107
|
+
'pagination_offset': 'query',
|
|
108
|
+
},
|
|
109
|
+
'collection_format_map': {
|
|
110
|
+
'vector_id': 'multi',
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
headers_map={
|
|
114
|
+
'accept': [
|
|
115
|
+
'application/json'
|
|
116
|
+
],
|
|
117
|
+
'content_type': [],
|
|
118
|
+
},
|
|
119
|
+
api_client=api_client
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
self.post_vector_endpoint = _Endpoint(
|
|
123
|
+
settings={
|
|
124
|
+
'response_type': (
|
|
125
|
+
{ 200: (VectorDataResponse,), 400: (ErrorResponse,), 401: (ErrorResponse,), 403: (ErrorResponse,), 500: (ErrorResponse,), },
|
|
126
|
+
None
|
|
127
|
+
),
|
|
128
|
+
'auth': [
|
|
129
|
+
'FactSetApiKey',
|
|
130
|
+
'FactSetOAuth2'
|
|
131
|
+
],
|
|
132
|
+
'endpoint_path': '/data',
|
|
133
|
+
'operation_id': 'post_vector',
|
|
134
|
+
'http_method': 'POST',
|
|
135
|
+
'servers': None,
|
|
136
|
+
},
|
|
137
|
+
params_map={
|
|
138
|
+
'all': [
|
|
139
|
+
'vector_data_request',
|
|
140
|
+
],
|
|
141
|
+
'required': [],
|
|
142
|
+
'nullable': [
|
|
143
|
+
],
|
|
144
|
+
'enum': [
|
|
145
|
+
],
|
|
146
|
+
'validation': [
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
root_map={
|
|
150
|
+
'validations': {
|
|
151
|
+
},
|
|
152
|
+
'allowed_values': {
|
|
153
|
+
},
|
|
154
|
+
'openapi_types': {
|
|
155
|
+
'vector_data_request':
|
|
156
|
+
(VectorDataRequest,),
|
|
157
|
+
},
|
|
158
|
+
'attribute_map': {
|
|
159
|
+
},
|
|
160
|
+
'location_map': {
|
|
161
|
+
'vector_data_request': 'body',
|
|
162
|
+
},
|
|
163
|
+
'collection_format_map': {
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
headers_map={
|
|
167
|
+
'accept': [
|
|
168
|
+
'application/json'
|
|
169
|
+
],
|
|
170
|
+
'content_type': [
|
|
171
|
+
'application/json'
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
api_client=api_client
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
@staticmethod
|
|
179
|
+
def apply_kwargs_defaults(kwargs, return_http_data_only, async_req):
|
|
180
|
+
kwargs["async_req"] = async_req
|
|
181
|
+
kwargs["_return_http_data_only"] = return_http_data_only
|
|
182
|
+
kwargs["_preload_content"] = kwargs.get("_preload_content", True)
|
|
183
|
+
kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
|
|
184
|
+
kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
|
|
185
|
+
kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
|
|
186
|
+
kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
|
|
187
|
+
kwargs["_content_type"] = kwargs.get("_content_type")
|
|
188
|
+
kwargs["_host_index"] = kwargs.get("_host_index")
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def get_count(
|
|
192
|
+
self,
|
|
193
|
+
vector_id,
|
|
194
|
+
**kwargs
|
|
195
|
+
) -> ChunkTextResponse:
|
|
196
|
+
"""Returns chunked text for the given vectorId. # noqa: E501
|
|
197
|
+
|
|
198
|
+
Returns content and link of provided vector id. # noqa: E501
|
|
199
|
+
This method makes a synchronous HTTP request. Returns the http data only
|
|
200
|
+
|
|
201
|
+
Args:
|
|
202
|
+
vector_id ([str]): Unique identifier for a document
|
|
203
|
+
|
|
204
|
+
Keyword Args:
|
|
205
|
+
pagination_limit (int): Number of results to return per page.. [optional] if omitted the server will use the default value of 25
|
|
206
|
+
pagination_offset (int): Page number of the results to return. . [optional] if omitted the server will use the default value of 0
|
|
207
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
208
|
+
will be returned without reading/decoding response data.
|
|
209
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
210
|
+
of the caller to close the file stream.
|
|
211
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
212
|
+
one number provided, it will be total request timeout. It can also
|
|
213
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
214
|
+
Default is None.
|
|
215
|
+
_check_input_type (bool): specifies if type checking
|
|
216
|
+
should be done one the data sent to the server.
|
|
217
|
+
Default is True.
|
|
218
|
+
_check_return_type (bool): specifies if type checking
|
|
219
|
+
should be done one the data received from the server.
|
|
220
|
+
Default is True.
|
|
221
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
222
|
+
are serialized names, as specified in the OpenAPI document.
|
|
223
|
+
False if the variable names in the input data
|
|
224
|
+
are pythonic names, e.g. snake case (default)
|
|
225
|
+
_content_type (str/None): force body content-type.
|
|
226
|
+
Default is None and content-type will be predicted by allowed
|
|
227
|
+
content-types and body.
|
|
228
|
+
_host_index (int/None): specifies the index of the server
|
|
229
|
+
that we want to use.
|
|
230
|
+
Default is read from the configuration.
|
|
231
|
+
Returns:
|
|
232
|
+
ChunkTextResponse
|
|
233
|
+
Response Object
|
|
234
|
+
"""
|
|
235
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
|
|
236
|
+
kwargs['vector_id'] = \
|
|
237
|
+
vector_id
|
|
238
|
+
return self.get_count_endpoint.call_with_http_info(**kwargs)
|
|
239
|
+
|
|
240
|
+
def get_count_with_http_info(
|
|
241
|
+
self,
|
|
242
|
+
vector_id,
|
|
243
|
+
**kwargs
|
|
244
|
+
) -> typing.Tuple[ChunkTextResponse, int, typing.MutableMapping]:
|
|
245
|
+
"""Returns chunked text for the given vectorId. # noqa: E501
|
|
246
|
+
|
|
247
|
+
Returns content and link of provided vector id. # noqa: E501
|
|
248
|
+
This method makes a synchronous HTTP request. Returns http data, http status and headers
|
|
249
|
+
|
|
250
|
+
Args:
|
|
251
|
+
vector_id ([str]): Unique identifier for a document
|
|
252
|
+
|
|
253
|
+
Keyword Args:
|
|
254
|
+
pagination_limit (int): Number of results to return per page.. [optional] if omitted the server will use the default value of 25
|
|
255
|
+
pagination_offset (int): Page number of the results to return. . [optional] if omitted the server will use the default value of 0
|
|
256
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
257
|
+
will be returned without reading/decoding response data.
|
|
258
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
259
|
+
of the caller to close the file stream.
|
|
260
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
261
|
+
one number provided, it will be total request timeout. It can also
|
|
262
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
263
|
+
Default is None.
|
|
264
|
+
_check_input_type (bool): specifies if type checking
|
|
265
|
+
should be done one the data sent to the server.
|
|
266
|
+
Default is True.
|
|
267
|
+
_check_return_type (bool): specifies if type checking
|
|
268
|
+
should be done one the data received from the server.
|
|
269
|
+
Default is True.
|
|
270
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
271
|
+
are serialized names, as specified in the OpenAPI document.
|
|
272
|
+
False if the variable names in the input data
|
|
273
|
+
are pythonic names, e.g. snake case (default)
|
|
274
|
+
_content_type (str/None): force body content-type.
|
|
275
|
+
Default is None and content-type will be predicted by allowed
|
|
276
|
+
content-types and body.
|
|
277
|
+
_host_index (int/None): specifies the index of the server
|
|
278
|
+
that we want to use.
|
|
279
|
+
Default is read from the configuration.
|
|
280
|
+
Returns:
|
|
281
|
+
ChunkTextResponse
|
|
282
|
+
Response Object
|
|
283
|
+
int
|
|
284
|
+
Http Status Code
|
|
285
|
+
dict
|
|
286
|
+
Dictionary of the response headers
|
|
287
|
+
"""
|
|
288
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
|
|
289
|
+
kwargs['vector_id'] = \
|
|
290
|
+
vector_id
|
|
291
|
+
return self.get_count_endpoint.call_with_http_info(**kwargs)
|
|
292
|
+
|
|
293
|
+
def get_count_async(
|
|
294
|
+
self,
|
|
295
|
+
vector_id,
|
|
296
|
+
**kwargs
|
|
297
|
+
) -> "ApplyResult[ChunkTextResponse]":
|
|
298
|
+
"""Returns chunked text for the given vectorId. # noqa: E501
|
|
299
|
+
|
|
300
|
+
Returns content and link of provided vector id. # noqa: E501
|
|
301
|
+
This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult
|
|
302
|
+
|
|
303
|
+
Args:
|
|
304
|
+
vector_id ([str]): Unique identifier for a document
|
|
305
|
+
|
|
306
|
+
Keyword Args:
|
|
307
|
+
pagination_limit (int): Number of results to return per page.. [optional] if omitted the server will use the default value of 25
|
|
308
|
+
pagination_offset (int): Page number of the results to return. . [optional] if omitted the server will use the default value of 0
|
|
309
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
310
|
+
will be returned without reading/decoding response data.
|
|
311
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
312
|
+
of the caller to close the file stream.
|
|
313
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
314
|
+
one number provided, it will be total request timeout. It can also
|
|
315
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
316
|
+
Default is None.
|
|
317
|
+
_check_input_type (bool): specifies if type checking
|
|
318
|
+
should be done one the data sent to the server.
|
|
319
|
+
Default is True.
|
|
320
|
+
_check_return_type (bool): specifies if type checking
|
|
321
|
+
should be done one the data received from the server.
|
|
322
|
+
Default is True.
|
|
323
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
324
|
+
are serialized names, as specified in the OpenAPI document.
|
|
325
|
+
False if the variable names in the input data
|
|
326
|
+
are pythonic names, e.g. snake case (default)
|
|
327
|
+
_content_type (str/None): force body content-type.
|
|
328
|
+
Default is None and content-type will be predicted by allowed
|
|
329
|
+
content-types and body.
|
|
330
|
+
_host_index (int/None): specifies the index of the server
|
|
331
|
+
that we want to use.
|
|
332
|
+
Default is read from the configuration.
|
|
333
|
+
Returns:
|
|
334
|
+
ApplyResult[ChunkTextResponse]
|
|
335
|
+
"""
|
|
336
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
|
|
337
|
+
kwargs['vector_id'] = \
|
|
338
|
+
vector_id
|
|
339
|
+
return self.get_count_endpoint.call_with_http_info(**kwargs)
|
|
340
|
+
|
|
341
|
+
def get_count_with_http_info_async(
|
|
342
|
+
self,
|
|
343
|
+
vector_id,
|
|
344
|
+
**kwargs
|
|
345
|
+
) -> "ApplyResult[typing.Tuple[ChunkTextResponse, int, typing.MutableMapping]]":
|
|
346
|
+
"""Returns chunked text for the given vectorId. # noqa: E501
|
|
347
|
+
|
|
348
|
+
Returns content and link of provided vector id. # noqa: E501
|
|
349
|
+
This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult
|
|
350
|
+
|
|
351
|
+
Args:
|
|
352
|
+
vector_id ([str]): Unique identifier for a document
|
|
353
|
+
|
|
354
|
+
Keyword Args:
|
|
355
|
+
pagination_limit (int): Number of results to return per page.. [optional] if omitted the server will use the default value of 25
|
|
356
|
+
pagination_offset (int): Page number of the results to return. . [optional] if omitted the server will use the default value of 0
|
|
357
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
358
|
+
will be returned without reading/decoding response data.
|
|
359
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
360
|
+
of the caller to close the file stream.
|
|
361
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
362
|
+
one number provided, it will be total request timeout. It can also
|
|
363
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
364
|
+
Default is None.
|
|
365
|
+
_check_input_type (bool): specifies if type checking
|
|
366
|
+
should be done one the data sent to the server.
|
|
367
|
+
Default is True.
|
|
368
|
+
_check_return_type (bool): specifies if type checking
|
|
369
|
+
should be done one the data received from the server.
|
|
370
|
+
Default is True.
|
|
371
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
372
|
+
are serialized names, as specified in the OpenAPI document.
|
|
373
|
+
False if the variable names in the input data
|
|
374
|
+
are pythonic names, e.g. snake case (default)
|
|
375
|
+
_content_type (str/None): force body content-type.
|
|
376
|
+
Default is None and content-type will be predicted by allowed
|
|
377
|
+
content-types and body.
|
|
378
|
+
_host_index (int/None): specifies the index of the server
|
|
379
|
+
that we want to use.
|
|
380
|
+
Default is read from the configuration.
|
|
381
|
+
Returns:
|
|
382
|
+
ApplyResult[(ChunkTextResponse, int, typing.Dict)]
|
|
383
|
+
"""
|
|
384
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
|
|
385
|
+
kwargs['vector_id'] = \
|
|
386
|
+
vector_id
|
|
387
|
+
return self.get_count_endpoint.call_with_http_info(**kwargs)
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
def post_vector(
|
|
391
|
+
self,
|
|
392
|
+
**kwargs
|
|
393
|
+
) -> VectorDataResponse:
|
|
394
|
+
"""Return vector information based on the input parameters below # noqa: E501
|
|
395
|
+
|
|
396
|
+
Returns the vector information. # noqa: E501
|
|
397
|
+
This method makes a synchronous HTTP request. Returns the http data only
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
Keyword Args:
|
|
401
|
+
vector_data_request (VectorDataRequest): Input parameters for vector data.. [optional]
|
|
402
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
403
|
+
will be returned without reading/decoding response data.
|
|
404
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
405
|
+
of the caller to close the file stream.
|
|
406
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
407
|
+
one number provided, it will be total request timeout. It can also
|
|
408
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
409
|
+
Default is None.
|
|
410
|
+
_check_input_type (bool): specifies if type checking
|
|
411
|
+
should be done one the data sent to the server.
|
|
412
|
+
Default is True.
|
|
413
|
+
_check_return_type (bool): specifies if type checking
|
|
414
|
+
should be done one the data received from the server.
|
|
415
|
+
Default is True.
|
|
416
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
417
|
+
are serialized names, as specified in the OpenAPI document.
|
|
418
|
+
False if the variable names in the input data
|
|
419
|
+
are pythonic names, e.g. snake case (default)
|
|
420
|
+
_content_type (str/None): force body content-type.
|
|
421
|
+
Default is None and content-type will be predicted by allowed
|
|
422
|
+
content-types and body.
|
|
423
|
+
_host_index (int/None): specifies the index of the server
|
|
424
|
+
that we want to use.
|
|
425
|
+
Default is read from the configuration.
|
|
426
|
+
Returns:
|
|
427
|
+
VectorDataResponse
|
|
428
|
+
Response Object
|
|
429
|
+
"""
|
|
430
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
|
|
431
|
+
return self.post_vector_endpoint.call_with_http_info(**kwargs)
|
|
432
|
+
|
|
433
|
+
def post_vector_with_http_info(
|
|
434
|
+
self,
|
|
435
|
+
**kwargs
|
|
436
|
+
) -> typing.Tuple[VectorDataResponse, int, typing.MutableMapping]:
|
|
437
|
+
"""Return vector information based on the input parameters below # noqa: E501
|
|
438
|
+
|
|
439
|
+
Returns the vector information. # noqa: E501
|
|
440
|
+
This method makes a synchronous HTTP request. Returns http data, http status and headers
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
Keyword Args:
|
|
444
|
+
vector_data_request (VectorDataRequest): Input parameters for vector data.. [optional]
|
|
445
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
446
|
+
will be returned without reading/decoding response data.
|
|
447
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
448
|
+
of the caller to close the file stream.
|
|
449
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
450
|
+
one number provided, it will be total request timeout. It can also
|
|
451
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
452
|
+
Default is None.
|
|
453
|
+
_check_input_type (bool): specifies if type checking
|
|
454
|
+
should be done one the data sent to the server.
|
|
455
|
+
Default is True.
|
|
456
|
+
_check_return_type (bool): specifies if type checking
|
|
457
|
+
should be done one the data received from the server.
|
|
458
|
+
Default is True.
|
|
459
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
460
|
+
are serialized names, as specified in the OpenAPI document.
|
|
461
|
+
False if the variable names in the input data
|
|
462
|
+
are pythonic names, e.g. snake case (default)
|
|
463
|
+
_content_type (str/None): force body content-type.
|
|
464
|
+
Default is None and content-type will be predicted by allowed
|
|
465
|
+
content-types and body.
|
|
466
|
+
_host_index (int/None): specifies the index of the server
|
|
467
|
+
that we want to use.
|
|
468
|
+
Default is read from the configuration.
|
|
469
|
+
Returns:
|
|
470
|
+
VectorDataResponse
|
|
471
|
+
Response Object
|
|
472
|
+
int
|
|
473
|
+
Http Status Code
|
|
474
|
+
dict
|
|
475
|
+
Dictionary of the response headers
|
|
476
|
+
"""
|
|
477
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
|
|
478
|
+
return self.post_vector_endpoint.call_with_http_info(**kwargs)
|
|
479
|
+
|
|
480
|
+
def post_vector_async(
|
|
481
|
+
self,
|
|
482
|
+
**kwargs
|
|
483
|
+
) -> "ApplyResult[VectorDataResponse]":
|
|
484
|
+
"""Return vector information based on the input parameters below # noqa: E501
|
|
485
|
+
|
|
486
|
+
Returns the vector information. # noqa: E501
|
|
487
|
+
This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
Keyword Args:
|
|
491
|
+
vector_data_request (VectorDataRequest): Input parameters for vector data.. [optional]
|
|
492
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
493
|
+
will be returned without reading/decoding response data.
|
|
494
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
495
|
+
of the caller to close the file stream.
|
|
496
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
497
|
+
one number provided, it will be total request timeout. It can also
|
|
498
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
499
|
+
Default is None.
|
|
500
|
+
_check_input_type (bool): specifies if type checking
|
|
501
|
+
should be done one the data sent to the server.
|
|
502
|
+
Default is True.
|
|
503
|
+
_check_return_type (bool): specifies if type checking
|
|
504
|
+
should be done one the data received from the server.
|
|
505
|
+
Default is True.
|
|
506
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
507
|
+
are serialized names, as specified in the OpenAPI document.
|
|
508
|
+
False if the variable names in the input data
|
|
509
|
+
are pythonic names, e.g. snake case (default)
|
|
510
|
+
_content_type (str/None): force body content-type.
|
|
511
|
+
Default is None and content-type will be predicted by allowed
|
|
512
|
+
content-types and body.
|
|
513
|
+
_host_index (int/None): specifies the index of the server
|
|
514
|
+
that we want to use.
|
|
515
|
+
Default is read from the configuration.
|
|
516
|
+
Returns:
|
|
517
|
+
ApplyResult[VectorDataResponse]
|
|
518
|
+
"""
|
|
519
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
|
|
520
|
+
return self.post_vector_endpoint.call_with_http_info(**kwargs)
|
|
521
|
+
|
|
522
|
+
def post_vector_with_http_info_async(
|
|
523
|
+
self,
|
|
524
|
+
**kwargs
|
|
525
|
+
) -> "ApplyResult[typing.Tuple[VectorDataResponse, int, typing.MutableMapping]]":
|
|
526
|
+
"""Return vector information based on the input parameters below # noqa: E501
|
|
527
|
+
|
|
528
|
+
Returns the vector information. # noqa: E501
|
|
529
|
+
This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
Keyword Args:
|
|
533
|
+
vector_data_request (VectorDataRequest): Input parameters for vector data.. [optional]
|
|
534
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
535
|
+
will be returned without reading/decoding response data.
|
|
536
|
+
Default is True. NOTE: if this API returns a file, it is the responsibility
|
|
537
|
+
of the caller to close the file stream.
|
|
538
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
539
|
+
one number provided, it will be total request timeout. It can also
|
|
540
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
541
|
+
Default is None.
|
|
542
|
+
_check_input_type (bool): specifies if type checking
|
|
543
|
+
should be done one the data sent to the server.
|
|
544
|
+
Default is True.
|
|
545
|
+
_check_return_type (bool): specifies if type checking
|
|
546
|
+
should be done one the data received from the server.
|
|
547
|
+
Default is True.
|
|
548
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
549
|
+
are serialized names, as specified in the OpenAPI document.
|
|
550
|
+
False if the variable names in the input data
|
|
551
|
+
are pythonic names, e.g. snake case (default)
|
|
552
|
+
_content_type (str/None): force body content-type.
|
|
553
|
+
Default is None and content-type will be predicted by allowed
|
|
554
|
+
content-types and body.
|
|
555
|
+
_host_index (int/None): specifies the index of the server
|
|
556
|
+
that we want to use.
|
|
557
|
+
Default is read from the configuration.
|
|
558
|
+
Returns:
|
|
559
|
+
ApplyResult[(VectorDataResponse, int, typing.Dict)]
|
|
560
|
+
"""
|
|
561
|
+
self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
|
|
562
|
+
return self.post_vector_endpoint.call_with_http_info(**kwargs)
|
|
563
|
+
|
|
564
|
+
|