criteo-api-retailmedia-sdk 2024.4.0.250425__py3-none-any.whl → 2024.4.0.250606__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 (36) hide show
  1. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/RECORD +12 -36
  3. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_04/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_04/api/balance_api.py +10 -913
  6. criteo_api_retailmedia_v2024_04/api/campaign_api.py +102 -988
  7. criteo_api_retailmedia_v2024_04/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_04/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_04/model/external_common_line_item.py +4 -0
  10. criteo_api_retailmedia_v2024_04/model/external_line_item_page202110.py +3 -3
  11. criteo_api_retailmedia_v2024_04/models/__init__.py +0 -24
  12. criteo_api_retailmedia_v2024_04/model/add_funds_to_balance_request.py +0 -269
  13. criteo_api_retailmedia_v2024_04/model/balance_response.py +0 -281
  14. criteo_api_retailmedia_v2024_04/model/balance_response_paged_list_response.py +0 -287
  15. criteo_api_retailmedia_v2024_04/model/change_dates_of_balance_request.py +0 -269
  16. criteo_api_retailmedia_v2024_04/model/change_details.py +0 -275
  17. criteo_api_retailmedia_v2024_04/model/create_balance_request.py +0 -269
  18. criteo_api_retailmedia_v2024_04/model/external_add_funds_to_balance.py +0 -279
  19. criteo_api_retailmedia_v2024_04/model/external_balance_response.py +0 -375
  20. criteo_api_retailmedia_v2024_04/model/external_change_dates_of_balance.py +0 -281
  21. criteo_api_retailmedia_v2024_04/model/external_create_balance.py +0 -314
  22. criteo_api_retailmedia_v2024_04/model/external_promoted_product202110.py +0 -263
  23. criteo_api_retailmedia_v2024_04/model/external_update_balance_model.py +0 -283
  24. criteo_api_retailmedia_v2024_04/model/insertion_order_history_change_data_capture.py +0 -303
  25. criteo_api_retailmedia_v2024_04/model/metadata.py +0 -273
  26. criteo_api_retailmedia_v2024_04/model/page_of_insertion_order_history_change_data_capture.py +0 -276
  27. criteo_api_retailmedia_v2024_04/model/promoted_product202110_list_request.py +0 -269
  28. criteo_api_retailmedia_v2024_04/model/promoted_product202110_paged_list_response.py +0 -287
  29. criteo_api_retailmedia_v2024_04/model/resource_of_add_funds_to_balance.py +0 -277
  30. criteo_api_retailmedia_v2024_04/model/resource_of_balance_response.py +0 -277
  31. criteo_api_retailmedia_v2024_04/model/resource_of_change_dates_of_balance.py +0 -277
  32. criteo_api_retailmedia_v2024_04/model/resource_of_create_balance.py +0 -277
  33. criteo_api_retailmedia_v2024_04/model/resource_of_promoted_product202110.py +0 -277
  34. criteo_api_retailmedia_v2024_04/model/resource_of_update_balance_model.py +0 -277
  35. criteo_api_retailmedia_v2024_04/model/update_balance_model_request.py +0 -269
  36. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/top_level.txt +0 -0
@@ -1,314 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
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_v2024_04.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_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ExternalCreateBalance(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
- ('spend_type',): {
59
- 'ONSITE': "Onsite",
60
- 'OFFSITE': "Offsite",
61
- 'OFFSITEAWARENESS': "OffsiteAwareness",
62
- },
63
- }
64
-
65
- validations = {
66
- }
67
-
68
- @cached_property
69
- def additional_properties_type():
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
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
-
76
- _nullable = False
77
-
78
- @cached_property
79
- def openapi_types():
80
- """
81
- This must be a method because a model may have properties that are
82
- of type self, this must run after the class is loaded
83
-
84
- Returns
85
- openapi_types (dict): The key is attribute name
86
- and the value is attribute type.
87
- """
88
- return {
89
- 'deposited': (float, none_type,), # noqa: E501
90
- 'end_date': (date,), # noqa: E501
91
- 'memo': (str,), # noqa: E501
92
- 'name': (str,), # noqa: E501
93
- 'sales_force_id': (str,), # noqa: E501
94
- 'spend_type': (str,), # noqa: E501
95
- 'start_date': (date,), # noqa: E501
96
- 'po_number': (str,), # noqa: E501
97
- }
98
-
99
- @cached_property
100
- def discriminator():
101
- return None
102
-
103
-
104
- attribute_map = {
105
- 'deposited': 'deposited', # noqa: E501
106
- 'end_date': 'endDate', # noqa: E501
107
- 'memo': 'memo', # noqa: E501
108
- 'name': 'name', # noqa: E501
109
- 'sales_force_id': 'salesForceId', # noqa: E501
110
- 'spend_type': 'spendType', # noqa: E501
111
- 'start_date': 'startDate', # noqa: E501
112
- 'po_number': 'poNumber', # noqa: E501
113
- }
114
-
115
- read_only_vars = {
116
- }
117
-
118
- _composed_schemas = {}
119
-
120
- @classmethod
121
- @convert_js_args_to_python_args
122
- def _from_openapi_data(cls, deposited, end_date, memo, name, sales_force_id, spend_type, start_date, *args, **kwargs): # noqa: E501
123
- """ExternalCreateBalance - a model defined in OpenAPI
124
-
125
- Args:
126
- deposited (float, none_type): Amount of billable funds allotted to the balance.
127
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
128
- memo (str): Memo
129
- name (str): Name of the balance.
130
- sales_force_id (str): SalesForceId the balance is linked to.
131
- spend_type (str): Type of the balance spend.
132
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
133
-
134
- Keyword Args:
135
- _check_type (bool): if True, values for parameters in openapi_types
136
- will be type checked and a TypeError will be
137
- raised if the wrong type is input.
138
- Defaults to True
139
- _path_to_item (tuple/list): This is a list of keys or values to
140
- drill down to the model in received_data
141
- when deserializing a response
142
- _spec_property_naming (bool): True if the variable names in the input data
143
- are serialized names, as specified in the OpenAPI document.
144
- False if the variable names in the input data
145
- are pythonic names, e.g. snake case (default)
146
- _configuration (Configuration): the instance to use when
147
- deserializing a file_type parameter.
148
- If passed, type conversion is attempted
149
- If omitted no type conversion is done.
150
- _visited_composed_classes (tuple): This stores a tuple of
151
- classes that we have traveled through so that
152
- if we see that class again we will not use its
153
- discriminator again.
154
- When traveling through a discriminator, the
155
- composed schema that is
156
- is traveled through is added to this set.
157
- For example if Animal has a discriminator
158
- petType and we pass in "Dog", and the class Dog
159
- allOf includes Animal, we move through Animal
160
- once using the discriminator, and pick Dog.
161
- Then in Dog, we will make an instance of the
162
- Animal class but this time we won't travel
163
- through its discriminator because we passed in
164
- _visited_composed_classes = (Animal,)
165
- po_number (str): Purchase Order number.. [optional] # noqa: E501
166
- """
167
-
168
- _check_type = kwargs.pop('_check_type', True)
169
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
170
- _path_to_item = kwargs.pop('_path_to_item', ())
171
- _configuration = kwargs.pop('_configuration', None)
172
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
173
-
174
- self = super(OpenApiModel, cls).__new__(cls)
175
-
176
- if args:
177
- for arg in args:
178
- if isinstance(arg, dict):
179
- kwargs.update(arg)
180
- else:
181
- raise ApiTypeError(
182
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
183
- args,
184
- self.__class__.__name__,
185
- ),
186
- path_to_item=_path_to_item,
187
- valid_classes=(self.__class__,),
188
- )
189
-
190
- self._data_store = {}
191
- self._check_type = _check_type
192
- self._spec_property_naming = _spec_property_naming
193
- self._path_to_item = _path_to_item
194
- self._configuration = _configuration
195
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
196
-
197
- self.deposited = deposited
198
- self.end_date = end_date
199
- self.memo = memo
200
- self.name = name
201
- self.sales_force_id = sales_force_id
202
- self.spend_type = spend_type
203
- self.start_date = start_date
204
- for var_name, var_value in kwargs.items():
205
- if var_name not in self.attribute_map and \
206
- self._configuration is not None and \
207
- self._configuration.discard_unknown_keys and \
208
- self.additional_properties_type is None:
209
- # discard variable.
210
- continue
211
- setattr(self, var_name, var_value)
212
- return self
213
-
214
- required_properties = set([
215
- '_data_store',
216
- '_check_type',
217
- '_spec_property_naming',
218
- '_path_to_item',
219
- '_configuration',
220
- '_visited_composed_classes',
221
- ])
222
-
223
- @convert_js_args_to_python_args
224
- def __init__(self, deposited, end_date, memo, name, sales_force_id, spend_type, start_date, *args, **kwargs): # noqa: E501
225
- """ExternalCreateBalance - a model defined in OpenAPI
226
-
227
- Args:
228
- deposited (float, none_type): Amount of billable funds allotted to the balance.
229
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
230
- memo (str): Memo
231
- name (str): Name of the balance.
232
- sales_force_id (str): SalesForceId the balance is linked to.
233
- spend_type (str): Type of the balance spend.
234
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
235
-
236
- Keyword Args:
237
- _check_type (bool): if True, values for parameters in openapi_types
238
- will be type checked and a TypeError will be
239
- raised if the wrong type is input.
240
- Defaults to True
241
- _path_to_item (tuple/list): This is a list of keys or values to
242
- drill down to the model in received_data
243
- when deserializing a response
244
- _spec_property_naming (bool): True if the variable names in the input data
245
- are serialized names, as specified in the OpenAPI document.
246
- False if the variable names in the input data
247
- are pythonic names, e.g. snake case (default)
248
- _configuration (Configuration): the instance to use when
249
- deserializing a file_type parameter.
250
- If passed, type conversion is attempted
251
- If omitted no type conversion is done.
252
- _visited_composed_classes (tuple): This stores a tuple of
253
- classes that we have traveled through so that
254
- if we see that class again we will not use its
255
- discriminator again.
256
- When traveling through a discriminator, the
257
- composed schema that is
258
- is traveled through is added to this set.
259
- For example if Animal has a discriminator
260
- petType and we pass in "Dog", and the class Dog
261
- allOf includes Animal, we move through Animal
262
- once using the discriminator, and pick Dog.
263
- Then in Dog, we will make an instance of the
264
- Animal class but this time we won't travel
265
- through its discriminator because we passed in
266
- _visited_composed_classes = (Animal,)
267
- po_number (str): Purchase Order number.. [optional] # noqa: E501
268
- """
269
-
270
- _check_type = kwargs.pop('_check_type', True)
271
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
272
- _path_to_item = kwargs.pop('_path_to_item', ())
273
- _configuration = kwargs.pop('_configuration', None)
274
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
275
-
276
- if args:
277
- for arg in args:
278
- if isinstance(arg, dict):
279
- kwargs.update(arg)
280
- else:
281
- raise ApiTypeError(
282
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
283
- args,
284
- self.__class__.__name__,
285
- ),
286
- path_to_item=_path_to_item,
287
- valid_classes=(self.__class__,),
288
- )
289
-
290
- self._data_store = {}
291
- self._check_type = _check_type
292
- self._spec_property_naming = _spec_property_naming
293
- self._path_to_item = _path_to_item
294
- self._configuration = _configuration
295
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
296
-
297
- self.deposited = deposited
298
- self.end_date = end_date
299
- self.memo = memo
300
- self.name = name
301
- self.sales_force_id = sales_force_id
302
- self.spend_type = spend_type
303
- self.start_date = start_date
304
- for var_name, var_value in kwargs.items():
305
- if var_name not in self.attribute_map and \
306
- self._configuration is not None and \
307
- self._configuration.discard_unknown_keys and \
308
- self.additional_properties_type is None:
309
- # discard variable.
310
- continue
311
- setattr(self, var_name, var_value)
312
- if var_name in self.read_only_vars:
313
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
314
- f"class with read only attributes.")
@@ -1,263 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
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_v2024_04.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_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ExternalPromotedProduct202110(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
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
-
71
- _nullable = False
72
-
73
- @cached_property
74
- def openapi_types():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
-
79
- Returns
80
- openapi_types (dict): The key is attribute name
81
- and the value is attribute type.
82
- """
83
- return {
84
- 'bid_override': (float, none_type,), # noqa: E501
85
- }
86
-
87
- @cached_property
88
- def discriminator():
89
- return None
90
-
91
-
92
- attribute_map = {
93
- 'bid_override': 'bidOverride', # noqa: E501
94
- }
95
-
96
- read_only_vars = {
97
- }
98
-
99
- _composed_schemas = {}
100
-
101
- @classmethod
102
- @convert_js_args_to_python_args
103
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
- """ExternalPromotedProduct202110 - a model defined in OpenAPI
105
-
106
- Keyword Args:
107
- _check_type (bool): if True, values for parameters in openapi_types
108
- will be type checked and a TypeError will be
109
- raised if the wrong type is input.
110
- Defaults to True
111
- _path_to_item (tuple/list): This is a list of keys or values to
112
- drill down to the model in received_data
113
- when deserializing a response
114
- _spec_property_naming (bool): True if the variable names in the input data
115
- are serialized names, as specified in the OpenAPI document.
116
- False if the variable names in the input data
117
- are pythonic names, e.g. snake case (default)
118
- _configuration (Configuration): the instance to use when
119
- deserializing a file_type parameter.
120
- If passed, type conversion is attempted
121
- If omitted no type conversion is done.
122
- _visited_composed_classes (tuple): This stores a tuple of
123
- classes that we have traveled through so that
124
- if we see that class again we will not use its
125
- discriminator again.
126
- When traveling through a discriminator, the
127
- composed schema that is
128
- is traveled through is added to this set.
129
- For example if Animal has a discriminator
130
- petType and we pass in "Dog", and the class Dog
131
- allOf includes Animal, we move through Animal
132
- once using the discriminator, and pick Dog.
133
- Then in Dog, we will make an instance of the
134
- Animal class but this time we won't travel
135
- through its discriminator because we passed in
136
- _visited_composed_classes = (Animal,)
137
- bid_override (float, 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
- """ExternalPromotedProduct202110 - 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
- bid_override (float, none_type): [optional] # noqa: E501
224
- """
225
-
226
- _check_type = kwargs.pop('_check_type', True)
227
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
228
- _path_to_item = kwargs.pop('_path_to_item', ())
229
- _configuration = kwargs.pop('_configuration', None)
230
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
231
-
232
- if args:
233
- for arg in args:
234
- if isinstance(arg, dict):
235
- kwargs.update(arg)
236
- else:
237
- raise ApiTypeError(
238
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
239
- args,
240
- self.__class__.__name__,
241
- ),
242
- path_to_item=_path_to_item,
243
- valid_classes=(self.__class__,),
244
- )
245
-
246
- self._data_store = {}
247
- self._check_type = _check_type
248
- self._spec_property_naming = _spec_property_naming
249
- self._path_to_item = _path_to_item
250
- self._configuration = _configuration
251
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
252
-
253
- for var_name, var_value in kwargs.items():
254
- if var_name not in self.attribute_map and \
255
- self._configuration is not None and \
256
- self._configuration.discard_unknown_keys and \
257
- self.additional_properties_type is None:
258
- # discard variable.
259
- continue
260
- setattr(self, var_name, var_value)
261
- if var_name in self.read_only_vars:
262
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
263
- f"class with read only attributes.")