criteo-api-retailmedia-sdk 0.0.250317__py3-none-any.whl → 0.0.250327__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 (30) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/campaign_api.py +635 -41
  3. criteo_api_retailmedia_preview/api_client.py +1 -1
  4. criteo_api_retailmedia_preview/configuration.py +1 -1
  5. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +284 -0
  6. criteo_api_retailmedia_preview/model/{external_catalog_status.py → catalog_status_v2.py} +15 -29
  7. criteo_api_retailmedia_preview/model/catalog_status_v2_response.py +281 -0
  8. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py +280 -0
  9. criteo_api_retailmedia_preview/model/entity_resource_line_item_keyword_review_report.py +270 -0
  10. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → json_api_body_without_id_of_brand_catalog_request_v2_and_brand_catalog_request_v2.py} +10 -16
  11. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_seller_catalog_request_and_seller_catalog_request.py → json_api_body_without_id_of_seller_catalog_request_v2_and_seller_catalog_request_v2.py} +8 -8
  12. criteo_api_retailmedia_preview/model/{json_api_request_of_seller_catalog_request.py → json_api_request_of_brand_catalog_request_v2.py} +8 -8
  13. criteo_api_retailmedia_preview/model/{seller_catalog_request.py → json_api_request_of_seller_catalog_request_v2.py} +9 -9
  14. criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +311 -0
  15. criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +4 -4
  16. criteo_api_retailmedia_preview/model/resource_of_catalog_status_v2.py +277 -0
  17. criteo_api_retailmedia_preview/model/retail_media_keywords_review.py +271 -0
  18. criteo_api_retailmedia_preview/model/retail_media_keywords_review_result.py +271 -0
  19. criteo_api_retailmedia_preview/model/review_set_state.py +278 -0
  20. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +286 -0
  21. criteo_api_retailmedia_preview/model/{seller_identifier.py → seller_identifier_v2.py} +3 -3
  22. criteo_api_retailmedia_preview/model/value_resource_input_retail_media_keywords_review.py +262 -0
  23. criteo_api_retailmedia_preview/model/{json_api_single_response_of_catalog_status.py → value_resource_outcome_retail_media_keywords_review_result.py} +22 -35
  24. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review.py +266 -0
  25. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review_result.py +266 -0
  26. criteo_api_retailmedia_preview/models/__init__.py +20 -7
  27. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/METADATA +4 -4
  28. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/RECORD +30 -17
  29. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/WHEEL +1 -1
  30. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,281 @@
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.common_problem import CommonProblem
34
+ from criteo_api_retailmedia_preview.model.resource_of_catalog_status_v2 import ResourceOfCatalogStatusV2
35
+ globals()['CommonProblem'] = CommonProblem
36
+ globals()['ResourceOfCatalogStatusV2'] = ResourceOfCatalogStatusV2
37
+
38
+
39
+ class CatalogStatusV2Response(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 = True
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
+ 'data': (ResourceOfCatalogStatusV2,), # noqa: E501
93
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
94
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
95
+ }
96
+
97
+ @cached_property
98
+ def discriminator():
99
+ return None
100
+
101
+
102
+ attribute_map = {
103
+ 'data': 'data', # noqa: E501
104
+ 'warnings': 'warnings', # noqa: E501
105
+ 'errors': 'errors', # noqa: E501
106
+ }
107
+
108
+ read_only_vars = {
109
+ 'warnings', # noqa: E501
110
+ 'errors', # noqa: E501
111
+ }
112
+
113
+ _composed_schemas = {}
114
+
115
+ @classmethod
116
+ @convert_js_args_to_python_args
117
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
+ """CatalogStatusV2Response - a model defined in OpenAPI
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
+ data (ResourceOfCatalogStatusV2): [optional] # noqa: E501
152
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
153
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
154
+ """
155
+
156
+ _check_type = kwargs.pop('_check_type', True)
157
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
158
+ _path_to_item = kwargs.pop('_path_to_item', ())
159
+ _configuration = kwargs.pop('_configuration', None)
160
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
161
+
162
+ self = super(OpenApiModel, cls).__new__(cls)
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
+
185
+ for var_name, var_value in kwargs.items():
186
+ if var_name not in self.attribute_map and \
187
+ self._configuration is not None and \
188
+ self._configuration.discard_unknown_keys and \
189
+ self.additional_properties_type is None:
190
+ # discard variable.
191
+ continue
192
+ setattr(self, var_name, var_value)
193
+ return self
194
+
195
+ required_properties = set([
196
+ '_data_store',
197
+ '_check_type',
198
+ '_spec_property_naming',
199
+ '_path_to_item',
200
+ '_configuration',
201
+ '_visited_composed_classes',
202
+ ])
203
+
204
+ @convert_js_args_to_python_args
205
+ def __init__(self, *args, **kwargs): # noqa: E501
206
+ """CatalogStatusV2Response - a model defined in OpenAPI
207
+
208
+ Keyword Args:
209
+ _check_type (bool): if True, values for parameters in openapi_types
210
+ will be type checked and a TypeError will be
211
+ raised if the wrong type is input.
212
+ Defaults to True
213
+ _path_to_item (tuple/list): This is a list of keys or values to
214
+ drill down to the model in received_data
215
+ when deserializing a response
216
+ _spec_property_naming (bool): True if the variable names in the input data
217
+ are serialized names, as specified in the OpenAPI document.
218
+ False if the variable names in the input data
219
+ are pythonic names, e.g. snake case (default)
220
+ _configuration (Configuration): the instance to use when
221
+ deserializing a file_type parameter.
222
+ If passed, type conversion is attempted
223
+ If omitted no type conversion is done.
224
+ _visited_composed_classes (tuple): This stores a tuple of
225
+ classes that we have traveled through so that
226
+ if we see that class again we will not use its
227
+ discriminator again.
228
+ When traveling through a discriminator, the
229
+ composed schema that is
230
+ is traveled through is added to this set.
231
+ For example if Animal has a discriminator
232
+ petType and we pass in "Dog", and the class Dog
233
+ allOf includes Animal, we move through Animal
234
+ once using the discriminator, and pick Dog.
235
+ Then in Dog, we will make an instance of the
236
+ Animal class but this time we won't travel
237
+ through its discriminator because we passed in
238
+ _visited_composed_classes = (Animal,)
239
+ data (ResourceOfCatalogStatusV2): [optional] # noqa: E501
240
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
241
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
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
+ for var_name, var_value in kwargs.items():
272
+ if var_name not in self.attribute_map and \
273
+ self._configuration is not None and \
274
+ self._configuration.discard_unknown_keys and \
275
+ self.additional_properties_type is None:
276
+ # discard variable.
277
+ continue
278
+ setattr(self, var_name, var_value)
279
+ if var_name in self.read_only_vars:
280
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
281
+ f"class with read only attributes.")
@@ -0,0 +1,280 @@
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.entity_resource_line_item_keyword_review_report import EntityResourceLineItemKeywordReviewReport
34
+ from criteo_api_retailmedia_preview.model.metadata import Metadata
35
+ from criteo_api_retailmedia_preview.model.sdk_api_rest_common_problem import SdkApiRestCommonProblem
36
+ globals()['EntityResourceLineItemKeywordReviewReport'] = EntityResourceLineItemKeywordReviewReport
37
+ globals()['Metadata'] = Metadata
38
+ globals()['SdkApiRestCommonProblem'] = SdkApiRestCommonProblem
39
+
40
+
41
+ class EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata(ModelNormal):
42
+ """NOTE: This class is auto generated by OpenAPI Generator.
43
+ Ref: https://openapi-generator.tech
44
+
45
+ Do not edit the class manually.
46
+
47
+ Attributes:
48
+ allowed_values (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
+ with a capitalized key describing the allowed value and an allowed
51
+ value. These dicts store the allowed enum values.
52
+ attribute_map (dict): The key is attribute name
53
+ and the value is json key in definition.
54
+ discriminator_value_class_map (dict): A dict to go from the discriminator
55
+ variable value to the discriminator class name.
56
+ validations (dict): The key is the tuple path to the attribute
57
+ and the for var_name this is (var_name,). The value is a dict
58
+ that stores validations for max_length, min_length, max_items,
59
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
60
+ inclusive_minimum, and regex.
61
+ additional_properties_type (tuple): A tuple of classes accepted
62
+ as additional properties values.
63
+ """
64
+
65
+ allowed_values = {
66
+ }
67
+
68
+ validations = {
69
+ }
70
+
71
+ additional_properties_type = None
72
+
73
+ _nullable = False
74
+
75
+ @cached_property
76
+ def openapi_types():
77
+ """
78
+ This must be a method because a model may have properties that are
79
+ of type self, this must run after the class is loaded
80
+
81
+ Returns
82
+ openapi_types (dict): The key is attribute name
83
+ and the value is attribute type.
84
+ """
85
+ lazy_import()
86
+ return {
87
+ 'meta': (Metadata,), # noqa: E501
88
+ 'data': ([EntityResourceLineItemKeywordReviewReport], none_type,), # noqa: E501
89
+ 'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
90
+ 'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
91
+ }
92
+
93
+ @cached_property
94
+ def discriminator():
95
+ return None
96
+
97
+
98
+ attribute_map = {
99
+ 'meta': 'meta', # noqa: E501
100
+ 'data': 'data', # noqa: E501
101
+ 'warnings': 'warnings', # noqa: E501
102
+ 'errors': 'errors', # noqa: E501
103
+ }
104
+
105
+ read_only_vars = {
106
+ 'warnings', # noqa: E501
107
+ 'errors', # noqa: E501
108
+ }
109
+
110
+ _composed_schemas = {}
111
+
112
+ @classmethod
113
+ @convert_js_args_to_python_args
114
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
115
+ """EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata - a model defined in OpenAPI
116
+
117
+ Keyword Args:
118
+ _check_type (bool): if True, values for parameters in openapi_types
119
+ will be type checked and a TypeError will be
120
+ raised if the wrong type is input.
121
+ Defaults to True
122
+ _path_to_item (tuple/list): This is a list of keys or values to
123
+ drill down to the model in received_data
124
+ when deserializing a response
125
+ _spec_property_naming (bool): True if the variable names in the input data
126
+ are serialized names, as specified in the OpenAPI document.
127
+ False if the variable names in the input data
128
+ are pythonic names, e.g. snake case (default)
129
+ _configuration (Configuration): the instance to use when
130
+ deserializing a file_type parameter.
131
+ If passed, type conversion is attempted
132
+ If omitted no type conversion is done.
133
+ _visited_composed_classes (tuple): This stores a tuple of
134
+ classes that we have traveled through so that
135
+ if we see that class again we will not use its
136
+ discriminator again.
137
+ When traveling through a discriminator, the
138
+ composed schema that is
139
+ is traveled through is added to this set.
140
+ For example if Animal has a discriminator
141
+ petType and we pass in "Dog", and the class Dog
142
+ allOf includes Animal, we move through Animal
143
+ once using the discriminator, and pick Dog.
144
+ Then in Dog, we will make an instance of the
145
+ Animal class but this time we won't travel
146
+ through its discriminator because we passed in
147
+ _visited_composed_classes = (Animal,)
148
+ meta (Metadata): [optional] # noqa: E501
149
+ data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
150
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
151
+ errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
152
+ """
153
+
154
+ _check_type = kwargs.pop('_check_type', True)
155
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
156
+ _path_to_item = kwargs.pop('_path_to_item', ())
157
+ _configuration = kwargs.pop('_configuration', None)
158
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
159
+
160
+ self = super(OpenApiModel, cls).__new__(cls)
161
+
162
+ if args:
163
+ for arg in args:
164
+ if isinstance(arg, dict):
165
+ kwargs.update(arg)
166
+ else:
167
+ raise ApiTypeError(
168
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
169
+ args,
170
+ self.__class__.__name__,
171
+ ),
172
+ path_to_item=_path_to_item,
173
+ valid_classes=(self.__class__,),
174
+ )
175
+
176
+ self._data_store = {}
177
+ self._check_type = _check_type
178
+ self._spec_property_naming = _spec_property_naming
179
+ self._path_to_item = _path_to_item
180
+ self._configuration = _configuration
181
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
+
183
+ for var_name, var_value in kwargs.items():
184
+ if var_name not in self.attribute_map and \
185
+ self._configuration is not None and \
186
+ self._configuration.discard_unknown_keys and \
187
+ self.additional_properties_type is None:
188
+ # discard variable.
189
+ continue
190
+ setattr(self, var_name, var_value)
191
+ return self
192
+
193
+ required_properties = set([
194
+ '_data_store',
195
+ '_check_type',
196
+ '_spec_property_naming',
197
+ '_path_to_item',
198
+ '_configuration',
199
+ '_visited_composed_classes',
200
+ ])
201
+
202
+ @convert_js_args_to_python_args
203
+ def __init__(self, *args, **kwargs): # noqa: E501
204
+ """EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata - a model defined in OpenAPI
205
+
206
+ Keyword Args:
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
+ meta (Metadata): [optional] # noqa: E501
238
+ data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
239
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
240
+ errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
241
+ """
242
+
243
+ _check_type = kwargs.pop('_check_type', True)
244
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
245
+ _path_to_item = kwargs.pop('_path_to_item', ())
246
+ _configuration = kwargs.pop('_configuration', None)
247
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
248
+
249
+ if args:
250
+ for arg in args:
251
+ if isinstance(arg, dict):
252
+ kwargs.update(arg)
253
+ else:
254
+ raise ApiTypeError(
255
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
256
+ args,
257
+ self.__class__.__name__,
258
+ ),
259
+ path_to_item=_path_to_item,
260
+ valid_classes=(self.__class__,),
261
+ )
262
+
263
+ self._data_store = {}
264
+ self._check_type = _check_type
265
+ self._spec_property_naming = _spec_property_naming
266
+ self._path_to_item = _path_to_item
267
+ self._configuration = _configuration
268
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
269
+
270
+ for var_name, var_value in kwargs.items():
271
+ if var_name not in self.attribute_map and \
272
+ self._configuration is not None and \
273
+ self._configuration.discard_unknown_keys and \
274
+ self.additional_properties_type is None:
275
+ # discard variable.
276
+ continue
277
+ setattr(self, var_name, var_value)
278
+ if var_name in self.read_only_vars:
279
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
280
+ f"class with read only attributes.")