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.
Files changed (39) hide show
  1. fds/__init__.py +0 -0
  2. fds/sdk/VectorData/__init__.py +28 -0
  3. fds/sdk/VectorData/api/__init__.py +3 -0
  4. fds/sdk/VectorData/api/meta_api.py +959 -0
  5. fds/sdk/VectorData/api/vector_api.py +564 -0
  6. fds/sdk/VectorData/api_client.py +939 -0
  7. fds/sdk/VectorData/apis/__init__.py +18 -0
  8. fds/sdk/VectorData/configuration.py +496 -0
  9. fds/sdk/VectorData/exceptions.py +160 -0
  10. fds/sdk/VectorData/model/__init__.py +5 -0
  11. fds/sdk/VectorData/model/chunk_text_response.py +268 -0
  12. fds/sdk/VectorData/model/chunk_text_response_meta.py +262 -0
  13. fds/sdk/VectorData/model/chunk_text_response_meta_pagination.py +260 -0
  14. fds/sdk/VectorData/model/chunk_text_result.py +284 -0
  15. fds/sdk/VectorData/model/document_types.py +268 -0
  16. fds/sdk/VectorData/model/document_types_response.py +262 -0
  17. fds/sdk/VectorData/model/error_object.py +268 -0
  18. fds/sdk/VectorData/model/error_response.py +262 -0
  19. fds/sdk/VectorData/model/meta.py +260 -0
  20. fds/sdk/VectorData/model/schemas.py +274 -0
  21. fds/sdk/VectorData/model/schemas_response.py +262 -0
  22. fds/sdk/VectorData/model/source.py +268 -0
  23. fds/sdk/VectorData/model/source_response.py +262 -0
  24. fds/sdk/VectorData/model/themes.py +274 -0
  25. fds/sdk/VectorData/model/themes_response.py +262 -0
  26. fds/sdk/VectorData/model/vector_data_request.py +274 -0
  27. fds/sdk/VectorData/model/vector_data_request_data.py +313 -0
  28. fds/sdk/VectorData/model/vector_data_response.py +268 -0
  29. fds/sdk/VectorData/model/vector_data_response_meta.py +256 -0
  30. fds/sdk/VectorData/model/vector_data_result.py +296 -0
  31. fds/sdk/VectorData/model_utils.py +2062 -0
  32. fds/sdk/VectorData/models/__init__.py +31 -0
  33. fds/sdk/VectorData/rest.py +347 -0
  34. fds/sdk/__init__.py +0 -0
  35. fds_sdk_vectordata-0.0.1.dist-info/METADATA +349 -0
  36. fds_sdk_vectordata-0.0.1.dist-info/RECORD +39 -0
  37. fds_sdk_vectordata-0.0.1.dist-info/WHEEL +5 -0
  38. fds_sdk_vectordata-0.0.1.dist-info/licenses/LICENSE +202 -0
  39. fds_sdk_vectordata-0.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,313 @@
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
+
15
+ from fds.sdk.VectorData.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from fds.sdk.VectorData.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class VectorDataRequestData(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ }
60
+
61
+ validations = {
62
+ ('sources',): {
63
+ 'max_items': 3,
64
+ 'min_items': 1,
65
+ },
66
+ ('esg_theme',): {
67
+ 'min_items': 1,
68
+ },
69
+ ('search_concept',): {
70
+ 'min_items': 1,
71
+ },
72
+ ('sentiment',): {
73
+ 'min_items': 1,
74
+ },
75
+ ('document_types',): {
76
+ 'max_items': 5,
77
+ 'min_items': 1,
78
+ },
79
+ }
80
+
81
+ @cached_property
82
+ def additional_properties_type():
83
+ """
84
+ This must be a method because a model may have properties that are
85
+ of type self, this must run after the class is loaded
86
+ """
87
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
88
+
89
+ _nullable = False
90
+
91
+ @cached_property
92
+ def openapi_types():
93
+ """
94
+ This must be a method because a model may have properties that are
95
+ of type self, this must run after the class is loaded
96
+
97
+ Returns
98
+ openapi_types (dict): The key is attribute name
99
+ and the value is attribute type.
100
+ """
101
+ return {
102
+ 'query': (str,), # noqa: E501
103
+ 'start_date': (date,), # noqa: E501
104
+ 'end_date': (date,), # noqa: E501
105
+ 'sources': ([str],), # noqa: E501
106
+ 'esg_theme': ([str],), # noqa: E501
107
+ 'search_concept': ([str],), # noqa: E501
108
+ 'sentiment': ([str],), # noqa: E501
109
+ 'document_types': ([str],), # noqa: E501
110
+ }
111
+
112
+ @cached_property
113
+ def discriminator():
114
+ return None
115
+
116
+
117
+ attribute_map = {
118
+ 'query': 'query', # noqa: E501
119
+ 'start_date': 'startDate', # noqa: E501
120
+ 'end_date': 'endDate', # noqa: E501
121
+ 'sources': 'sources', # noqa: E501
122
+ 'esg_theme': 'esgTheme', # noqa: E501
123
+ 'search_concept': 'searchConcept', # noqa: E501
124
+ 'sentiment': 'sentiment', # noqa: E501
125
+ 'document_types': 'documentTypes', # noqa: E501
126
+ }
127
+
128
+ read_only_vars = {
129
+ }
130
+
131
+ _composed_schemas = {}
132
+
133
+ @classmethod
134
+ @convert_js_args_to_python_args
135
+ def _from_openapi_data(cls, query, start_date, end_date, sources, *args, **kwargs): # noqa: E501
136
+ """VectorDataRequestData - a model defined in OpenAPI
137
+
138
+ Args:
139
+ query (str): Search to include the query text.
140
+ start_date (date): Start Date. Format is YYYY-MM-DD or relative +/- days (0,-1,etc).
141
+ end_date (date): End Date. Format is YYYY-MM-DD or relative +/- days (0,-1,etc).
142
+ sources ([str]): Code for document source to include. Currently EDGAR, StreetAccount and FactSet Callstreet Transcripts are available.
143
+
144
+ Keyword Args:
145
+ _check_type (bool): if True, values for parameters in openapi_types
146
+ will be type checked and a TypeError will be
147
+ raised if the wrong type is input.
148
+ Defaults to True
149
+ _path_to_item (tuple/list): This is a list of keys or values to
150
+ drill down to the model in received_data
151
+ when deserializing a response
152
+ _spec_property_naming (bool): True if the variable names in the input data
153
+ are serialized names, as specified in the OpenAPI document.
154
+ False if the variable names in the input data
155
+ are pythonic names, e.g. snake case (default)
156
+ _configuration (Configuration): the instance to use when
157
+ deserializing a file_type parameter.
158
+ If passed, type conversion is attempted
159
+ If omitted no type conversion is done.
160
+ _visited_composed_classes (tuple): This stores a tuple of
161
+ classes that we have traveled through so that
162
+ if we see that class again we will not use its
163
+ discriminator again.
164
+ When traveling through a discriminator, the
165
+ composed schema that is
166
+ is traveled through is added to this set.
167
+ For example if Animal has a discriminator
168
+ petType and we pass in "Dog", and the class Dog
169
+ allOf includes Animal, we move through Animal
170
+ once using the discriminator, and pick Dog.
171
+ Then in Dog, we will make an instance of the
172
+ Animal class but this time we won't travel
173
+ through its discriminator because we passed in
174
+ _visited_composed_classes = (Animal,)
175
+ esg_theme ([str]): The search to include any esg themes of given sources.. [optional] # noqa: E501
176
+ search_concept ([str]): The search to include any concept of given sources.. [optional] # noqa: E501
177
+ sentiment ([str]): The search to include any sentiment of given sources.. [optional] # noqa: E501
178
+ document_types ([str]): The search to include any of the document type.. [optional] # noqa: E501
179
+ """
180
+
181
+ _check_type = kwargs.pop('_check_type', True)
182
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
183
+ _path_to_item = kwargs.pop('_path_to_item', ())
184
+ _configuration = kwargs.pop('_configuration', None)
185
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
186
+
187
+ self = super(OpenApiModel, cls).__new__(cls)
188
+
189
+ if args:
190
+ raise ApiTypeError(
191
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
192
+ args,
193
+ self.__class__.__name__,
194
+ ),
195
+ path_to_item=_path_to_item,
196
+ valid_classes=(self.__class__,),
197
+ )
198
+
199
+ self._data_store = {}
200
+ self._check_type = _check_type
201
+ self._spec_property_naming = _spec_property_naming
202
+ self._path_to_item = _path_to_item
203
+ self._configuration = _configuration
204
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
205
+
206
+ self.query = query
207
+ self.start_date = start_date
208
+ self.end_date = end_date
209
+ self.sources = sources
210
+ for var_name, var_value in kwargs.items():
211
+ if var_name not in self.attribute_map and \
212
+ self._configuration is not None and \
213
+ self._configuration.discard_unknown_keys and \
214
+ self.additional_properties_type is None:
215
+ # discard variable.
216
+ continue
217
+ setattr(self, var_name, var_value)
218
+ return self
219
+
220
+ required_properties = set([
221
+ '_data_store',
222
+ '_check_type',
223
+ '_spec_property_naming',
224
+ '_path_to_item',
225
+ '_configuration',
226
+ '_visited_composed_classes',
227
+ ])
228
+
229
+ @convert_js_args_to_python_args
230
+ def __init__(self, query, start_date, end_date, sources, *args, **kwargs): # noqa: E501
231
+ """VectorDataRequestData - a model defined in OpenAPI
232
+
233
+ Args:
234
+ query (str): Search to include the query text.
235
+ start_date (date): Start Date. Format is YYYY-MM-DD or relative +/- days (0,-1,etc).
236
+ end_date (date): End Date. Format is YYYY-MM-DD or relative +/- days (0,-1,etc).
237
+ sources ([str]): Code for document source to include. Currently EDGAR, StreetAccount and FactSet Callstreet Transcripts are available.
238
+
239
+ Keyword Args:
240
+ _check_type (bool): if True, values for parameters in openapi_types
241
+ will be type checked and a TypeError will be
242
+ raised if the wrong type is input.
243
+ Defaults to True
244
+ _path_to_item (tuple/list): This is a list of keys or values to
245
+ drill down to the model in received_data
246
+ when deserializing a response
247
+ _spec_property_naming (bool): True if the variable names in the input data
248
+ are serialized names, as specified in the OpenAPI document.
249
+ False if the variable names in the input data
250
+ are pythonic names, e.g. snake case (default)
251
+ _configuration (Configuration): the instance to use when
252
+ deserializing a file_type parameter.
253
+ If passed, type conversion is attempted
254
+ If omitted no type conversion is done.
255
+ _visited_composed_classes (tuple): This stores a tuple of
256
+ classes that we have traveled through so that
257
+ if we see that class again we will not use its
258
+ discriminator again.
259
+ When traveling through a discriminator, the
260
+ composed schema that is
261
+ is traveled through is added to this set.
262
+ For example if Animal has a discriminator
263
+ petType and we pass in "Dog", and the class Dog
264
+ allOf includes Animal, we move through Animal
265
+ once using the discriminator, and pick Dog.
266
+ Then in Dog, we will make an instance of the
267
+ Animal class but this time we won't travel
268
+ through its discriminator because we passed in
269
+ _visited_composed_classes = (Animal,)
270
+ esg_theme ([str]): The search to include any esg themes of given sources.. [optional] # noqa: E501
271
+ search_concept ([str]): The search to include any concept of given sources.. [optional] # noqa: E501
272
+ sentiment ([str]): The search to include any sentiment of given sources.. [optional] # noqa: E501
273
+ document_types ([str]): The search to include any of the document type.. [optional] # noqa: E501
274
+ """
275
+
276
+ _check_type = kwargs.pop('_check_type', True)
277
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
278
+ _path_to_item = kwargs.pop('_path_to_item', ())
279
+ _configuration = kwargs.pop('_configuration', None)
280
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
281
+
282
+ if args:
283
+ raise ApiTypeError(
284
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
285
+ args,
286
+ self.__class__.__name__,
287
+ ),
288
+ path_to_item=_path_to_item,
289
+ valid_classes=(self.__class__,),
290
+ )
291
+
292
+ self._data_store = {}
293
+ self._check_type = _check_type
294
+ self._spec_property_naming = _spec_property_naming
295
+ self._path_to_item = _path_to_item
296
+ self._configuration = _configuration
297
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
298
+
299
+ self.query = query
300
+ self.start_date = start_date
301
+ self.end_date = end_date
302
+ self.sources = sources
303
+ for var_name, var_value in kwargs.items():
304
+ if var_name not in self.attribute_map and \
305
+ self._configuration is not None and \
306
+ self._configuration.discard_unknown_keys and \
307
+ self.additional_properties_type is None:
308
+ # discard variable.
309
+ continue
310
+ setattr(self, var_name, var_value)
311
+ if var_name in self.read_only_vars:
312
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
313
+ f"class with read only attributes.")
@@ -0,0 +1,268 @@
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
+
15
+ from fds.sdk.VectorData.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from fds.sdk.VectorData.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from fds.sdk.VectorData.model.vector_data_response_meta import VectorDataResponseMeta
35
+ from fds.sdk.VectorData.model.vector_data_result import VectorDataResult
36
+ globals()['VectorDataResponseMeta'] = VectorDataResponseMeta
37
+ globals()['VectorDataResult'] = VectorDataResult
38
+
39
+
40
+ class VectorDataResponse(ModelNormal):
41
+ """NOTE: This class is auto generated by OpenAPI Generator.
42
+ Ref: https://openapi-generator.tech
43
+
44
+ Do not edit the class manually.
45
+
46
+ Attributes:
47
+ allowed_values (dict): The key is the tuple path to the attribute
48
+ and the for var_name this is (var_name,). The value is a dict
49
+ with a capitalized key describing the allowed value and an allowed
50
+ value. These dicts store the allowed enum values.
51
+ attribute_map (dict): The key is attribute name
52
+ and the value is json key in definition.
53
+ discriminator_value_class_map (dict): A dict to go from the discriminator
54
+ variable value to the discriminator class name.
55
+ validations (dict): The key is the tuple path to the attribute
56
+ and the for var_name this is (var_name,). The value is a dict
57
+ that stores validations for max_length, min_length, max_items,
58
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
59
+ inclusive_minimum, and regex.
60
+ additional_properties_type (tuple): A tuple of classes accepted
61
+ as additional properties values.
62
+ """
63
+
64
+ allowed_values = {
65
+ }
66
+
67
+ validations = {
68
+ }
69
+
70
+ @cached_property
71
+ def additional_properties_type():
72
+ """
73
+ This must be a method because a model may have properties that are
74
+ of type self, this must run after the class is loaded
75
+ """
76
+ lazy_import()
77
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
78
+
79
+ _nullable = False
80
+
81
+ @cached_property
82
+ def openapi_types():
83
+ """
84
+ This must be a method because a model may have properties that are
85
+ of type self, this must run after the class is loaded
86
+
87
+ Returns
88
+ openapi_types (dict): The key is attribute name
89
+ and the value is attribute type.
90
+ """
91
+ lazy_import()
92
+ return {
93
+ 'data': ([VectorDataResult],), # noqa: E501
94
+ 'meta': (VectorDataResponseMeta,), # noqa: E501
95
+ }
96
+
97
+ @cached_property
98
+ def discriminator():
99
+ return None
100
+
101
+
102
+ attribute_map = {
103
+ 'data': 'data', # noqa: E501
104
+ 'meta': 'meta', # noqa: E501
105
+ }
106
+
107
+ read_only_vars = {
108
+ }
109
+
110
+ _composed_schemas = {}
111
+
112
+ @classmethod
113
+ @convert_js_args_to_python_args
114
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
115
+ """VectorDataResponse - a model defined in OpenAPI
116
+
117
+ Keyword Args:
118
+ _check_type (bool): if True, values for parameters in openapi_types
119
+ will be type checked and a TypeError will be
120
+ raised if the wrong type is input.
121
+ Defaults to True
122
+ _path_to_item (tuple/list): This is a list of keys or values to
123
+ drill down to the model in received_data
124
+ when deserializing a response
125
+ _spec_property_naming (bool): True if the variable names in the input data
126
+ are serialized names, as specified in the OpenAPI document.
127
+ False if the variable names in the input data
128
+ are pythonic names, e.g. snake case (default)
129
+ _configuration (Configuration): the instance to use when
130
+ deserializing a file_type parameter.
131
+ If passed, type conversion is attempted
132
+ If omitted no type conversion is done.
133
+ _visited_composed_classes (tuple): This stores a tuple of
134
+ classes that we have traveled through so that
135
+ if we see that class again we will not use its
136
+ discriminator again.
137
+ When traveling through a discriminator, the
138
+ composed schema that is
139
+ is traveled through is added to this set.
140
+ For example if Animal has a discriminator
141
+ petType and we pass in "Dog", and the class Dog
142
+ allOf includes Animal, we move through Animal
143
+ once using the discriminator, and pick Dog.
144
+ Then in Dog, we will make an instance of the
145
+ Animal class but this time we won't travel
146
+ through its discriminator because we passed in
147
+ _visited_composed_classes = (Animal,)
148
+ data ([VectorDataResult]): Provides vector and vectorid.. [optional] # noqa: E501
149
+ meta (VectorDataResponseMeta): [optional] # noqa: E501
150
+ """
151
+
152
+ _check_type = kwargs.pop('_check_type', True)
153
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
154
+ _path_to_item = kwargs.pop('_path_to_item', ())
155
+ _configuration = kwargs.pop('_configuration', None)
156
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
157
+
158
+ self = super(OpenApiModel, cls).__new__(cls)
159
+
160
+ if args:
161
+ raise ApiTypeError(
162
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
163
+ args,
164
+ self.__class__.__name__,
165
+ ),
166
+ path_to_item=_path_to_item,
167
+ valid_classes=(self.__class__,),
168
+ )
169
+
170
+ self._data_store = {}
171
+ self._check_type = _check_type
172
+ self._spec_property_naming = _spec_property_naming
173
+ self._path_to_item = _path_to_item
174
+ self._configuration = _configuration
175
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
+
177
+ for var_name, var_value in kwargs.items():
178
+ if var_name not in self.attribute_map and \
179
+ self._configuration is not None and \
180
+ self._configuration.discard_unknown_keys and \
181
+ self.additional_properties_type is None:
182
+ # discard variable.
183
+ continue
184
+ setattr(self, var_name, var_value)
185
+ return self
186
+
187
+ required_properties = set([
188
+ '_data_store',
189
+ '_check_type',
190
+ '_spec_property_naming',
191
+ '_path_to_item',
192
+ '_configuration',
193
+ '_visited_composed_classes',
194
+ ])
195
+
196
+ @convert_js_args_to_python_args
197
+ def __init__(self, *args, **kwargs): # noqa: E501
198
+ """VectorDataResponse - a model defined in OpenAPI
199
+
200
+ Keyword Args:
201
+ _check_type (bool): if True, values for parameters in openapi_types
202
+ will be type checked and a TypeError will be
203
+ raised if the wrong type is input.
204
+ Defaults to True
205
+ _path_to_item (tuple/list): This is a list of keys or values to
206
+ drill down to the model in received_data
207
+ when deserializing a response
208
+ _spec_property_naming (bool): True if the variable names in the input data
209
+ are serialized names, as specified in the OpenAPI document.
210
+ False if the variable names in the input data
211
+ are pythonic names, e.g. snake case (default)
212
+ _configuration (Configuration): the instance to use when
213
+ deserializing a file_type parameter.
214
+ If passed, type conversion is attempted
215
+ If omitted no type conversion is done.
216
+ _visited_composed_classes (tuple): This stores a tuple of
217
+ classes that we have traveled through so that
218
+ if we see that class again we will not use its
219
+ discriminator again.
220
+ When traveling through a discriminator, the
221
+ composed schema that is
222
+ is traveled through is added to this set.
223
+ For example if Animal has a discriminator
224
+ petType and we pass in "Dog", and the class Dog
225
+ allOf includes Animal, we move through Animal
226
+ once using the discriminator, and pick Dog.
227
+ Then in Dog, we will make an instance of the
228
+ Animal class but this time we won't travel
229
+ through its discriminator because we passed in
230
+ _visited_composed_classes = (Animal,)
231
+ data ([VectorDataResult]): Provides vector and vectorid.. [optional] # noqa: E501
232
+ meta (VectorDataResponseMeta): [optional] # noqa: E501
233
+ """
234
+
235
+ _check_type = kwargs.pop('_check_type', True)
236
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
237
+ _path_to_item = kwargs.pop('_path_to_item', ())
238
+ _configuration = kwargs.pop('_configuration', None)
239
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
240
+
241
+ if args:
242
+ raise ApiTypeError(
243
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
244
+ args,
245
+ self.__class__.__name__,
246
+ ),
247
+ path_to_item=_path_to_item,
248
+ valid_classes=(self.__class__,),
249
+ )
250
+
251
+ self._data_store = {}
252
+ self._check_type = _check_type
253
+ self._spec_property_naming = _spec_property_naming
254
+ self._path_to_item = _path_to_item
255
+ self._configuration = _configuration
256
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
+
258
+ for var_name, var_value in kwargs.items():
259
+ if var_name not in self.attribute_map and \
260
+ self._configuration is not None and \
261
+ self._configuration.discard_unknown_keys and \
262
+ self.additional_properties_type is None:
263
+ # discard variable.
264
+ continue
265
+ setattr(self, var_name, var_value)
266
+ if var_name in self.read_only_vars:
267
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
268
+ f"class with read only attributes.")