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,291 +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 MatchTypeModel(ModelSimple):
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
- validations (dict): The key is the tuple path to the attribute
45
- and the for var_name this is (var_name,). The value is a dict
46
- that stores validations for max_length, min_length, max_items,
47
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
48
- inclusive_minimum, and regex.
49
- additional_properties_type (tuple): A tuple of classes accepted
50
- as additional properties values.
51
- """
52
-
53
- allowed_values = {
54
- ('value',): {
55
- 'POSITIVEEXACTMATCH': "PositiveExactMatch",
56
- 'NEGATIVEEXACTMATCH': "NegativeExactMatch",
57
- 'NEGATIVEBROADMATCH': "NegativeBroadMatch",
58
- },
59
- }
60
-
61
- validations = {
62
- }
63
-
64
- additional_properties_type = None
65
-
66
- _nullable = False
67
-
68
- @cached_property
69
- def openapi_types():
70
- """
71
- This must be a method because a model may have properties that are
72
- of type self, this must run after the class is loaded
73
-
74
- Returns
75
- openapi_types (dict): The key is attribute name
76
- and the value is attribute type.
77
- """
78
- return {
79
- 'value': (str,),
80
- }
81
-
82
- @cached_property
83
- def discriminator():
84
- return None
85
-
86
-
87
- attribute_map = {}
88
-
89
- read_only_vars = set()
90
-
91
- _composed_schemas = None
92
-
93
- required_properties = set([
94
- '_data_store',
95
- '_check_type',
96
- '_spec_property_naming',
97
- '_path_to_item',
98
- '_configuration',
99
- '_visited_composed_classes',
100
- ])
101
-
102
- @convert_js_args_to_python_args
103
- def __init__(self, *args, **kwargs):
104
- """MatchTypeModel - a model defined in OpenAPI
105
-
106
- Note that value can be passed either in args or in kwargs, but not in both.
107
-
108
- Args:
109
- args[0] (str): The match type of a keyword.., must be one of ["PositiveExactMatch", "NegativeExactMatch", "NegativeBroadMatch", ] # noqa: E501
110
-
111
- Keyword Args:
112
- value (str): The match type of a keyword.., must be one of ["PositiveExactMatch", "NegativeExactMatch", "NegativeBroadMatch", ] # noqa: E501
113
- _check_type (bool): if True, values for parameters in openapi_types
114
- will be type checked and a TypeError will be
115
- raised if the wrong type is input.
116
- Defaults to True
117
- _path_to_item (tuple/list): This is a list of keys or values to
118
- drill down to the model in received_data
119
- when deserializing a response
120
- _spec_property_naming (bool): True if the variable names in the input data
121
- are serialized names, as specified in the OpenAPI document.
122
- False if the variable names in the input data
123
- are pythonic names, e.g. snake case (default)
124
- _configuration (Configuration): the instance to use when
125
- deserializing a file_type parameter.
126
- If passed, type conversion is attempted
127
- If omitted no type conversion is done.
128
- _visited_composed_classes (tuple): This stores a tuple of
129
- classes that we have traveled through so that
130
- if we see that class again we will not use its
131
- discriminator again.
132
- When traveling through a discriminator, the
133
- composed schema that is
134
- is traveled through is added to this set.
135
- For example if Animal has a discriminator
136
- petType and we pass in "Dog", and the class Dog
137
- allOf includes Animal, we move through Animal
138
- once using the discriminator, and pick Dog.
139
- Then in Dog, we will make an instance of the
140
- Animal class but this time we won't travel
141
- through its discriminator because we passed in
142
- _visited_composed_classes = (Animal,)
143
- """
144
- # required up here when default value is not given
145
- _path_to_item = kwargs.pop('_path_to_item', ())
146
-
147
- if 'value' in kwargs:
148
- value = kwargs.pop('value')
149
- elif args:
150
- args = list(args)
151
- value = args.pop(0)
152
- else:
153
- raise ApiTypeError(
154
- "value is required, but not passed in args or kwargs and doesn't have default",
155
- path_to_item=_path_to_item,
156
- valid_classes=(self.__class__,),
157
- )
158
-
159
- _check_type = kwargs.pop('_check_type', True)
160
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
161
- _configuration = kwargs.pop('_configuration', None)
162
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
-
164
- if args:
165
- for arg in args:
166
- if isinstance(arg, dict):
167
- kwargs.update(arg)
168
- else:
169
- raise ApiTypeError(
170
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
171
- args,
172
- self.__class__.__name__,
173
- ),
174
- path_to_item=_path_to_item,
175
- valid_classes=(self.__class__,),
176
- )
177
-
178
- self._data_store = {}
179
- self._check_type = _check_type
180
- self._spec_property_naming = _spec_property_naming
181
- self._path_to_item = _path_to_item
182
- self._configuration = _configuration
183
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
184
- self.value = value
185
- if kwargs:
186
- raise ApiTypeError(
187
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
188
- kwargs,
189
- self.__class__.__name__,
190
- ),
191
- path_to_item=_path_to_item,
192
- valid_classes=(self.__class__,),
193
- )
194
-
195
- @classmethod
196
- @convert_js_args_to_python_args
197
- def _from_openapi_data(cls, *args, **kwargs):
198
- """MatchTypeModel - a model defined in OpenAPI
199
-
200
- Note that value can be passed either in args or in kwargs, but not in both.
201
-
202
- Args:
203
- args[0] (str): The match type of a keyword.., must be one of ["PositiveExactMatch", "NegativeExactMatch", "NegativeBroadMatch", ] # noqa: E501
204
-
205
- Keyword Args:
206
- value (str): The match type of a keyword.., must be one of ["PositiveExactMatch", "NegativeExactMatch", "NegativeBroadMatch", ] # noqa: E501
207
- _check_type (bool): if True, values for parameters in openapi_types
208
- will be type checked and a TypeError will be
209
- raised if the wrong type is input.
210
- Defaults to True
211
- _path_to_item (tuple/list): This is a list of keys or values to
212
- drill down to the model in received_data
213
- when deserializing a response
214
- _spec_property_naming (bool): True if the variable names in the input data
215
- are serialized names, as specified in the OpenAPI document.
216
- False if the variable names in the input data
217
- are pythonic names, e.g. snake case (default)
218
- _configuration (Configuration): the instance to use when
219
- deserializing a file_type parameter.
220
- If passed, type conversion is attempted
221
- If omitted no type conversion is done.
222
- _visited_composed_classes (tuple): This stores a tuple of
223
- classes that we have traveled through so that
224
- if we see that class again we will not use its
225
- discriminator again.
226
- When traveling through a discriminator, the
227
- composed schema that is
228
- is traveled through is added to this set.
229
- For example if Animal has a discriminator
230
- petType and we pass in "Dog", and the class Dog
231
- allOf includes Animal, we move through Animal
232
- once using the discriminator, and pick Dog.
233
- Then in Dog, we will make an instance of the
234
- Animal class but this time we won't travel
235
- through its discriminator because we passed in
236
- _visited_composed_classes = (Animal,)
237
- """
238
- # required up here when default value is not given
239
- _path_to_item = kwargs.pop('_path_to_item', ())
240
-
241
- self = super(OpenApiModel, cls).__new__(cls)
242
-
243
- if 'value' in kwargs:
244
- value = kwargs.pop('value')
245
- elif args:
246
- args = list(args)
247
- value = args.pop(0)
248
- else:
249
- raise ApiTypeError(
250
- "value is required, but not passed in args or kwargs and doesn't have default",
251
- path_to_item=_path_to_item,
252
- valid_classes=(self.__class__,),
253
- )
254
-
255
- _check_type = kwargs.pop('_check_type', True)
256
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
257
- _configuration = kwargs.pop('_configuration', None)
258
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
259
-
260
- if args:
261
- for arg in args:
262
- if isinstance(arg, dict):
263
- kwargs.update(arg)
264
- else:
265
- raise ApiTypeError(
266
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
267
- args,
268
- self.__class__.__name__,
269
- ),
270
- path_to_item=_path_to_item,
271
- valid_classes=(self.__class__,),
272
- )
273
-
274
- self._data_store = {}
275
- self._check_type = _check_type
276
- self._spec_property_naming = _spec_property_naming
277
- self._path_to_item = _path_to_item
278
- self._configuration = _configuration
279
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
280
- self.value = value
281
- if kwargs:
282
- raise ApiTypeError(
283
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
284
- kwargs,
285
- self.__class__.__name__,
286
- ),
287
- path_to_item=_path_to_item,
288
- valid_classes=(self.__class__,),
289
- )
290
-
291
- return self
@@ -1,271 +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
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.review_set_state import ReviewSetState
34
- globals()['ReviewSetState'] = ReviewSetState
35
-
36
-
37
- class RetailMediaKeywordsReviewResult(ModelNormal):
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
- Attributes:
44
- allowed_values (dict): The key is the tuple path to the attribute
45
- and the for var_name this is (var_name,). The value is a dict
46
- with a capitalized key describing the allowed value and an allowed
47
- value. These dicts store the allowed enum values.
48
- attribute_map (dict): The key is attribute name
49
- and the value is json key in definition.
50
- discriminator_value_class_map (dict): A dict to go from the discriminator
51
- variable value to the discriminator class name.
52
- validations (dict): The key is the tuple path to the attribute
53
- and the for var_name this is (var_name,). The value is a dict
54
- that stores validations for max_length, min_length, max_items,
55
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
- inclusive_minimum, and regex.
57
- additional_properties_type (tuple): A tuple of classes accepted
58
- as additional properties values.
59
- """
60
-
61
- allowed_values = {
62
- }
63
-
64
- validations = {
65
- ('keywords',): {
66
- 'min_items': 1,
67
- },
68
- }
69
-
70
- additional_properties_type = None
71
-
72
- _nullable = True
73
-
74
- @cached_property
75
- def openapi_types():
76
- """
77
- This must be a method because a model may have properties that are
78
- of type self, this must run after the class is loaded
79
-
80
- Returns
81
- openapi_types (dict): The key is attribute name
82
- and the value is attribute type.
83
- """
84
- lazy_import()
85
- return {
86
- 'keywords': ([ReviewSetState],), # noqa: E501
87
- }
88
-
89
- @cached_property
90
- def discriminator():
91
- return None
92
-
93
-
94
- attribute_map = {
95
- 'keywords': 'keywords', # noqa: E501
96
- }
97
-
98
- read_only_vars = {
99
- }
100
-
101
- _composed_schemas = {}
102
-
103
- @classmethod
104
- @convert_js_args_to_python_args
105
- def _from_openapi_data(cls, keywords, *args, **kwargs): # noqa: E501
106
- """RetailMediaKeywordsReviewResult - a model defined in OpenAPI
107
-
108
- Args:
109
- keywords ([ReviewSetState]): List of Phrase-ReviewState pairs describing keyword review updates which were performed
110
-
111
- Keyword Args:
112
- _check_type (bool): if True, values for parameters in openapi_types
113
- will be type checked and a TypeError will be
114
- raised if the wrong type is input.
115
- Defaults to True
116
- _path_to_item (tuple/list): This is a list of keys or values to
117
- drill down to the model in received_data
118
- when deserializing a response
119
- _spec_property_naming (bool): True if the variable names in the input data
120
- are serialized names, as specified in the OpenAPI document.
121
- False if the variable names in the input data
122
- are pythonic names, e.g. snake case (default)
123
- _configuration (Configuration): the instance to use when
124
- deserializing a file_type parameter.
125
- If passed, type conversion is attempted
126
- If omitted no type conversion is done.
127
- _visited_composed_classes (tuple): This stores a tuple of
128
- classes that we have traveled through so that
129
- if we see that class again we will not use its
130
- discriminator again.
131
- When traveling through a discriminator, the
132
- composed schema that is
133
- is traveled through is added to this set.
134
- For example if Animal has a discriminator
135
- petType and we pass in "Dog", and the class Dog
136
- allOf includes Animal, we move through Animal
137
- once using the discriminator, and pick Dog.
138
- Then in Dog, we will make an instance of the
139
- Animal class but this time we won't travel
140
- through its discriminator because we passed in
141
- _visited_composed_classes = (Animal,)
142
- """
143
-
144
- _check_type = kwargs.pop('_check_type', True)
145
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
146
- _path_to_item = kwargs.pop('_path_to_item', ())
147
- _configuration = kwargs.pop('_configuration', None)
148
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
149
-
150
- self = super(OpenApiModel, cls).__new__(cls)
151
-
152
- if args:
153
- for arg in args:
154
- if isinstance(arg, dict):
155
- kwargs.update(arg)
156
- else:
157
- raise ApiTypeError(
158
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
159
- args,
160
- self.__class__.__name__,
161
- ),
162
- path_to_item=_path_to_item,
163
- valid_classes=(self.__class__,),
164
- )
165
-
166
- self._data_store = {}
167
- self._check_type = _check_type
168
- self._spec_property_naming = _spec_property_naming
169
- self._path_to_item = _path_to_item
170
- self._configuration = _configuration
171
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172
-
173
- self.keywords = keywords
174
- for var_name, var_value in kwargs.items():
175
- if var_name not in self.attribute_map and \
176
- self._configuration is not None and \
177
- self._configuration.discard_unknown_keys and \
178
- self.additional_properties_type is None:
179
- # discard variable.
180
- continue
181
- setattr(self, var_name, var_value)
182
- return self
183
-
184
- required_properties = set([
185
- '_data_store',
186
- '_check_type',
187
- '_spec_property_naming',
188
- '_path_to_item',
189
- '_configuration',
190
- '_visited_composed_classes',
191
- ])
192
-
193
- @convert_js_args_to_python_args
194
- def __init__(self, keywords, *args, **kwargs): # noqa: E501
195
- """RetailMediaKeywordsReviewResult - a model defined in OpenAPI
196
-
197
- Args:
198
- keywords ([ReviewSetState]): List of Phrase-ReviewState pairs describing keyword review updates which were performed
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
- """
232
-
233
- _check_type = kwargs.pop('_check_type', True)
234
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
235
- _path_to_item = kwargs.pop('_path_to_item', ())
236
- _configuration = kwargs.pop('_configuration', None)
237
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
238
-
239
- if args:
240
- for arg in args:
241
- if isinstance(arg, dict):
242
- kwargs.update(arg)
243
- else:
244
- raise ApiTypeError(
245
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
246
- args,
247
- self.__class__.__name__,
248
- ),
249
- path_to_item=_path_to_item,
250
- valid_classes=(self.__class__,),
251
- )
252
-
253
- self._data_store = {}
254
- self._check_type = _check_type
255
- self._spec_property_naming = _spec_property_naming
256
- self._path_to_item = _path_to_item
257
- self._configuration = _configuration
258
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
-
260
- self.keywords = keywords
261
- for var_name, var_value in kwargs.items():
262
- if var_name not in self.attribute_map and \
263
- self._configuration is not None and \
264
- self._configuration.discard_unknown_keys and \
265
- self.additional_properties_type is None:
266
- # discard variable.
267
- continue
268
- setattr(self, var_name, var_value)
269
- if var_name in self.read_only_vars:
270
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
271
- f"class with read only attributes.")