criteo-api-retailmedia-sdk 0.0.251021__py3-none-any.whl → 0.0.251029__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 (44) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +218 -218
  3. criteo_api_retailmedia_preview/api/campaign_api.py +399 -1414
  4. criteo_api_retailmedia_preview/api_client.py +1 -1
  5. criteo_api_retailmedia_preview/configuration.py +1 -1
  6. criteo_api_retailmedia_preview/model/display_auction_min_bid_request.py +3 -3
  7. criteo_api_retailmedia_preview/models/__init__.py +0 -33
  8. {criteo_api_retailmedia_sdk-0.0.251021.dist-info → criteo_api_retailmedia_sdk-0.0.251029.dist-info}/METADATA +3 -3
  9. {criteo_api_retailmedia_sdk-0.0.251021.dist-info → criteo_api_retailmedia_sdk-0.0.251029.dist-info}/RECORD +11 -44
  10. criteo_api_retailmedia_preview/model/add_remove_keyword_model.py +0 -274
  11. criteo_api_retailmedia_preview/model/add_remove_keywords_model.py +0 -262
  12. criteo_api_retailmedia_preview/model/add_remove_keywords_model_request.py +0 -262
  13. criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +0 -270
  14. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +0 -284
  15. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py +0 -280
  16. criteo_api_retailmedia_preview/model/entity_resource_line_item_keyword_review_report.py +0 -270
  17. criteo_api_retailmedia_preview/model/input_keywords_model.py +0 -265
  18. criteo_api_retailmedia_preview/model/keyword_data_model.py +0 -286
  19. criteo_api_retailmedia_preview/model/keywords_model.py +0 -266
  20. criteo_api_retailmedia_preview/model/keywords_model_resource.py +0 -270
  21. criteo_api_retailmedia_preview/model/keywords_model_response.py +0 -274
  22. criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +0 -311
  23. criteo_api_retailmedia_preview/model/match_type_model.py +0 -291
  24. criteo_api_retailmedia_preview/model/resource_outcome.py +0 -268
  25. criteo_api_retailmedia_preview/model/retail_media_keywords_review.py +0 -271
  26. criteo_api_retailmedia_preview/model/retail_media_keywords_review_result.py +0 -271
  27. criteo_api_retailmedia_preview/model/review_set_state.py +0 -278
  28. criteo_api_retailmedia_preview/model/review_state_model.py +0 -294
  29. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +0 -286
  30. criteo_api_retailmedia_preview/model/seller_identifier_v2.py +0 -275
  31. criteo_api_retailmedia_preview/model/set_bid_model.py +0 -265
  32. criteo_api_retailmedia_preview/model/set_bids_model.py +0 -262
  33. criteo_api_retailmedia_preview/model/set_bids_model_request.py +0 -262
  34. criteo_api_retailmedia_preview/model/set_bids_model_resource.py +0 -270
  35. criteo_api_retailmedia_preview/model/value_resource_input_of_brand_catalog_request_v2.py +0 -269
  36. criteo_api_retailmedia_preview/model/value_resource_input_of_seller_catalog_request_v2.py +0 -269
  37. criteo_api_retailmedia_preview/model/value_resource_input_retail_media_keywords_review.py +0 -262
  38. criteo_api_retailmedia_preview/model/value_resource_of_brand_catalog_request_v2.py +0 -273
  39. criteo_api_retailmedia_preview/model/value_resource_of_seller_catalog_request_v2.py +0 -273
  40. criteo_api_retailmedia_preview/model/value_resource_outcome_retail_media_keywords_review_result.py +0 -274
  41. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review.py +0 -266
  42. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review_result.py +0 -266
  43. {criteo_api_retailmedia_sdk-0.0.251021.dist-info → criteo_api_retailmedia_sdk-0.0.251029.dist-info}/WHEEL +0 -0
  44. {criteo_api_retailmedia_sdk-0.0.251021.dist-info → criteo_api_retailmedia_sdk-0.0.251029.dist-info}/top_level.txt +0 -0
@@ -1,284 +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 BrandCatalogRequestV2(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
- ('include_fields',): {
59
- 'UNKNOWN': "Unknown",
60
- 'DESCRIPTION': "Description",
61
- 'IMAGEURL': "ImageUrl",
62
- 'GOOGLECATEGORY': "GoogleCategory",
63
- 'RETAILERNAME': "RetailerName",
64
- 'CATEGORY': "Category",
65
- 'BRANDNAME': "BrandName",
66
- },
67
- }
68
-
69
- validations = {
70
- }
71
-
72
- @cached_property
73
- def additional_properties_type():
74
- """
75
- This must be a method because a model may have properties that are
76
- of type self, this must run after the class is loaded
77
- """
78
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
79
-
80
- _nullable = True
81
-
82
- @cached_property
83
- def openapi_types():
84
- """
85
- This must be a method because a model may have properties that are
86
- of type self, this must run after the class is loaded
87
-
88
- Returns
89
- openapi_types (dict): The key is attribute name
90
- and the value is attribute type.
91
- """
92
- return {
93
- 'brand_id_filter': ([str],), # noqa: E501
94
- 'include_fields': ([str],), # noqa: E501
95
- 'modified_after': (datetime,), # noqa: E501
96
- 'retailer_id_filter': ([int],), # noqa: E501
97
- }
98
-
99
- @cached_property
100
- def discriminator():
101
- return None
102
-
103
-
104
- attribute_map = {
105
- 'brand_id_filter': 'brandIdFilter', # noqa: E501
106
- 'include_fields': 'includeFields', # noqa: E501
107
- 'modified_after': 'modifiedAfter', # noqa: E501
108
- 'retailer_id_filter': 'retailerIdFilter', # noqa: E501
109
- }
110
-
111
- read_only_vars = {
112
- }
113
-
114
- _composed_schemas = {}
115
-
116
- @classmethod
117
- @convert_js_args_to_python_args
118
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
119
- """BrandCatalogRequestV2 - a model defined in OpenAPI
120
-
121
- Keyword Args:
122
- _check_type (bool): if True, values for parameters in openapi_types
123
- will be type checked and a TypeError will be
124
- raised if the wrong type is input.
125
- Defaults to True
126
- _path_to_item (tuple/list): This is a list of keys or values to
127
- drill down to the model in received_data
128
- when deserializing a response
129
- _spec_property_naming (bool): True if the variable names in the input data
130
- are serialized names, as specified in the OpenAPI document.
131
- False if the variable names in the input data
132
- are pythonic names, e.g. snake case (default)
133
- _configuration (Configuration): the instance to use when
134
- deserializing a file_type parameter.
135
- If passed, type conversion is attempted
136
- If omitted no type conversion is done.
137
- _visited_composed_classes (tuple): This stores a tuple of
138
- classes that we have traveled through so that
139
- if we see that class again we will not use its
140
- discriminator again.
141
- When traveling through a discriminator, the
142
- composed schema that is
143
- is traveled through is added to this set.
144
- For example if Animal has a discriminator
145
- petType and we pass in "Dog", and the class Dog
146
- allOf includes Animal, we move through Animal
147
- once using the discriminator, and pick Dog.
148
- Then in Dog, we will make an instance of the
149
- Animal class but this time we won't travel
150
- through its discriminator because we passed in
151
- _visited_composed_classes = (Animal,)
152
- brand_id_filter ([str]): The brand ids to filter the catalog by.. [optional] # noqa: E501
153
- include_fields ([str]): Out of the optional fields, only the ones specified will be included in the catalog generated.. [optional] # noqa: E501
154
- modified_after (datetime): Only products modified after this time will be returned.. [optional] # noqa: E501
155
- retailer_id_filter ([int]): The retailer ids to filter the catalog by.. [optional] # noqa: E501
156
- """
157
-
158
- _check_type = kwargs.pop('_check_type', True)
159
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
160
- _path_to_item = kwargs.pop('_path_to_item', ())
161
- _configuration = kwargs.pop('_configuration', None)
162
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
-
164
- self = super(OpenApiModel, cls).__new__(cls)
165
-
166
- if args:
167
- for arg in args:
168
- if isinstance(arg, dict):
169
- kwargs.update(arg)
170
- else:
171
- raise ApiTypeError(
172
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
173
- args,
174
- self.__class__.__name__,
175
- ),
176
- path_to_item=_path_to_item,
177
- valid_classes=(self.__class__,),
178
- )
179
-
180
- self._data_store = {}
181
- self._check_type = _check_type
182
- self._spec_property_naming = _spec_property_naming
183
- self._path_to_item = _path_to_item
184
- self._configuration = _configuration
185
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
-
187
- for var_name, var_value in kwargs.items():
188
- if var_name not in self.attribute_map and \
189
- self._configuration is not None and \
190
- self._configuration.discard_unknown_keys and \
191
- self.additional_properties_type is None:
192
- # discard variable.
193
- continue
194
- setattr(self, var_name, var_value)
195
- return self
196
-
197
- required_properties = set([
198
- '_data_store',
199
- '_check_type',
200
- '_spec_property_naming',
201
- '_path_to_item',
202
- '_configuration',
203
- '_visited_composed_classes',
204
- ])
205
-
206
- @convert_js_args_to_python_args
207
- def __init__(self, *args, **kwargs): # noqa: E501
208
- """BrandCatalogRequestV2 - a model defined in OpenAPI
209
-
210
- Keyword Args:
211
- _check_type (bool): if True, values for parameters in openapi_types
212
- will be type checked and a TypeError will be
213
- raised if the wrong type is input.
214
- Defaults to True
215
- _path_to_item (tuple/list): This is a list of keys or values to
216
- drill down to the model in received_data
217
- when deserializing a response
218
- _spec_property_naming (bool): True if the variable names in the input data
219
- are serialized names, as specified in the OpenAPI document.
220
- False if the variable names in the input data
221
- are pythonic names, e.g. snake case (default)
222
- _configuration (Configuration): the instance to use when
223
- deserializing a file_type parameter.
224
- If passed, type conversion is attempted
225
- If omitted no type conversion is done.
226
- _visited_composed_classes (tuple): This stores a tuple of
227
- classes that we have traveled through so that
228
- if we see that class again we will not use its
229
- discriminator again.
230
- When traveling through a discriminator, the
231
- composed schema that is
232
- is traveled through is added to this set.
233
- For example if Animal has a discriminator
234
- petType and we pass in "Dog", and the class Dog
235
- allOf includes Animal, we move through Animal
236
- once using the discriminator, and pick Dog.
237
- Then in Dog, we will make an instance of the
238
- Animal class but this time we won't travel
239
- through its discriminator because we passed in
240
- _visited_composed_classes = (Animal,)
241
- brand_id_filter ([str]): The brand ids to filter the catalog by.. [optional] # noqa: E501
242
- include_fields ([str]): Out of the optional fields, only the ones specified will be included in the catalog generated.. [optional] # noqa: E501
243
- modified_after (datetime): Only products modified after this time will be returned.. [optional] # noqa: E501
244
- retailer_id_filter ([int]): The retailer ids to filter the catalog by.. [optional] # noqa: E501
245
- """
246
-
247
- _check_type = kwargs.pop('_check_type', True)
248
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
249
- _path_to_item = kwargs.pop('_path_to_item', ())
250
- _configuration = kwargs.pop('_configuration', None)
251
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
252
-
253
- if args:
254
- for arg in args:
255
- if isinstance(arg, dict):
256
- kwargs.update(arg)
257
- else:
258
- raise ApiTypeError(
259
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
260
- args,
261
- self.__class__.__name__,
262
- ),
263
- path_to_item=_path_to_item,
264
- valid_classes=(self.__class__,),
265
- )
266
-
267
- self._data_store = {}
268
- self._check_type = _check_type
269
- self._spec_property_naming = _spec_property_naming
270
- self._path_to_item = _path_to_item
271
- self._configuration = _configuration
272
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
273
-
274
- for var_name, var_value in kwargs.items():
275
- if var_name not in self.attribute_map and \
276
- self._configuration is not None and \
277
- self._configuration.discard_unknown_keys and \
278
- self.additional_properties_type is None:
279
- # discard variable.
280
- continue
281
- setattr(self, var_name, var_value)
282
- if var_name in self.read_only_vars:
283
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
284
- f"class with read only attributes.")
@@ -1,280 +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.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
- 'data': ([EntityResourceLineItemKeywordReviewReport], none_type,), # noqa: E501
88
- 'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
89
- 'meta': (Metadata,), # noqa: E501
90
- 'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
91
- }
92
-
93
- @cached_property
94
- def discriminator():
95
- return None
96
-
97
-
98
- attribute_map = {
99
- 'data': 'data', # noqa: E501
100
- 'errors': 'errors', # noqa: E501
101
- 'meta': 'meta', # noqa: E501
102
- 'warnings': 'warnings', # noqa: E501
103
- }
104
-
105
- read_only_vars = {
106
- 'errors', # noqa: E501
107
- 'warnings', # 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
- data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
149
- errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
150
- meta (Metadata): [optional] # noqa: E501
151
- warnings ([SdkApiRestCommonProblem], none_type): Warnings 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
- data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
238
- errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
239
- meta (Metadata): [optional] # noqa: E501
240
- warnings ([SdkApiRestCommonProblem], none_type): Warnings 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.")