criteo-api-retailmedia-sdk 0.0.250728__py3-none-any.whl → 0.0.250811__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 (27) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/campaign_api.py +11 -351
  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/{sku_slim_data_v2_list_response.py → entity_resource_collection_outcome_of_sponsored_products_line_item_and_metadata.py} +23 -24
  6. criteo_api_retailmedia_preview/model/flight_leg.py +16 -16
  7. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +14 -18
  8. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +12 -9
  9. criteo_api_retailmedia_preview/model/{sku_search_request_slim_preview_request.py → value_resource_input_of_sponsored_products_line_item_create_request_model.py} +9 -16
  10. criteo_api_retailmedia_preview/model/{sku_search_request_slim_v2_preview_request.py → value_resource_of_sponsored_products_line_item_create_request_model.py} +14 -17
  11. criteo_api_retailmedia_preview/models/__init__.py +3 -15
  12. {criteo_api_retailmedia_sdk-0.0.250728.dist-info → criteo_api_retailmedia_sdk-0.0.250811.dist-info}/METADATA +3 -3
  13. {criteo_api_retailmedia_sdk-0.0.250728.dist-info → criteo_api_retailmedia_sdk-0.0.250811.dist-info}/RECORD +15 -27
  14. criteo_api_retailmedia_preview/model/brand.py +0 -267
  15. criteo_api_retailmedia_preview/model/category.py +0 -267
  16. criteo_api_retailmedia_preview/model/page_of_sponsored_products_line_item.py +0 -276
  17. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py +0 -277
  18. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py +0 -277
  19. criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py +0 -277
  20. criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py +0 -277
  21. criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py +0 -275
  22. criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview.py +0 -273
  23. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +0 -347
  24. criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py +0 -281
  25. criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +0 -321
  26. {criteo_api_retailmedia_sdk-0.0.250728.dist-info → criteo_api_retailmedia_sdk-0.0.250811.dist-info}/WHEEL +0 -0
  27. {criteo_api_retailmedia_sdk-0.0.250728.dist-info → criteo_api_retailmedia_sdk-0.0.250811.dist-info}/top_level.txt +0 -0
@@ -1,273 +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 SkuSearchRequestSlimV2Preview(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
- 'search_string': (str,), # noqa: E501
85
- 'brand_id': ([str],), # noqa: E501
86
- }
87
-
88
- @cached_property
89
- def discriminator():
90
- return None
91
-
92
-
93
- attribute_map = {
94
- 'search_string': 'searchString', # noqa: E501
95
- 'brand_id': 'brandId', # noqa: E501
96
- }
97
-
98
- read_only_vars = {
99
- }
100
-
101
- _composed_schemas = {}
102
-
103
- @classmethod
104
- @convert_js_args_to_python_args
105
- def _from_openapi_data(cls, search_string, *args, **kwargs): # noqa: E501
106
- """SkuSearchRequestSlimV2Preview - a model defined in OpenAPI
107
-
108
- Args:
109
- search_string (str): Query string to search for across SKU's properties (gtin, mpn, feed ID, Title, and Description)
110
-
111
- Keyword Args:
112
- _check_type (bool): if True, values for parameters in openapi_types
113
- will be type checked and a TypeError will be
114
- raised if the wrong type is input.
115
- Defaults to True
116
- _path_to_item (tuple/list): This is a list of keys or values to
117
- drill down to the model in received_data
118
- when deserializing a response
119
- _spec_property_naming (bool): True if the variable names in the input data
120
- are serialized names, as specified in the OpenAPI document.
121
- False if the variable names in the input data
122
- are pythonic names, e.g. snake case (default)
123
- _configuration (Configuration): the instance to use when
124
- deserializing a file_type parameter.
125
- If passed, type conversion is attempted
126
- If omitted no type conversion is done.
127
- _visited_composed_classes (tuple): This stores a tuple of
128
- classes that we have traveled through so that
129
- if we see that class again we will not use its
130
- discriminator again.
131
- When traveling through a discriminator, the
132
- composed schema that is
133
- is traveled through is added to this set.
134
- For example if Animal has a discriminator
135
- petType and we pass in "Dog", and the class Dog
136
- allOf includes Animal, we move through Animal
137
- once using the discriminator, and pick Dog.
138
- Then in Dog, we will make an instance of the
139
- Animal class but this time we won't travel
140
- through its discriminator because we passed in
141
- _visited_composed_classes = (Animal,)
142
- brand_id ([str]): A list of brand Id's to limit the search results to. [optional] # noqa: E501
143
- """
144
-
145
- _check_type = kwargs.pop('_check_type', True)
146
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
147
- _path_to_item = kwargs.pop('_path_to_item', ())
148
- _configuration = kwargs.pop('_configuration', None)
149
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
150
-
151
- self = super(OpenApiModel, cls).__new__(cls)
152
-
153
- if args:
154
- for arg in args:
155
- if isinstance(arg, dict):
156
- kwargs.update(arg)
157
- else:
158
- raise ApiTypeError(
159
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
160
- args,
161
- self.__class__.__name__,
162
- ),
163
- path_to_item=_path_to_item,
164
- valid_classes=(self.__class__,),
165
- )
166
-
167
- self._data_store = {}
168
- self._check_type = _check_type
169
- self._spec_property_naming = _spec_property_naming
170
- self._path_to_item = _path_to_item
171
- self._configuration = _configuration
172
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
-
174
- self.search_string = search_string
175
- for var_name, var_value in kwargs.items():
176
- if var_name not in self.attribute_map and \
177
- self._configuration is not None and \
178
- self._configuration.discard_unknown_keys and \
179
- self.additional_properties_type is None:
180
- # discard variable.
181
- continue
182
- setattr(self, var_name, var_value)
183
- return self
184
-
185
- required_properties = set([
186
- '_data_store',
187
- '_check_type',
188
- '_spec_property_naming',
189
- '_path_to_item',
190
- '_configuration',
191
- '_visited_composed_classes',
192
- ])
193
-
194
- @convert_js_args_to_python_args
195
- def __init__(self, search_string, *args, **kwargs): # noqa: E501
196
- """SkuSearchRequestSlimV2Preview - a model defined in OpenAPI
197
-
198
- Args:
199
- search_string (str): Query string to search for across SKU's properties (gtin, mpn, feed ID, Title, and Description)
200
-
201
- Keyword Args:
202
- _check_type (bool): if True, values for parameters in openapi_types
203
- will be type checked and a TypeError will be
204
- raised if the wrong type is input.
205
- Defaults to True
206
- _path_to_item (tuple/list): This is a list of keys or values to
207
- drill down to the model in received_data
208
- when deserializing a response
209
- _spec_property_naming (bool): True if the variable names in the input data
210
- are serialized names, as specified in the OpenAPI document.
211
- False if the variable names in the input data
212
- are pythonic names, e.g. snake case (default)
213
- _configuration (Configuration): the instance to use when
214
- deserializing a file_type parameter.
215
- If passed, type conversion is attempted
216
- If omitted no type conversion is done.
217
- _visited_composed_classes (tuple): This stores a tuple of
218
- classes that we have traveled through so that
219
- if we see that class again we will not use its
220
- discriminator again.
221
- When traveling through a discriminator, the
222
- composed schema that is
223
- is traveled through is added to this set.
224
- For example if Animal has a discriminator
225
- petType and we pass in "Dog", and the class Dog
226
- allOf includes Animal, we move through Animal
227
- once using the discriminator, and pick Dog.
228
- Then in Dog, we will make an instance of the
229
- Animal class but this time we won't travel
230
- through its discriminator because we passed in
231
- _visited_composed_classes = (Animal,)
232
- brand_id ([str]): A list of brand Id's to limit the search results to. [optional] # noqa: E501
233
- """
234
-
235
- _check_type = kwargs.pop('_check_type', True)
236
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
237
- _path_to_item = kwargs.pop('_path_to_item', ())
238
- _configuration = kwargs.pop('_configuration', None)
239
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
240
-
241
- if args:
242
- for arg in args:
243
- if isinstance(arg, dict):
244
- kwargs.update(arg)
245
- else:
246
- raise ApiTypeError(
247
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
248
- args,
249
- self.__class__.__name__,
250
- ),
251
- path_to_item=_path_to_item,
252
- valid_classes=(self.__class__,),
253
- )
254
-
255
- self._data_store = {}
256
- self._check_type = _check_type
257
- self._spec_property_naming = _spec_property_naming
258
- self._path_to_item = _path_to_item
259
- self._configuration = _configuration
260
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261
-
262
- self.search_string = search_string
263
- for var_name, var_value in kwargs.items():
264
- if var_name not in self.attribute_map and \
265
- self._configuration is not None and \
266
- self._configuration.discard_unknown_keys and \
267
- self.additional_properties_type is None:
268
- # discard variable.
269
- continue
270
- setattr(self, var_name, var_value)
271
- if var_name in self.read_only_vars:
272
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
273
- f"class with read only attributes.")
@@ -1,347 +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 SkuSlimDataPreview(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
- ('global_brand_name',): {
62
- 'max_length': 120,
63
- 'min_length': 0,
64
- },
65
- ('category',): {
66
- 'max_length': 1000,
67
- 'min_length': 0,
68
- },
69
- ('name',): {
70
- 'max_length': 1000,
71
- 'min_length': 0,
72
- },
73
- ('retailer_brand_name',): {
74
- 'max_length': 120,
75
- 'min_length': 0,
76
- },
77
- }
78
-
79
- @cached_property
80
- def additional_properties_type():
81
- """
82
- This must be a method because a model may have properties that are
83
- of type self, this must run after the class is loaded
84
- """
85
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
86
-
87
- _nullable = False
88
-
89
- @cached_property
90
- def openapi_types():
91
- """
92
- This must be a method because a model may have properties that are
93
- of type self, this must run after the class is loaded
94
-
95
- Returns
96
- openapi_types (dict): The key is attribute name
97
- and the value is attribute type.
98
- """
99
- return {
100
- 'category_id': (str,), # noqa: E501
101
- 'global_brand_id': (str,), # noqa: E501
102
- 'global_brand_name': (str,), # noqa: E501
103
- 'is_in_stock': (bool,), # noqa: E501
104
- 'price': (float, none_type,), # noqa: E501
105
- 'updated_at': (datetime,), # noqa: E501
106
- 'category': (str,), # noqa: E501
107
- 'global_category_id': (str,), # noqa: E501
108
- 'gtin': (str, none_type,), # noqa: E501
109
- 'image_url': (str,), # noqa: E501
110
- 'mpn': (str, none_type,), # noqa: E501
111
- 'name': (str,), # noqa: E501
112
- 'retailer_brand_id': (str,), # noqa: E501
113
- 'retailer_brand_name': (str,), # noqa: E501
114
- }
115
-
116
- @cached_property
117
- def discriminator():
118
- return None
119
-
120
-
121
- attribute_map = {
122
- 'category_id': 'categoryId', # noqa: E501
123
- 'global_brand_id': 'globalBrandId', # noqa: E501
124
- 'global_brand_name': 'globalBrandName', # noqa: E501
125
- 'is_in_stock': 'isInStock', # noqa: E501
126
- 'price': 'price', # noqa: E501
127
- 'updated_at': 'updatedAt', # noqa: E501
128
- 'category': 'category', # noqa: E501
129
- 'global_category_id': 'globalCategoryId', # noqa: E501
130
- 'gtin': 'gtin', # noqa: E501
131
- 'image_url': 'imageUrl', # noqa: E501
132
- 'mpn': 'mpn', # noqa: E501
133
- 'name': 'name', # noqa: E501
134
- 'retailer_brand_id': 'retailerBrandId', # noqa: E501
135
- 'retailer_brand_name': 'retailerBrandName', # noqa: E501
136
- }
137
-
138
- read_only_vars = {
139
- }
140
-
141
- _composed_schemas = {}
142
-
143
- @classmethod
144
- @convert_js_args_to_python_args
145
- def _from_openapi_data(cls, category_id, global_brand_id, global_brand_name, is_in_stock, price, updated_at, *args, **kwargs): # noqa: E501
146
- """SkuSlimDataPreview - a model defined in OpenAPI
147
-
148
- Args:
149
- category_id (str): The category Id.
150
- global_brand_id (str): The global brand id associated to the product.
151
- global_brand_name (str): The name of the global brand.
152
- is_in_stock (bool): An indication of if the retailer currently has the product in stock.
153
- price (float, none_type): The price of the product on the retailer site. Can be omitted in certain circumstances
154
- updated_at (datetime): The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string.
155
-
156
- Keyword Args:
157
- _check_type (bool): if True, values for parameters in openapi_types
158
- will be type checked and a TypeError will be
159
- raised if the wrong type is input.
160
- Defaults to True
161
- _path_to_item (tuple/list): This is a list of keys or values to
162
- drill down to the model in received_data
163
- when deserializing a response
164
- _spec_property_naming (bool): True if the variable names in the input data
165
- are serialized names, as specified in the OpenAPI document.
166
- False if the variable names in the input data
167
- are pythonic names, e.g. snake case (default)
168
- _configuration (Configuration): the instance to use when
169
- deserializing a file_type parameter.
170
- If passed, type conversion is attempted
171
- If omitted no type conversion is done.
172
- _visited_composed_classes (tuple): This stores a tuple of
173
- classes that we have traveled through so that
174
- if we see that class again we will not use its
175
- discriminator again.
176
- When traveling through a discriminator, the
177
- composed schema that is
178
- is traveled through is added to this set.
179
- For example if Animal has a discriminator
180
- petType and we pass in "Dog", and the class Dog
181
- allOf includes Animal, we move through Animal
182
- once using the discriminator, and pick Dog.
183
- Then in Dog, we will make an instance of the
184
- Animal class but this time we won't travel
185
- through its discriminator because we passed in
186
- _visited_composed_classes = (Animal,)
187
- category (str): The full category breadcrumb in the retailers catalog.. [optional] # noqa: E501
188
- global_category_id (str): The global category Id.. [optional] # noqa: E501
189
- gtin (str, none_type): A GTIN identifier for the product if available. Covers variations such as EANs and UPCs.. [optional] # noqa: E501
190
- image_url (str): An http image resource provided by the retailer.. [optional] # noqa: E501
191
- mpn (str, none_type): The MPN for the product if available.. [optional] # noqa: E501
192
- name (str): A short product name.. [optional] # noqa: E501
193
- retailer_brand_id (str): The retailer brand id associated to the product.. [optional] # noqa: E501
194
- retailer_brand_name (str): The name of the retailer brand.. [optional] # noqa: E501
195
- """
196
-
197
- _check_type = kwargs.pop('_check_type', True)
198
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
199
- _path_to_item = kwargs.pop('_path_to_item', ())
200
- _configuration = kwargs.pop('_configuration', None)
201
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
202
-
203
- self = super(OpenApiModel, cls).__new__(cls)
204
-
205
- if args:
206
- for arg in args:
207
- if isinstance(arg, dict):
208
- kwargs.update(arg)
209
- else:
210
- raise ApiTypeError(
211
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
212
- args,
213
- self.__class__.__name__,
214
- ),
215
- path_to_item=_path_to_item,
216
- valid_classes=(self.__class__,),
217
- )
218
-
219
- self._data_store = {}
220
- self._check_type = _check_type
221
- self._spec_property_naming = _spec_property_naming
222
- self._path_to_item = _path_to_item
223
- self._configuration = _configuration
224
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
225
-
226
- self.category_id = category_id
227
- self.global_brand_id = global_brand_id
228
- self.global_brand_name = global_brand_name
229
- self.is_in_stock = is_in_stock
230
- self.price = price
231
- self.updated_at = updated_at
232
- for var_name, var_value in kwargs.items():
233
- if var_name not in self.attribute_map and \
234
- self._configuration is not None and \
235
- self._configuration.discard_unknown_keys and \
236
- self.additional_properties_type is None:
237
- # discard variable.
238
- continue
239
- setattr(self, var_name, var_value)
240
- return self
241
-
242
- required_properties = set([
243
- '_data_store',
244
- '_check_type',
245
- '_spec_property_naming',
246
- '_path_to_item',
247
- '_configuration',
248
- '_visited_composed_classes',
249
- ])
250
-
251
- @convert_js_args_to_python_args
252
- def __init__(self, category_id, global_brand_id, global_brand_name, is_in_stock, price, updated_at, *args, **kwargs): # noqa: E501
253
- """SkuSlimDataPreview - a model defined in OpenAPI
254
-
255
- Args:
256
- category_id (str): The category Id.
257
- global_brand_id (str): The global brand id associated to the product.
258
- global_brand_name (str): The name of the global brand.
259
- is_in_stock (bool): An indication of if the retailer currently has the product in stock.
260
- price (float, none_type): The price of the product on the retailer site. Can be omitted in certain circumstances
261
- updated_at (datetime): The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string.
262
-
263
- Keyword Args:
264
- _check_type (bool): if True, values for parameters in openapi_types
265
- will be type checked and a TypeError will be
266
- raised if the wrong type is input.
267
- Defaults to True
268
- _path_to_item (tuple/list): This is a list of keys or values to
269
- drill down to the model in received_data
270
- when deserializing a response
271
- _spec_property_naming (bool): True if the variable names in the input data
272
- are serialized names, as specified in the OpenAPI document.
273
- False if the variable names in the input data
274
- are pythonic names, e.g. snake case (default)
275
- _configuration (Configuration): the instance to use when
276
- deserializing a file_type parameter.
277
- If passed, type conversion is attempted
278
- If omitted no type conversion is done.
279
- _visited_composed_classes (tuple): This stores a tuple of
280
- classes that we have traveled through so that
281
- if we see that class again we will not use its
282
- discriminator again.
283
- When traveling through a discriminator, the
284
- composed schema that is
285
- is traveled through is added to this set.
286
- For example if Animal has a discriminator
287
- petType and we pass in "Dog", and the class Dog
288
- allOf includes Animal, we move through Animal
289
- once using the discriminator, and pick Dog.
290
- Then in Dog, we will make an instance of the
291
- Animal class but this time we won't travel
292
- through its discriminator because we passed in
293
- _visited_composed_classes = (Animal,)
294
- category (str): The full category breadcrumb in the retailers catalog.. [optional] # noqa: E501
295
- global_category_id (str): The global category Id.. [optional] # noqa: E501
296
- gtin (str, none_type): A GTIN identifier for the product if available. Covers variations such as EANs and UPCs.. [optional] # noqa: E501
297
- image_url (str): An http image resource provided by the retailer.. [optional] # noqa: E501
298
- mpn (str, none_type): The MPN for the product if available.. [optional] # noqa: E501
299
- name (str): A short product name.. [optional] # noqa: E501
300
- retailer_brand_id (str): The retailer brand id associated to the product.. [optional] # noqa: E501
301
- retailer_brand_name (str): The name of the retailer brand.. [optional] # noqa: E501
302
- """
303
-
304
- _check_type = kwargs.pop('_check_type', True)
305
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
306
- _path_to_item = kwargs.pop('_path_to_item', ())
307
- _configuration = kwargs.pop('_configuration', None)
308
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
309
-
310
- if args:
311
- for arg in args:
312
- if isinstance(arg, dict):
313
- kwargs.update(arg)
314
- else:
315
- raise ApiTypeError(
316
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
317
- args,
318
- self.__class__.__name__,
319
- ),
320
- path_to_item=_path_to_item,
321
- valid_classes=(self.__class__,),
322
- )
323
-
324
- self._data_store = {}
325
- self._check_type = _check_type
326
- self._spec_property_naming = _spec_property_naming
327
- self._path_to_item = _path_to_item
328
- self._configuration = _configuration
329
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
330
-
331
- self.category_id = category_id
332
- self.global_brand_id = global_brand_id
333
- self.global_brand_name = global_brand_name
334
- self.is_in_stock = is_in_stock
335
- self.price = price
336
- self.updated_at = updated_at
337
- for var_name, var_value in kwargs.items():
338
- if var_name not in self.attribute_map and \
339
- self._configuration is not None and \
340
- self._configuration.discard_unknown_keys and \
341
- self.additional_properties_type is None:
342
- # discard variable.
343
- continue
344
- setattr(self, var_name, var_value)
345
- if var_name in self.read_only_vars:
346
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
347
- f"class with read only attributes.")