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
@@ -76,7 +76,7 @@ class ApiClient(object):
76
76
  self.default_headers[header_name] = header_value
77
77
  self.cookie = cookie
78
78
  # Set default User-Agent.
79
- self.user_agent = 'OpenAPI-Generator/0.0.250317/python'
79
+ self.user_agent = 'OpenAPI-Generator/0.0.250327/python'
80
80
 
81
81
  def __enter__(self):
82
82
  return self
@@ -395,7 +395,7 @@ class Configuration(object):
395
395
  "OS: {env}\n"\
396
396
  "Python Version: {pyversion}\n"\
397
397
  "Version of the API: Preview\n"\
398
- "SDK Package Version: 0.0.250317".\
398
+ "SDK Package Version: 0.0.250327".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -0,0 +1,284 @@
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
+ 'GLOBALCATEGORYID': "GlobalCategoryId",
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
+ 'retailer_id_filter': ([int],), # noqa: E501
95
+ 'modified_after': (datetime,), # noqa: E501
96
+ 'include_fields': ([str],), # 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
+ 'retailer_id_filter': 'retailerIdFilter', # noqa: E501
107
+ 'modified_after': 'modifiedAfter', # noqa: E501
108
+ 'include_fields': 'includeFields', # 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
+ retailer_id_filter ([int]): The retailer ids to filter the catalog by.. [optional] # noqa: E501
154
+ modified_after (datetime): Only products modified after this time will be returned.. [optional] # noqa: E501
155
+ include_fields ([str]): Out of the optional fields, only the ones specified will be included in the catalog generated.. [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
+ retailer_id_filter ([int]): The retailer ids to filter the catalog by.. [optional] # noqa: E501
243
+ modified_after (datetime): Only products modified after this time will be returned.. [optional] # noqa: E501
244
+ include_fields ([str]): Out of the optional fields, only the ones specified will be included in the catalog generated.. [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.")
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class ExternalCatalogStatus(ModelNormal):
33
+ class CatalogStatusV2(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -89,11 +89,10 @@ class ExternalCatalogStatus(ModelNormal):
89
89
  """
90
90
  return {
91
91
  'status': (str,), # noqa: E501
92
- 'currency': (str, none_type,), # noqa: E501
92
+ 'created_at': (datetime,), # noqa: E501
93
93
  'row_count': (int, none_type,), # noqa: E501
94
94
  'file_size_bytes': (int, none_type,), # noqa: E501
95
95
  'md5_checksum': (str, none_type,), # noqa: E501
96
- 'created_at': (datetime,), # noqa: E501
97
96
  'message': (str, none_type,), # noqa: E501
98
97
  }
99
98
 
@@ -104,11 +103,10 @@ class ExternalCatalogStatus(ModelNormal):
104
103
 
105
104
  attribute_map = {
106
105
  'status': 'status', # noqa: E501
107
- 'currency': 'currency', # noqa: E501
106
+ 'created_at': 'createdAt', # noqa: E501
108
107
  'row_count': 'rowCount', # noqa: E501
109
108
  'file_size_bytes': 'fileSizeBytes', # noqa: E501
110
109
  'md5_checksum': 'md5Checksum', # noqa: E501
111
- 'created_at': 'createdAt', # noqa: E501
112
110
  'message': 'message', # noqa: E501
113
111
  }
114
112
 
@@ -119,17 +117,12 @@ class ExternalCatalogStatus(ModelNormal):
119
117
 
120
118
  @classmethod
121
119
  @convert_js_args_to_python_args
122
- def _from_openapi_data(cls, status, currency, row_count, file_size_bytes, md5_checksum, created_at, message, *args, **kwargs): # noqa: E501
123
- """ExternalCatalogStatus - a model defined in OpenAPI
120
+ def _from_openapi_data(cls, status, created_at, *args, **kwargs): # noqa: E501
121
+ """CatalogStatusV2 - a model defined in OpenAPI
124
122
 
125
123
  Args:
126
124
  status (str): An enumeration of the status of the catalog.
127
- currency (str, none_type): An ISO4217 representation of the currency products are listed under in this catalog.
128
- row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status.
129
- file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status.
130
- md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status.
131
125
  created_at (datetime): The time this catalog was created. Represented as a UTC ISO8601 string.
132
- message (str, none_type): An optional information message intended for developer consumption.
133
126
 
134
127
  Keyword Args:
135
128
  _check_type (bool): if True, values for parameters in openapi_types
@@ -162,6 +155,10 @@ class ExternalCatalogStatus(ModelNormal):
162
155
  Animal class but this time we won't travel
163
156
  through its discriminator because we passed in
164
157
  _visited_composed_classes = (Animal,)
158
+ row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status.. [optional] # noqa: E501
159
+ file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status.. [optional] # noqa: E501
160
+ md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status.. [optional] # noqa: E501
161
+ message (str, none_type): An optional information message intended for developer consumption.. [optional] # noqa: E501
165
162
  """
166
163
 
167
164
  _check_type = kwargs.pop('_check_type', True)
@@ -194,12 +191,7 @@ class ExternalCatalogStatus(ModelNormal):
194
191
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
195
192
 
196
193
  self.status = status
197
- self.currency = currency
198
- self.row_count = row_count
199
- self.file_size_bytes = file_size_bytes
200
- self.md5_checksum = md5_checksum
201
194
  self.created_at = created_at
202
- self.message = message
203
195
  for var_name, var_value in kwargs.items():
204
196
  if var_name not in self.attribute_map and \
205
197
  self._configuration is not None and \
@@ -220,17 +212,12 @@ class ExternalCatalogStatus(ModelNormal):
220
212
  ])
221
213
 
222
214
  @convert_js_args_to_python_args
223
- def __init__(self, status, currency, row_count, file_size_bytes, md5_checksum, created_at, message, *args, **kwargs): # noqa: E501
224
- """ExternalCatalogStatus - a model defined in OpenAPI
215
+ def __init__(self, status, created_at, *args, **kwargs): # noqa: E501
216
+ """CatalogStatusV2 - a model defined in OpenAPI
225
217
 
226
218
  Args:
227
219
  status (str): An enumeration of the status of the catalog.
228
- currency (str, none_type): An ISO4217 representation of the currency products are listed under in this catalog.
229
- row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status.
230
- file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status.
231
- md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status.
232
220
  created_at (datetime): The time this catalog was created. Represented as a UTC ISO8601 string.
233
- message (str, none_type): An optional information message intended for developer consumption.
234
221
 
235
222
  Keyword Args:
236
223
  _check_type (bool): if True, values for parameters in openapi_types
@@ -263,6 +250,10 @@ class ExternalCatalogStatus(ModelNormal):
263
250
  Animal class but this time we won't travel
264
251
  through its discriminator because we passed in
265
252
  _visited_composed_classes = (Animal,)
253
+ row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status.. [optional] # noqa: E501
254
+ file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status.. [optional] # noqa: E501
255
+ md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status.. [optional] # noqa: E501
256
+ message (str, none_type): An optional information message intended for developer consumption.. [optional] # noqa: E501
266
257
  """
267
258
 
268
259
  _check_type = kwargs.pop('_check_type', True)
@@ -293,12 +284,7 @@ class ExternalCatalogStatus(ModelNormal):
293
284
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
294
285
 
295
286
  self.status = status
296
- self.currency = currency
297
- self.row_count = row_count
298
- self.file_size_bytes = file_size_bytes
299
- self.md5_checksum = md5_checksum
300
287
  self.created_at = created_at
301
- self.message = message
302
288
  for var_name, var_value in kwargs.items():
303
289
  if var_name not in self.attribute_map and \
304
290
  self._configuration is not None and \