criteo-api-retailmedia-sdk 0.0.250911__py3-none-any.whl → 0.0.251009__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 (38) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +71 -83
  3. criteo_api_retailmedia_preview/api/analytics_api.py +155 -63
  4. criteo_api_retailmedia_preview/api/audience_api.py +25 -88
  5. criteo_api_retailmedia_preview/api/balance_api.py +176 -186
  6. criteo_api_retailmedia_preview/api/billing_api.py +20 -25
  7. criteo_api_retailmedia_preview/api/campaign_api.py +1103 -996
  8. criteo_api_retailmedia_preview/api/catalog_api.py +6 -22
  9. criteo_api_retailmedia_preview/api_client.py +4 -4
  10. criteo_api_retailmedia_preview/configuration.py +1 -1
  11. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +5 -0
  12. criteo_api_retailmedia_preview/model/{product_importer_error.py → async_unfilled_placements_report.py} +134 -41
  13. criteo_api_retailmedia_preview/model/{report_outcome.py → async_unfilled_placements_report_request.py} +9 -15
  14. criteo_api_retailmedia_preview/model/{error_code_response.py → async_unfilled_placements_report_resource.py} +15 -23
  15. criteo_api_retailmedia_preview/model/campaign_availability.py +289 -0
  16. criteo_api_retailmedia_preview/model/demand_managed_fee.py +1 -1
  17. criteo_api_retailmedia_preview/model/{value_resource_outcome_account_fees_update_result.py → entity_resource_collection_outcome_of_retailer_result_and_metadata.py} +14 -8
  18. criteo_api_retailmedia_preview/model/{outcome.py → entity_resource_of_retailer_result.py} +17 -15
  19. criteo_api_retailmedia_preview/model/files_variable_value.py +0 -3
  20. criteo_api_retailmedia_preview/model/managed_service_fee.py +1 -1
  21. criteo_api_retailmedia_preview/model/page_type_combination.py +287 -0
  22. criteo_api_retailmedia_preview/model/private_market_fees.py +6 -14
  23. criteo_api_retailmedia_preview/model/retailer_result.py +266 -0
  24. criteo_api_retailmedia_preview/model/{account_fees_update_result.py → retailer_search_request.py} +8 -12
  25. criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +1 -0
  26. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +1 -0
  27. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +11 -2
  28. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +8 -0
  29. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +34 -28
  30. criteo_api_retailmedia_preview/model/value_resource_input_of_retailer_search_request.py +262 -0
  31. criteo_api_retailmedia_preview/model/{value_resource_account_fees_update_result.py → value_resource_of_retailer_search_request.py} +9 -9
  32. criteo_api_retailmedia_preview/models/__init__.py +11 -9
  33. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/METADATA +3 -3
  34. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/RECORD +36 -34
  35. criteo_api_retailmedia_preview/model/fail_response.py +0 -283
  36. criteo_api_retailmedia_preview/model/product_importer_warning.py +0 -299
  37. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/WHEEL +0 -0
  38. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/top_level.txt +0 -0
@@ -1,283 +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.product_importer_error import ProductImporterError
34
- from criteo_api_retailmedia_preview.model.product_importer_warning import ProductImporterWarning
35
- globals()['ProductImporterError'] = ProductImporterError
36
- globals()['ProductImporterWarning'] = ProductImporterWarning
37
-
38
-
39
- class FailResponse(ModelNormal):
40
- """NOTE: This class is auto generated by OpenAPI Generator.
41
- Ref: https://openapi-generator.tech
42
-
43
- Do not edit the class manually.
44
-
45
- Attributes:
46
- allowed_values (dict): The key is the tuple path to the attribute
47
- and the for var_name this is (var_name,). The value is a dict
48
- with a capitalized key describing the allowed value and an allowed
49
- value. These dicts store the allowed enum values.
50
- attribute_map (dict): The key is attribute name
51
- and the value is json key in definition.
52
- discriminator_value_class_map (dict): A dict to go from the discriminator
53
- variable value to the discriminator class name.
54
- validations (dict): The key is the tuple path to the attribute
55
- and the for var_name this is (var_name,). The value is a dict
56
- that stores validations for max_length, min_length, max_items,
57
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
- inclusive_minimum, and regex.
59
- additional_properties_type (tuple): A tuple of classes accepted
60
- as additional properties values.
61
- """
62
-
63
- allowed_values = {
64
- }
65
-
66
- validations = {
67
- }
68
-
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
-
78
- _nullable = False
79
-
80
- @cached_property
81
- def openapi_types():
82
- """
83
- This must be a method because a model may have properties that are
84
- of type self, this must run after the class is loaded
85
-
86
- Returns
87
- openapi_types (dict): The key is attribute name
88
- and the value is attribute type.
89
- """
90
- lazy_import()
91
- return {
92
- 'errors': ([ProductImporterError],), # noqa: E501
93
- 'warnings': ([ProductImporterWarning],), # noqa: E501
94
- }
95
-
96
- @cached_property
97
- def discriminator():
98
- return None
99
-
100
-
101
- attribute_map = {
102
- 'errors': 'errors', # noqa: E501
103
- 'warnings': 'warnings', # noqa: E501
104
- }
105
-
106
- read_only_vars = {
107
- }
108
-
109
- _composed_schemas = {}
110
-
111
- @classmethod
112
- @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, errors, warnings, *args, **kwargs): # noqa: E501
114
- """FailResponse - a model defined in OpenAPI
115
-
116
- Args:
117
- errors ([ProductImporterError]): List of errors
118
- warnings ([ProductImporterWarning]): List of warnings
119
-
120
- Keyword Args:
121
- _check_type (bool): if True, values for parameters in openapi_types
122
- will be type checked and a TypeError will be
123
- raised if the wrong type is input.
124
- Defaults to True
125
- _path_to_item (tuple/list): This is a list of keys or values to
126
- drill down to the model in received_data
127
- when deserializing a response
128
- _spec_property_naming (bool): True if the variable names in the input data
129
- are serialized names, as specified in the OpenAPI document.
130
- False if the variable names in the input data
131
- are pythonic names, e.g. snake case (default)
132
- _configuration (Configuration): the instance to use when
133
- deserializing a file_type parameter.
134
- If passed, type conversion is attempted
135
- If omitted no type conversion is done.
136
- _visited_composed_classes (tuple): This stores a tuple of
137
- classes that we have traveled through so that
138
- if we see that class again we will not use its
139
- discriminator again.
140
- When traveling through a discriminator, the
141
- composed schema that is
142
- is traveled through is added to this set.
143
- For example if Animal has a discriminator
144
- petType and we pass in "Dog", and the class Dog
145
- allOf includes Animal, we move through Animal
146
- once using the discriminator, and pick Dog.
147
- Then in Dog, we will make an instance of the
148
- Animal class but this time we won't travel
149
- through its discriminator because we passed in
150
- _visited_composed_classes = (Animal,)
151
- """
152
-
153
- _check_type = kwargs.pop('_check_type', True)
154
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
155
- _path_to_item = kwargs.pop('_path_to_item', ())
156
- _configuration = kwargs.pop('_configuration', None)
157
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
158
-
159
- self = super(OpenApiModel, cls).__new__(cls)
160
-
161
- if args:
162
- for arg in args:
163
- if isinstance(arg, dict):
164
- kwargs.update(arg)
165
- else:
166
- raise ApiTypeError(
167
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
168
- args,
169
- self.__class__.__name__,
170
- ),
171
- path_to_item=_path_to_item,
172
- valid_classes=(self.__class__,),
173
- )
174
-
175
- self._data_store = {}
176
- self._check_type = _check_type
177
- self._spec_property_naming = _spec_property_naming
178
- self._path_to_item = _path_to_item
179
- self._configuration = _configuration
180
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
181
-
182
- self.errors = errors
183
- self.warnings = warnings
184
- for var_name, var_value in kwargs.items():
185
- if var_name not in self.attribute_map and \
186
- self._configuration is not None and \
187
- self._configuration.discard_unknown_keys and \
188
- self.additional_properties_type is None:
189
- # discard variable.
190
- continue
191
- setattr(self, var_name, var_value)
192
- return self
193
-
194
- required_properties = set([
195
- '_data_store',
196
- '_check_type',
197
- '_spec_property_naming',
198
- '_path_to_item',
199
- '_configuration',
200
- '_visited_composed_classes',
201
- ])
202
-
203
- @convert_js_args_to_python_args
204
- def __init__(self, errors, warnings, *args, **kwargs): # noqa: E501
205
- """FailResponse - a model defined in OpenAPI
206
-
207
- Args:
208
- errors ([ProductImporterError]): List of errors
209
- warnings ([ProductImporterWarning]): List of warnings
210
-
211
- Keyword Args:
212
- _check_type (bool): if True, values for parameters in openapi_types
213
- will be type checked and a TypeError will be
214
- raised if the wrong type is input.
215
- Defaults to True
216
- _path_to_item (tuple/list): This is a list of keys or values to
217
- drill down to the model in received_data
218
- when deserializing a response
219
- _spec_property_naming (bool): True if the variable names in the input data
220
- are serialized names, as specified in the OpenAPI document.
221
- False if the variable names in the input data
222
- are pythonic names, e.g. snake case (default)
223
- _configuration (Configuration): the instance to use when
224
- deserializing a file_type parameter.
225
- If passed, type conversion is attempted
226
- If omitted no type conversion is done.
227
- _visited_composed_classes (tuple): This stores a tuple of
228
- classes that we have traveled through so that
229
- if we see that class again we will not use its
230
- discriminator again.
231
- When traveling through a discriminator, the
232
- composed schema that is
233
- is traveled through is added to this set.
234
- For example if Animal has a discriminator
235
- petType and we pass in "Dog", and the class Dog
236
- allOf includes Animal, we move through Animal
237
- once using the discriminator, and pick Dog.
238
- Then in Dog, we will make an instance of the
239
- Animal class but this time we won't travel
240
- through its discriminator because we passed in
241
- _visited_composed_classes = (Animal,)
242
- """
243
-
244
- _check_type = kwargs.pop('_check_type', True)
245
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
246
- _path_to_item = kwargs.pop('_path_to_item', ())
247
- _configuration = kwargs.pop('_configuration', None)
248
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
249
-
250
- if args:
251
- for arg in args:
252
- if isinstance(arg, dict):
253
- kwargs.update(arg)
254
- else:
255
- raise ApiTypeError(
256
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
257
- args,
258
- self.__class__.__name__,
259
- ),
260
- path_to_item=_path_to_item,
261
- valid_classes=(self.__class__,),
262
- )
263
-
264
- self._data_store = {}
265
- self._check_type = _check_type
266
- self._spec_property_naming = _spec_property_naming
267
- self._path_to_item = _path_to_item
268
- self._configuration = _configuration
269
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
270
-
271
- self.errors = errors
272
- self.warnings = warnings
273
- for var_name, var_value in kwargs.items():
274
- if var_name not in self.attribute_map and \
275
- self._configuration is not None and \
276
- self._configuration.discard_unknown_keys and \
277
- self.additional_properties_type is None:
278
- # discard variable.
279
- continue
280
- setattr(self, var_name, var_value)
281
- if var_name in self.read_only_vars:
282
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
283
- f"class with read only attributes.")
@@ -1,299 +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 ProductImporterWarning(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
- 'code': (str,), # noqa: E501
85
- 'detail': (str,), # noqa: E501
86
- 'instance': (str,), # noqa: E501
87
- 'title': (str,), # noqa: E501
88
- 'trace_id': (str,), # noqa: E501
89
- 'type': (str,), # noqa: E501
90
- }
91
-
92
- @cached_property
93
- def discriminator():
94
- return None
95
-
96
-
97
- attribute_map = {
98
- 'code': 'code', # noqa: E501
99
- 'detail': 'detail', # noqa: E501
100
- 'instance': 'instance', # noqa: E501
101
- 'title': 'title', # noqa: E501
102
- 'trace_id': 'traceId', # noqa: E501
103
- 'type': 'type', # noqa: E501
104
- }
105
-
106
- read_only_vars = {
107
- }
108
-
109
- _composed_schemas = {}
110
-
111
- @classmethod
112
- @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, code, detail, instance, title, trace_id, type, *args, **kwargs): # noqa: E501
114
- """ProductImporterWarning - a model defined in OpenAPI
115
-
116
- Args:
117
- code (str): A MACHINE-READABLE error code string in kebab-case. Unique across Criteo
118
- detail (str): A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph
119
- instance (str): A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error.
120
- title (str): A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.
121
- trace_id (str): The MACHINE-READABLE correlation ID provided by the gateway
122
- type (str): A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors.
123
-
124
- Keyword Args:
125
- _check_type (bool): if True, values for parameters in openapi_types
126
- will be type checked and a TypeError will be
127
- raised if the wrong type is input.
128
- Defaults to True
129
- _path_to_item (tuple/list): This is a list of keys or values to
130
- drill down to the model in received_data
131
- when deserializing a response
132
- _spec_property_naming (bool): True if the variable names in the input data
133
- are serialized names, as specified in the OpenAPI document.
134
- False if the variable names in the input data
135
- are pythonic names, e.g. snake case (default)
136
- _configuration (Configuration): the instance to use when
137
- deserializing a file_type parameter.
138
- If passed, type conversion is attempted
139
- If omitted no type conversion is done.
140
- _visited_composed_classes (tuple): This stores a tuple of
141
- classes that we have traveled through so that
142
- if we see that class again we will not use its
143
- discriminator again.
144
- When traveling through a discriminator, the
145
- composed schema that is
146
- is traveled through is added to this set.
147
- For example if Animal has a discriminator
148
- petType and we pass in "Dog", and the class Dog
149
- allOf includes Animal, we move through Animal
150
- once using the discriminator, and pick Dog.
151
- Then in Dog, we will make an instance of the
152
- Animal class but this time we won't travel
153
- through its discriminator because we passed in
154
- _visited_composed_classes = (Animal,)
155
- """
156
-
157
- _check_type = kwargs.pop('_check_type', True)
158
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
159
- _path_to_item = kwargs.pop('_path_to_item', ())
160
- _configuration = kwargs.pop('_configuration', None)
161
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
162
-
163
- self = super(OpenApiModel, cls).__new__(cls)
164
-
165
- if args:
166
- for arg in args:
167
- if isinstance(arg, dict):
168
- kwargs.update(arg)
169
- else:
170
- raise ApiTypeError(
171
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
172
- args,
173
- self.__class__.__name__,
174
- ),
175
- path_to_item=_path_to_item,
176
- valid_classes=(self.__class__,),
177
- )
178
-
179
- self._data_store = {}
180
- self._check_type = _check_type
181
- self._spec_property_naming = _spec_property_naming
182
- self._path_to_item = _path_to_item
183
- self._configuration = _configuration
184
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
185
-
186
- self.code = code
187
- self.detail = detail
188
- self.instance = instance
189
- self.title = title
190
- self.trace_id = trace_id
191
- self.type = type
192
- for var_name, var_value in kwargs.items():
193
- if var_name not in self.attribute_map and \
194
- self._configuration is not None and \
195
- self._configuration.discard_unknown_keys and \
196
- self.additional_properties_type is None:
197
- # discard variable.
198
- continue
199
- setattr(self, var_name, var_value)
200
- return self
201
-
202
- required_properties = set([
203
- '_data_store',
204
- '_check_type',
205
- '_spec_property_naming',
206
- '_path_to_item',
207
- '_configuration',
208
- '_visited_composed_classes',
209
- ])
210
-
211
- @convert_js_args_to_python_args
212
- def __init__(self, code, detail, instance, title, trace_id, type, *args, **kwargs): # noqa: E501
213
- """ProductImporterWarning - a model defined in OpenAPI
214
-
215
- Args:
216
- code (str): A MACHINE-READABLE error code string in kebab-case. Unique across Criteo
217
- detail (str): A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph
218
- instance (str): A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error.
219
- title (str): A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.
220
- trace_id (str): The MACHINE-READABLE correlation ID provided by the gateway
221
- type (str): A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors.
222
-
223
- Keyword Args:
224
- _check_type (bool): if True, values for parameters in openapi_types
225
- will be type checked and a TypeError will be
226
- raised if the wrong type is input.
227
- Defaults to True
228
- _path_to_item (tuple/list): This is a list of keys or values to
229
- drill down to the model in received_data
230
- when deserializing a response
231
- _spec_property_naming (bool): True if the variable names in the input data
232
- are serialized names, as specified in the OpenAPI document.
233
- False if the variable names in the input data
234
- are pythonic names, e.g. snake case (default)
235
- _configuration (Configuration): the instance to use when
236
- deserializing a file_type parameter.
237
- If passed, type conversion is attempted
238
- If omitted no type conversion is done.
239
- _visited_composed_classes (tuple): This stores a tuple of
240
- classes that we have traveled through so that
241
- if we see that class again we will not use its
242
- discriminator again.
243
- When traveling through a discriminator, the
244
- composed schema that is
245
- is traveled through is added to this set.
246
- For example if Animal has a discriminator
247
- petType and we pass in "Dog", and the class Dog
248
- allOf includes Animal, we move through Animal
249
- once using the discriminator, and pick Dog.
250
- Then in Dog, we will make an instance of the
251
- Animal class but this time we won't travel
252
- through its discriminator because we passed in
253
- _visited_composed_classes = (Animal,)
254
- """
255
-
256
- _check_type = kwargs.pop('_check_type', True)
257
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
258
- _path_to_item = kwargs.pop('_path_to_item', ())
259
- _configuration = kwargs.pop('_configuration', None)
260
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
261
-
262
- if args:
263
- for arg in args:
264
- if isinstance(arg, dict):
265
- kwargs.update(arg)
266
- else:
267
- raise ApiTypeError(
268
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
269
- args,
270
- self.__class__.__name__,
271
- ),
272
- path_to_item=_path_to_item,
273
- valid_classes=(self.__class__,),
274
- )
275
-
276
- self._data_store = {}
277
- self._check_type = _check_type
278
- self._spec_property_naming = _spec_property_naming
279
- self._path_to_item = _path_to_item
280
- self._configuration = _configuration
281
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
282
-
283
- self.code = code
284
- self.detail = detail
285
- self.instance = instance
286
- self.title = title
287
- self.trace_id = trace_id
288
- self.type = type
289
- for var_name, var_value in kwargs.items():
290
- if var_name not in self.attribute_map and \
291
- self._configuration is not None and \
292
- self._configuration.discard_unknown_keys and \
293
- self.additional_properties_type is None:
294
- # discard variable.
295
- continue
296
- setattr(self, var_name, var_value)
297
- if var_name in self.read_only_vars:
298
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
299
- f"class with read only attributes.")