criteo-api-retailmedia-sdk 0.0.240731__py3-none-any.whl → 0.0.240808__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 (29) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +294 -0
  3. criteo_api_retailmedia_preview/api/audience_api.py +2 -2
  4. criteo_api_retailmedia_preview/api/balance_api.py +4 -16
  5. criteo_api_retailmedia_preview/api/campaign_api.py +10 -10
  6. criteo_api_retailmedia_preview/api_client.py +4 -4
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/balance_response_v2.py +10 -10
  9. criteo_api_retailmedia_preview/model/create_balance_v2.py +6 -6
  10. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +6 -4
  11. criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py +270 -0
  12. criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py +274 -0
  13. criteo_api_retailmedia_preview/model/retail_media_account.py +297 -0
  14. criteo_api_retailmedia_preview/model/retail_media_seller.py +261 -0
  15. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +270 -0
  16. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +11 -0
  17. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +10 -0
  18. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +11 -0
  19. criteo_api_retailmedia_preview/model/rm_user_behavior_v1.py +303 -0
  20. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  21. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +274 -0
  22. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
  23. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +266 -0
  24. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
  25. criteo_api_retailmedia_preview/models/__init__.py +11 -0
  26. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/METADATA +3 -3
  27. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/RECORD +29 -18
  28. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/WHEEL +0 -0
  29. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,297 @@
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 RetailMediaAccount(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
+ ('type',): {
59
+ 'None': None,
60
+ 'UNKNOWN': "Unknown",
61
+ 'SUPPLY': "Supply",
62
+ 'DEMAND': "Demand",
63
+ },
64
+ ('sub_type',): {
65
+ 'None': None,
66
+ 'UNKNOWN': "Unknown",
67
+ 'BRAND': "Brand",
68
+ 'SELLER': "Seller",
69
+ },
70
+ }
71
+
72
+ validations = {
73
+ }
74
+
75
+ additional_properties_type = None
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ return {
90
+ 'name': (str, none_type,), # noqa: E501
91
+ 'company_name': (str, none_type,), # noqa: E501
92
+ 'type': (str, none_type,), # noqa: E501
93
+ 'sub_type': (str, none_type,), # noqa: E501
94
+ 'country_ids': ([str], none_type,), # noqa: E501
95
+ 'currency_id': (str, none_type,), # noqa: E501
96
+ 'parent_account_label': (str, none_type,), # noqa: E501
97
+ 'time_zone': (str, none_type,), # noqa: E501
98
+ }
99
+
100
+ @cached_property
101
+ def discriminator():
102
+ return None
103
+
104
+
105
+ attribute_map = {
106
+ 'name': 'name', # noqa: E501
107
+ 'company_name': 'companyName', # noqa: E501
108
+ 'type': 'type', # noqa: E501
109
+ 'sub_type': 'subType', # noqa: E501
110
+ 'country_ids': 'countryIds', # noqa: E501
111
+ 'currency_id': 'currencyId', # noqa: E501
112
+ 'parent_account_label': 'parentAccountLabel', # noqa: E501
113
+ 'time_zone': 'timeZone', # noqa: E501
114
+ }
115
+
116
+ read_only_vars = {
117
+ }
118
+
119
+ _composed_schemas = {}
120
+
121
+ @classmethod
122
+ @convert_js_args_to_python_args
123
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
124
+ """RetailMediaAccount - a model defined in OpenAPI
125
+
126
+ Keyword Args:
127
+ _check_type (bool): if True, values for parameters in openapi_types
128
+ will be type checked and a TypeError will be
129
+ raised if the wrong type is input.
130
+ Defaults to True
131
+ _path_to_item (tuple/list): This is a list of keys or values to
132
+ drill down to the model in received_data
133
+ when deserializing a response
134
+ _spec_property_naming (bool): True if the variable names in the input data
135
+ are serialized names, as specified in the OpenAPI document.
136
+ False if the variable names in the input data
137
+ are pythonic names, e.g. snake case (default)
138
+ _configuration (Configuration): the instance to use when
139
+ deserializing a file_type parameter.
140
+ If passed, type conversion is attempted
141
+ If omitted no type conversion is done.
142
+ _visited_composed_classes (tuple): This stores a tuple of
143
+ classes that we have traveled through so that
144
+ if we see that class again we will not use its
145
+ discriminator again.
146
+ When traveling through a discriminator, the
147
+ composed schema that is
148
+ is traveled through is added to this set.
149
+ For example if Animal has a discriminator
150
+ petType and we pass in "Dog", and the class Dog
151
+ allOf includes Animal, we move through Animal
152
+ once using the discriminator, and pick Dog.
153
+ Then in Dog, we will make an instance of the
154
+ Animal class but this time we won't travel
155
+ through its discriminator because we passed in
156
+ _visited_composed_classes = (Animal,)
157
+ name (str, none_type): account name. [optional] # noqa: E501
158
+ company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
159
+ type (str, none_type): Type for the account. [optional] # noqa: E501
160
+ sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
161
+ country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
162
+ currency_id (str, none_type): the currency for the account. [optional] # noqa: E501
163
+ parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501
164
+ time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
165
+ """
166
+
167
+ _check_type = kwargs.pop('_check_type', True)
168
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
169
+ _path_to_item = kwargs.pop('_path_to_item', ())
170
+ _configuration = kwargs.pop('_configuration', None)
171
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
172
+
173
+ self = super(OpenApiModel, cls).__new__(cls)
174
+
175
+ if args:
176
+ for arg in args:
177
+ if isinstance(arg, dict):
178
+ kwargs.update(arg)
179
+ else:
180
+ raise ApiTypeError(
181
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
182
+ args,
183
+ self.__class__.__name__,
184
+ ),
185
+ path_to_item=_path_to_item,
186
+ valid_classes=(self.__class__,),
187
+ )
188
+
189
+ self._data_store = {}
190
+ self._check_type = _check_type
191
+ self._spec_property_naming = _spec_property_naming
192
+ self._path_to_item = _path_to_item
193
+ self._configuration = _configuration
194
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
195
+
196
+ for var_name, var_value in kwargs.items():
197
+ if var_name not in self.attribute_map and \
198
+ self._configuration is not None and \
199
+ self._configuration.discard_unknown_keys and \
200
+ self.additional_properties_type is None:
201
+ # discard variable.
202
+ continue
203
+ setattr(self, var_name, var_value)
204
+ return self
205
+
206
+ required_properties = set([
207
+ '_data_store',
208
+ '_check_type',
209
+ '_spec_property_naming',
210
+ '_path_to_item',
211
+ '_configuration',
212
+ '_visited_composed_classes',
213
+ ])
214
+
215
+ @convert_js_args_to_python_args
216
+ def __init__(self, *args, **kwargs): # noqa: E501
217
+ """RetailMediaAccount - a model defined in OpenAPI
218
+
219
+ Keyword Args:
220
+ _check_type (bool): if True, values for parameters in openapi_types
221
+ will be type checked and a TypeError will be
222
+ raised if the wrong type is input.
223
+ Defaults to True
224
+ _path_to_item (tuple/list): This is a list of keys or values to
225
+ drill down to the model in received_data
226
+ when deserializing a response
227
+ _spec_property_naming (bool): True if the variable names in the input data
228
+ are serialized names, as specified in the OpenAPI document.
229
+ False if the variable names in the input data
230
+ are pythonic names, e.g. snake case (default)
231
+ _configuration (Configuration): the instance to use when
232
+ deserializing a file_type parameter.
233
+ If passed, type conversion is attempted
234
+ If omitted no type conversion is done.
235
+ _visited_composed_classes (tuple): This stores a tuple of
236
+ classes that we have traveled through so that
237
+ if we see that class again we will not use its
238
+ discriminator again.
239
+ When traveling through a discriminator, the
240
+ composed schema that is
241
+ is traveled through is added to this set.
242
+ For example if Animal has a discriminator
243
+ petType and we pass in "Dog", and the class Dog
244
+ allOf includes Animal, we move through Animal
245
+ once using the discriminator, and pick Dog.
246
+ Then in Dog, we will make an instance of the
247
+ Animal class but this time we won't travel
248
+ through its discriminator because we passed in
249
+ _visited_composed_classes = (Animal,)
250
+ name (str, none_type): account name. [optional] # noqa: E501
251
+ company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
252
+ type (str, none_type): Type for the account. [optional] # noqa: E501
253
+ sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
254
+ country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
255
+ currency_id (str, none_type): the currency for the account. [optional] # noqa: E501
256
+ parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501
257
+ time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
258
+ """
259
+
260
+ _check_type = kwargs.pop('_check_type', True)
261
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
262
+ _path_to_item = kwargs.pop('_path_to_item', ())
263
+ _configuration = kwargs.pop('_configuration', None)
264
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
265
+
266
+ if args:
267
+ for arg in args:
268
+ if isinstance(arg, dict):
269
+ kwargs.update(arg)
270
+ else:
271
+ raise ApiTypeError(
272
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
273
+ args,
274
+ self.__class__.__name__,
275
+ ),
276
+ path_to_item=_path_to_item,
277
+ valid_classes=(self.__class__,),
278
+ )
279
+
280
+ self._data_store = {}
281
+ self._check_type = _check_type
282
+ self._spec_property_naming = _spec_property_naming
283
+ self._path_to_item = _path_to_item
284
+ self._configuration = _configuration
285
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
286
+
287
+ for var_name, var_value in kwargs.items():
288
+ if var_name not in self.attribute_map and \
289
+ self._configuration is not None and \
290
+ self._configuration.discard_unknown_keys and \
291
+ self.additional_properties_type is None:
292
+ # discard variable.
293
+ continue
294
+ setattr(self, var_name, var_value)
295
+ if var_name in self.read_only_vars:
296
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
297
+ f"class with read only attributes.")
@@ -0,0 +1,261 @@
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 RetailMediaSeller(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
+ 'seller_id': (str, none_type,), # noqa: E501
79
+ 'retailer_id': (int, none_type,), # noqa: E501
80
+ }
81
+
82
+ @cached_property
83
+ def discriminator():
84
+ return None
85
+
86
+
87
+ attribute_map = {
88
+ 'seller_id': 'sellerId', # noqa: E501
89
+ 'retailer_id': 'retailerId', # noqa: E501
90
+ }
91
+
92
+ read_only_vars = {
93
+ }
94
+
95
+ _composed_schemas = {}
96
+
97
+ @classmethod
98
+ @convert_js_args_to_python_args
99
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
100
+ """RetailMediaSeller - a model defined in OpenAPI
101
+
102
+ Keyword Args:
103
+ _check_type (bool): if True, values for parameters in openapi_types
104
+ will be type checked and a TypeError will be
105
+ raised if the wrong type is input.
106
+ Defaults to True
107
+ _path_to_item (tuple/list): This is a list of keys or values to
108
+ drill down to the model in received_data
109
+ when deserializing a response
110
+ _spec_property_naming (bool): True if the variable names in the input data
111
+ are serialized names, as specified in the OpenAPI document.
112
+ False if the variable names in the input data
113
+ are pythonic names, e.g. snake case (default)
114
+ _configuration (Configuration): the instance to use when
115
+ deserializing a file_type parameter.
116
+ If passed, type conversion is attempted
117
+ If omitted no type conversion is done.
118
+ _visited_composed_classes (tuple): This stores a tuple of
119
+ classes that we have traveled through so that
120
+ if we see that class again we will not use its
121
+ discriminator again.
122
+ When traveling through a discriminator, the
123
+ composed schema that is
124
+ is traveled through is added to this set.
125
+ For example if Animal has a discriminator
126
+ petType and we pass in "Dog", and the class Dog
127
+ allOf includes Animal, we move through Animal
128
+ once using the discriminator, and pick Dog.
129
+ Then in Dog, we will make an instance of the
130
+ Animal class but this time we won't travel
131
+ through its discriminator because we passed in
132
+ _visited_composed_classes = (Animal,)
133
+ seller_id (str, none_type): the seller id. [optional] # noqa: E501
134
+ retailer_id (int, none_type): the retailer id. [optional] # noqa: E501
135
+ """
136
+
137
+ _check_type = kwargs.pop('_check_type', True)
138
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
139
+ _path_to_item = kwargs.pop('_path_to_item', ())
140
+ _configuration = kwargs.pop('_configuration', None)
141
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
142
+
143
+ self = super(OpenApiModel, cls).__new__(cls)
144
+
145
+ if args:
146
+ for arg in args:
147
+ if isinstance(arg, dict):
148
+ kwargs.update(arg)
149
+ else:
150
+ raise ApiTypeError(
151
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
152
+ args,
153
+ self.__class__.__name__,
154
+ ),
155
+ path_to_item=_path_to_item,
156
+ valid_classes=(self.__class__,),
157
+ )
158
+
159
+ self._data_store = {}
160
+ self._check_type = _check_type
161
+ self._spec_property_naming = _spec_property_naming
162
+ self._path_to_item = _path_to_item
163
+ self._configuration = _configuration
164
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
165
+
166
+ for var_name, var_value in kwargs.items():
167
+ if var_name not in self.attribute_map and \
168
+ self._configuration is not None and \
169
+ self._configuration.discard_unknown_keys and \
170
+ self.additional_properties_type is None:
171
+ # discard variable.
172
+ continue
173
+ setattr(self, var_name, var_value)
174
+ return self
175
+
176
+ required_properties = set([
177
+ '_data_store',
178
+ '_check_type',
179
+ '_spec_property_naming',
180
+ '_path_to_item',
181
+ '_configuration',
182
+ '_visited_composed_classes',
183
+ ])
184
+
185
+ @convert_js_args_to_python_args
186
+ def __init__(self, *args, **kwargs): # noqa: E501
187
+ """RetailMediaSeller - a model defined in OpenAPI
188
+
189
+ Keyword Args:
190
+ _check_type (bool): if True, values for parameters in openapi_types
191
+ will be type checked and a TypeError will be
192
+ raised if the wrong type is input.
193
+ Defaults to True
194
+ _path_to_item (tuple/list): This is a list of keys or values to
195
+ drill down to the model in received_data
196
+ when deserializing a response
197
+ _spec_property_naming (bool): True if the variable names in the input data
198
+ are serialized names, as specified in the OpenAPI document.
199
+ False if the variable names in the input data
200
+ are pythonic names, e.g. snake case (default)
201
+ _configuration (Configuration): the instance to use when
202
+ deserializing a file_type parameter.
203
+ If passed, type conversion is attempted
204
+ If omitted no type conversion is done.
205
+ _visited_composed_classes (tuple): This stores a tuple of
206
+ classes that we have traveled through so that
207
+ if we see that class again we will not use its
208
+ discriminator again.
209
+ When traveling through a discriminator, the
210
+ composed schema that is
211
+ is traveled through is added to this set.
212
+ For example if Animal has a discriminator
213
+ petType and we pass in "Dog", and the class Dog
214
+ allOf includes Animal, we move through Animal
215
+ once using the discriminator, and pick Dog.
216
+ Then in Dog, we will make an instance of the
217
+ Animal class but this time we won't travel
218
+ through its discriminator because we passed in
219
+ _visited_composed_classes = (Animal,)
220
+ seller_id (str, none_type): the seller id. [optional] # noqa: E501
221
+ retailer_id (int, none_type): the retailer id. [optional] # noqa: E501
222
+ """
223
+
224
+ _check_type = kwargs.pop('_check_type', True)
225
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
226
+ _path_to_item = kwargs.pop('_path_to_item', ())
227
+ _configuration = kwargs.pop('_configuration', None)
228
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
229
+
230
+ if args:
231
+ for arg in args:
232
+ if isinstance(arg, dict):
233
+ kwargs.update(arg)
234
+ else:
235
+ raise ApiTypeError(
236
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
237
+ args,
238
+ self.__class__.__name__,
239
+ ),
240
+ path_to_item=_path_to_item,
241
+ valid_classes=(self.__class__,),
242
+ )
243
+
244
+ self._data_store = {}
245
+ self._check_type = _check_type
246
+ self._spec_property_naming = _spec_property_naming
247
+ self._path_to_item = _path_to_item
248
+ self._configuration = _configuration
249
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
250
+
251
+ for var_name, var_value in kwargs.items():
252
+ if var_name not in self.attribute_map and \
253
+ self._configuration is not None and \
254
+ self._configuration.discard_unknown_keys and \
255
+ self.additional_properties_type is None:
256
+ # discard variable.
257
+ continue
258
+ setattr(self, var_name, var_value)
259
+ if var_name in self.read_only_vars:
260
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
261
+ f"class with read only attributes.")