criteo-api-retailmedia-sdk 0.0.251015__py3-none-any.whl → 0.0.251028__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.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (48) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +1 -1
  3. criteo_api_retailmedia_preview/api/campaign_api.py +332 -1203
  4. criteo_api_retailmedia_preview/api/third_party_accounts_api.py +757 -0
  5. criteo_api_retailmedia_preview/api_client.py +1 -1
  6. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/{set_bid_model.py → display_auction_min_bid_request.py} +17 -14
  9. criteo_api_retailmedia_preview/model/{keywords_model.py → display_auction_min_bid_result.py} +30 -16
  10. criteo_api_retailmedia_preview/model/{entity_resource_line_item_keyword_review_report.py → entity_resource_of_retail_media_account_v2.py} +9 -9
  11. criteo_api_retailmedia_preview/model/{value_resource_outcome_retail_media_keywords_review_result.py → entity_resource_outcome_of_retail_media_account_v2.py} +8 -8
  12. criteo_api_retailmedia_preview/model/external_retail_media_account_v2.py +301 -0
  13. criteo_api_retailmedia_preview/model/{add_remove_keyword_model.py → external_retail_media_brand_account_creation_v2.py} +19 -24
  14. criteo_api_retailmedia_preview/model/{set_bids_model.py → external_retail_media_brands.py} +16 -15
  15. criteo_api_retailmedia_preview/model/{seller_identifier_v2.py → external_retail_media_seller.py} +10 -16
  16. criteo_api_retailmedia_preview/model/{retail_media_keywords_review.py → external_retail_media_seller_account_creation_v2.py} +25 -16
  17. criteo_api_retailmedia_preview/model/{value_resource_input_retail_media_keywords_review.py → value_resource_collection_input_of_retail_media_seller.py} +8 -8
  18. criteo_api_retailmedia_preview/model/{entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py → value_resource_collection_outcome_display_auction_min_bid_result.py} +8 -14
  19. criteo_api_retailmedia_preview/model/{resource_outcome.py → value_resource_collection_outcome_of_retail_media_seller.py} +17 -11
  20. criteo_api_retailmedia_preview/model/{keywords_model_resource.py → value_resource_display_auction_min_bid_request.py} +11 -15
  21. criteo_api_retailmedia_preview/model/{set_bids_model_resource.py → value_resource_display_auction_min_bid_result.py} +10 -14
  22. criteo_api_retailmedia_preview/model/{add_remove_keywords_model_request.py → value_resource_input_display_auction_min_bid_request.py} +8 -8
  23. criteo_api_retailmedia_preview/model/{add_remove_keywords_model.py → value_resource_input_of_retail_media_brand_account_creation_v2.py} +9 -9
  24. criteo_api_retailmedia_preview/model/{set_bids_model_request.py → value_resource_input_of_retail_media_brands.py} +8 -8
  25. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation_v2.py +262 -0
  26. criteo_api_retailmedia_preview/model/{add_remove_keywords_model_resource.py → value_resource_of_retail_media_brand_account_creation_v2.py} +10 -14
  27. criteo_api_retailmedia_preview/model/{value_resource_retail_media_keywords_review_result.py → value_resource_of_retail_media_brands.py} +8 -8
  28. criteo_api_retailmedia_preview/model/{value_resource_retail_media_keywords_review.py → value_resource_of_retail_media_seller.py} +8 -8
  29. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation_v2.py +266 -0
  30. criteo_api_retailmedia_preview/model/{keywords_model_response.py → value_resource_outcome_of_retail_media_brands.py} +16 -16
  31. criteo_api_retailmedia_preview/models/__init__.py +23 -33
  32. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251028.dist-info}/METADATA +3 -3
  33. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251028.dist-info}/RECORD +35 -44
  34. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +0 -284
  35. criteo_api_retailmedia_preview/model/input_keywords_model.py +0 -265
  36. criteo_api_retailmedia_preview/model/keyword_data_model.py +0 -286
  37. criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +0 -311
  38. criteo_api_retailmedia_preview/model/match_type_model.py +0 -291
  39. criteo_api_retailmedia_preview/model/retail_media_keywords_review_result.py +0 -271
  40. criteo_api_retailmedia_preview/model/review_set_state.py +0 -278
  41. criteo_api_retailmedia_preview/model/review_state_model.py +0 -294
  42. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +0 -286
  43. criteo_api_retailmedia_preview/model/value_resource_input_of_brand_catalog_request_v2.py +0 -269
  44. criteo_api_retailmedia_preview/model/value_resource_input_of_seller_catalog_request_v2.py +0 -269
  45. criteo_api_retailmedia_preview/model/value_resource_of_brand_catalog_request_v2.py +0 -273
  46. criteo_api_retailmedia_preview/model/value_resource_of_seller_catalog_request_v2.py +0 -273
  47. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251028.dist-info}/WHEEL +0 -0
  48. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251028.dist-info}/top_level.txt +0 -0
@@ -1,284 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: Preview
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class BrandCatalogRequestV2(ModelNormal):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- ('include_fields',): {
59
- 'UNKNOWN': "Unknown",
60
- 'DESCRIPTION': "Description",
61
- 'IMAGEURL': "ImageUrl",
62
- 'GOOGLECATEGORY': "GoogleCategory",
63
- 'RETAILERNAME': "RetailerName",
64
- 'CATEGORY': "Category",
65
- 'BRANDNAME': "BrandName",
66
- },
67
- }
68
-
69
- validations = {
70
- }
71
-
72
- @cached_property
73
- def additional_properties_type():
74
- """
75
- This must be a method because a model may have properties that are
76
- of type self, this must run after the class is loaded
77
- """
78
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
79
-
80
- _nullable = True
81
-
82
- @cached_property
83
- def openapi_types():
84
- """
85
- This must be a method because a model may have properties that are
86
- of type self, this must run after the class is loaded
87
-
88
- Returns
89
- openapi_types (dict): The key is attribute name
90
- and the value is attribute type.
91
- """
92
- return {
93
- 'brand_id_filter': ([str],), # noqa: E501
94
- 'include_fields': ([str],), # noqa: E501
95
- 'modified_after': (datetime,), # noqa: E501
96
- 'retailer_id_filter': ([int],), # noqa: E501
97
- }
98
-
99
- @cached_property
100
- def discriminator():
101
- return None
102
-
103
-
104
- attribute_map = {
105
- 'brand_id_filter': 'brandIdFilter', # noqa: E501
106
- 'include_fields': 'includeFields', # noqa: E501
107
- 'modified_after': 'modifiedAfter', # noqa: E501
108
- 'retailer_id_filter': 'retailerIdFilter', # noqa: E501
109
- }
110
-
111
- read_only_vars = {
112
- }
113
-
114
- _composed_schemas = {}
115
-
116
- @classmethod
117
- @convert_js_args_to_python_args
118
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
119
- """BrandCatalogRequestV2 - a model defined in OpenAPI
120
-
121
- Keyword Args:
122
- _check_type (bool): if True, values for parameters in openapi_types
123
- will be type checked and a TypeError will be
124
- raised if the wrong type is input.
125
- Defaults to True
126
- _path_to_item (tuple/list): This is a list of keys or values to
127
- drill down to the model in received_data
128
- when deserializing a response
129
- _spec_property_naming (bool): True if the variable names in the input data
130
- are serialized names, as specified in the OpenAPI document.
131
- False if the variable names in the input data
132
- are pythonic names, e.g. snake case (default)
133
- _configuration (Configuration): the instance to use when
134
- deserializing a file_type parameter.
135
- If passed, type conversion is attempted
136
- If omitted no type conversion is done.
137
- _visited_composed_classes (tuple): This stores a tuple of
138
- classes that we have traveled through so that
139
- if we see that class again we will not use its
140
- discriminator again.
141
- When traveling through a discriminator, the
142
- composed schema that is
143
- is traveled through is added to this set.
144
- For example if Animal has a discriminator
145
- petType and we pass in "Dog", and the class Dog
146
- allOf includes Animal, we move through Animal
147
- once using the discriminator, and pick Dog.
148
- Then in Dog, we will make an instance of the
149
- Animal class but this time we won't travel
150
- through its discriminator because we passed in
151
- _visited_composed_classes = (Animal,)
152
- brand_id_filter ([str]): The brand ids to filter the catalog by.. [optional] # noqa: E501
153
- include_fields ([str]): Out of the optional fields, only the ones specified will be included in the catalog generated.. [optional] # noqa: E501
154
- modified_after (datetime): Only products modified after this time will be returned.. [optional] # noqa: E501
155
- retailer_id_filter ([int]): The retailer ids to filter the catalog by.. [optional] # noqa: E501
156
- """
157
-
158
- _check_type = kwargs.pop('_check_type', True)
159
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
160
- _path_to_item = kwargs.pop('_path_to_item', ())
161
- _configuration = kwargs.pop('_configuration', None)
162
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
-
164
- self = super(OpenApiModel, cls).__new__(cls)
165
-
166
- if args:
167
- for arg in args:
168
- if isinstance(arg, dict):
169
- kwargs.update(arg)
170
- else:
171
- raise ApiTypeError(
172
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
173
- args,
174
- self.__class__.__name__,
175
- ),
176
- path_to_item=_path_to_item,
177
- valid_classes=(self.__class__,),
178
- )
179
-
180
- self._data_store = {}
181
- self._check_type = _check_type
182
- self._spec_property_naming = _spec_property_naming
183
- self._path_to_item = _path_to_item
184
- self._configuration = _configuration
185
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
-
187
- for var_name, var_value in kwargs.items():
188
- if var_name not in self.attribute_map and \
189
- self._configuration is not None and \
190
- self._configuration.discard_unknown_keys and \
191
- self.additional_properties_type is None:
192
- # discard variable.
193
- continue
194
- setattr(self, var_name, var_value)
195
- return self
196
-
197
- required_properties = set([
198
- '_data_store',
199
- '_check_type',
200
- '_spec_property_naming',
201
- '_path_to_item',
202
- '_configuration',
203
- '_visited_composed_classes',
204
- ])
205
-
206
- @convert_js_args_to_python_args
207
- def __init__(self, *args, **kwargs): # noqa: E501
208
- """BrandCatalogRequestV2 - a model defined in OpenAPI
209
-
210
- Keyword Args:
211
- _check_type (bool): if True, values for parameters in openapi_types
212
- will be type checked and a TypeError will be
213
- raised if the wrong type is input.
214
- Defaults to True
215
- _path_to_item (tuple/list): This is a list of keys or values to
216
- drill down to the model in received_data
217
- when deserializing a response
218
- _spec_property_naming (bool): True if the variable names in the input data
219
- are serialized names, as specified in the OpenAPI document.
220
- False if the variable names in the input data
221
- are pythonic names, e.g. snake case (default)
222
- _configuration (Configuration): the instance to use when
223
- deserializing a file_type parameter.
224
- If passed, type conversion is attempted
225
- If omitted no type conversion is done.
226
- _visited_composed_classes (tuple): This stores a tuple of
227
- classes that we have traveled through so that
228
- if we see that class again we will not use its
229
- discriminator again.
230
- When traveling through a discriminator, the
231
- composed schema that is
232
- is traveled through is added to this set.
233
- For example if Animal has a discriminator
234
- petType and we pass in "Dog", and the class Dog
235
- allOf includes Animal, we move through Animal
236
- once using the discriminator, and pick Dog.
237
- Then in Dog, we will make an instance of the
238
- Animal class but this time we won't travel
239
- through its discriminator because we passed in
240
- _visited_composed_classes = (Animal,)
241
- brand_id_filter ([str]): The brand ids to filter the catalog by.. [optional] # noqa: E501
242
- include_fields ([str]): Out of the optional fields, only the ones specified will be included in the catalog generated.. [optional] # noqa: E501
243
- modified_after (datetime): Only products modified after this time will be returned.. [optional] # noqa: E501
244
- retailer_id_filter ([int]): The retailer ids to filter the catalog by.. [optional] # noqa: E501
245
- """
246
-
247
- _check_type = kwargs.pop('_check_type', True)
248
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
249
- _path_to_item = kwargs.pop('_path_to_item', ())
250
- _configuration = kwargs.pop('_configuration', None)
251
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
252
-
253
- if args:
254
- for arg in args:
255
- if isinstance(arg, dict):
256
- kwargs.update(arg)
257
- else:
258
- raise ApiTypeError(
259
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
260
- args,
261
- self.__class__.__name__,
262
- ),
263
- path_to_item=_path_to_item,
264
- valid_classes=(self.__class__,),
265
- )
266
-
267
- self._data_store = {}
268
- self._check_type = _check_type
269
- self._spec_property_naming = _spec_property_naming
270
- self._path_to_item = _path_to_item
271
- self._configuration = _configuration
272
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
273
-
274
- for var_name, var_value in kwargs.items():
275
- if var_name not in self.attribute_map and \
276
- self._configuration is not None and \
277
- self._configuration.discard_unknown_keys and \
278
- self.additional_properties_type is None:
279
- # discard variable.
280
- continue
281
- setattr(self, var_name, var_value)
282
- if var_name in self.read_only_vars:
283
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
284
- f"class with read only attributes.")
@@ -1,265 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: Preview
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class InputKeywordsModel(ModelNormal):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- }
59
-
60
- validations = {
61
- }
62
-
63
- additional_properties_type = None
64
-
65
- _nullable = False
66
-
67
- @cached_property
68
- def openapi_types():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
-
73
- Returns
74
- openapi_types (dict): The key is attribute name
75
- and the value is attribute type.
76
- """
77
- return {
78
- 'negative_broad': ([str], none_type,), # noqa: E501
79
- 'negative_exact': ([str], none_type,), # noqa: E501
80
- 'positive_exact': ([str], none_type,), # noqa: E501
81
- }
82
-
83
- @cached_property
84
- def discriminator():
85
- return None
86
-
87
-
88
- attribute_map = {
89
- 'negative_broad': 'negativeBroad', # noqa: E501
90
- 'negative_exact': 'negativeExact', # noqa: E501
91
- 'positive_exact': 'positiveExact', # noqa: E501
92
- }
93
-
94
- read_only_vars = {
95
- }
96
-
97
- _composed_schemas = {}
98
-
99
- @classmethod
100
- @convert_js_args_to_python_args
101
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
102
- """InputKeywordsModel - a model defined in OpenAPI
103
-
104
- Keyword Args:
105
- _check_type (bool): if True, values for parameters in openapi_types
106
- will be type checked and a TypeError will be
107
- raised if the wrong type is input.
108
- Defaults to True
109
- _path_to_item (tuple/list): This is a list of keys or values to
110
- drill down to the model in received_data
111
- when deserializing a response
112
- _spec_property_naming (bool): True if the variable names in the input data
113
- are serialized names, as specified in the OpenAPI document.
114
- False if the variable names in the input data
115
- are pythonic names, e.g. snake case (default)
116
- _configuration (Configuration): the instance to use when
117
- deserializing a file_type parameter.
118
- If passed, type conversion is attempted
119
- If omitted no type conversion is done.
120
- _visited_composed_classes (tuple): This stores a tuple of
121
- classes that we have traveled through so that
122
- if we see that class again we will not use its
123
- discriminator again.
124
- When traveling through a discriminator, the
125
- composed schema that is
126
- is traveled through is added to this set.
127
- For example if Animal has a discriminator
128
- petType and we pass in "Dog", and the class Dog
129
- allOf includes Animal, we move through Animal
130
- once using the discriminator, and pick Dog.
131
- Then in Dog, we will make an instance of the
132
- Animal class but this time we won't travel
133
- through its discriminator because we passed in
134
- _visited_composed_classes = (Animal,)
135
- negative_broad ([str], none_type): [optional] # noqa: E501
136
- negative_exact ([str], none_type): [optional] # noqa: E501
137
- positive_exact ([str], none_type): [optional] # noqa: E501
138
- """
139
-
140
- _check_type = kwargs.pop('_check_type', True)
141
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
142
- _path_to_item = kwargs.pop('_path_to_item', ())
143
- _configuration = kwargs.pop('_configuration', None)
144
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
145
-
146
- self = super(OpenApiModel, cls).__new__(cls)
147
-
148
- if args:
149
- for arg in args:
150
- if isinstance(arg, dict):
151
- kwargs.update(arg)
152
- else:
153
- raise ApiTypeError(
154
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
155
- args,
156
- self.__class__.__name__,
157
- ),
158
- path_to_item=_path_to_item,
159
- valid_classes=(self.__class__,),
160
- )
161
-
162
- self._data_store = {}
163
- self._check_type = _check_type
164
- self._spec_property_naming = _spec_property_naming
165
- self._path_to_item = _path_to_item
166
- self._configuration = _configuration
167
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
168
-
169
- for var_name, var_value in kwargs.items():
170
- if var_name not in self.attribute_map and \
171
- self._configuration is not None and \
172
- self._configuration.discard_unknown_keys and \
173
- self.additional_properties_type is None:
174
- # discard variable.
175
- continue
176
- setattr(self, var_name, var_value)
177
- return self
178
-
179
- required_properties = set([
180
- '_data_store',
181
- '_check_type',
182
- '_spec_property_naming',
183
- '_path_to_item',
184
- '_configuration',
185
- '_visited_composed_classes',
186
- ])
187
-
188
- @convert_js_args_to_python_args
189
- def __init__(self, *args, **kwargs): # noqa: E501
190
- """InputKeywordsModel - a model defined in OpenAPI
191
-
192
- Keyword Args:
193
- _check_type (bool): if True, values for parameters in openapi_types
194
- will be type checked and a TypeError will be
195
- raised if the wrong type is input.
196
- Defaults to True
197
- _path_to_item (tuple/list): This is a list of keys or values to
198
- drill down to the model in received_data
199
- when deserializing a response
200
- _spec_property_naming (bool): True if the variable names in the input data
201
- are serialized names, as specified in the OpenAPI document.
202
- False if the variable names in the input data
203
- are pythonic names, e.g. snake case (default)
204
- _configuration (Configuration): the instance to use when
205
- deserializing a file_type parameter.
206
- If passed, type conversion is attempted
207
- If omitted no type conversion is done.
208
- _visited_composed_classes (tuple): This stores a tuple of
209
- classes that we have traveled through so that
210
- if we see that class again we will not use its
211
- discriminator again.
212
- When traveling through a discriminator, the
213
- composed schema that is
214
- is traveled through is added to this set.
215
- For example if Animal has a discriminator
216
- petType and we pass in "Dog", and the class Dog
217
- allOf includes Animal, we move through Animal
218
- once using the discriminator, and pick Dog.
219
- Then in Dog, we will make an instance of the
220
- Animal class but this time we won't travel
221
- through its discriminator because we passed in
222
- _visited_composed_classes = (Animal,)
223
- negative_broad ([str], none_type): [optional] # noqa: E501
224
- negative_exact ([str], none_type): [optional] # noqa: E501
225
- positive_exact ([str], none_type): [optional] # noqa: E501
226
- """
227
-
228
- _check_type = kwargs.pop('_check_type', True)
229
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
230
- _path_to_item = kwargs.pop('_path_to_item', ())
231
- _configuration = kwargs.pop('_configuration', None)
232
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
233
-
234
- if args:
235
- for arg in args:
236
- if isinstance(arg, dict):
237
- kwargs.update(arg)
238
- else:
239
- raise ApiTypeError(
240
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
241
- args,
242
- self.__class__.__name__,
243
- ),
244
- path_to_item=_path_to_item,
245
- valid_classes=(self.__class__,),
246
- )
247
-
248
- self._data_store = {}
249
- self._check_type = _check_type
250
- self._spec_property_naming = _spec_property_naming
251
- self._path_to_item = _path_to_item
252
- self._configuration = _configuration
253
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
254
-
255
- for var_name, var_value in kwargs.items():
256
- if var_name not in self.attribute_map and \
257
- self._configuration is not None and \
258
- self._configuration.discard_unknown_keys and \
259
- self.additional_properties_type is None:
260
- # discard variable.
261
- continue
262
- setattr(self, var_name, var_value)
263
- if var_name in self.read_only_vars:
264
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
265
- f"class with read only attributes.")