criteo-api-retailmedia-sdk 0.0.250425__py3-none-any.whl → 0.0.250606__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 (74) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +1204 -135
  3. criteo_api_retailmedia_preview/api/campaign_api.py +1205 -147
  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/categories_search_request_v1.py +270 -0
  7. criteo_api_retailmedia_preview/model/entity_resource_category202204.py +277 -0
  8. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204.py +281 -0
  9. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204_metadata.py +287 -0
  10. criteo_api_retailmedia_preview/model/entity_resource_of_sponsored_products_line_item.py +270 -0
  11. criteo_api_retailmedia_preview/model/entity_resource_outcome_of_sponsored_products_line_item.py +274 -0
  12. criteo_api_retailmedia_preview/model/flight_leg.py +287 -0
  13. criteo_api_retailmedia_preview/model/flight_schedule.py +262 -0
  14. criteo_api_retailmedia_preview/model/nillable_decimal.py +263 -0
  15. criteo_api_retailmedia_preview/model/page_of_sponsored_products_line_item.py +276 -0
  16. criteo_api_retailmedia_preview/model/recommended_categories_request_v1.py +272 -0
  17. criteo_api_retailmedia_preview/model/recommended_keywords_request_v1.py +266 -0
  18. criteo_api_retailmedia_preview/model/recommended_keywords_response_v1.py +263 -0
  19. criteo_api_retailmedia_preview/model/rm_audience_bulk_create_input_v1.py +269 -0
  20. criteo_api_retailmedia_preview/model/rm_audience_bulk_delete_input_v1.py +269 -0
  21. criteo_api_retailmedia_preview/model/rm_audience_bulk_update_input_v1.py +269 -0
  22. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1.py +272 -0
  23. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1_resource.py +273 -0
  24. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +269 -0
  25. criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1.py +291 -0
  26. criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1_resource.py +273 -0
  27. criteo_api_retailmedia_preview/model/rm_audience_delete_entity_v1_resource.py +271 -0
  28. criteo_api_retailmedia_preview/model/rm_audience_entity_v1_list_response.py +281 -0
  29. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +282 -0
  30. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1_resource.py +273 -0
  31. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_input_v1.py +269 -0
  32. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +272 -0
  33. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1_resource.py +273 -0
  34. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_sizes_input_v1.py +269 -0
  35. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +6 -0
  36. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +282 -0
  37. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1_resource.py +273 -0
  38. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_input_v1.py +269 -0
  39. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1.py +267 -0
  40. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_list_response.py +281 -0
  41. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_resource.py +277 -0
  42. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1.py +267 -0
  43. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_resource.py +273 -0
  44. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_response.py +281 -0
  45. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +6 -0
  46. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1.py +267 -0
  47. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_list_response.py +281 -0
  48. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_resource.py +277 -0
  49. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1.py +267 -0
  50. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_resource.py +273 -0
  51. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_response.py +281 -0
  52. criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1.py +279 -0
  53. criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1_resource.py +277 -0
  54. criteo_api_retailmedia_preview/model/rm_events_create_v1.py +305 -0
  55. criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +305 -0
  56. criteo_api_retailmedia_preview/model/rm_events_update_v1.py +307 -0
  57. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +387 -0
  58. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +335 -0
  59. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +335 -0
  60. criteo_api_retailmedia_preview/model/value_resource_categories_search_request_v1.py +273 -0
  61. criteo_api_retailmedia_preview/model/value_resource_input_categories_search_request_v1.py +269 -0
  62. criteo_api_retailmedia_preview/model/value_resource_input_of_sponsored_products_line_item_update_request_model.py +262 -0
  63. criteo_api_retailmedia_preview/model/value_resource_input_recommended_categories_request_v1.py +269 -0
  64. criteo_api_retailmedia_preview/model/value_resource_input_recommended_keywords_request_v1.py +262 -0
  65. criteo_api_retailmedia_preview/model/value_resource_of_sponsored_products_line_item_update_request_model.py +266 -0
  66. criteo_api_retailmedia_preview/model/value_resource_outcome_recommended_keywords_response_v1.py +274 -0
  67. criteo_api_retailmedia_preview/model/value_resource_recommended_categories_request_v1.py +273 -0
  68. criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_request_v1.py +266 -0
  69. criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_response_v1.py +266 -0
  70. criteo_api_retailmedia_preview/models/__init__.py +62 -0
  71. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/METADATA +3 -3
  72. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/RECORD +74 -12
  73. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/WHEEL +1 -1
  74. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,307 @@
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.nillable_decimal import NillableDecimal
34
+ globals()['NillableDecimal'] = NillableDecimal
35
+
36
+
37
+ class RmEventsUpdateV1(ModelNormal):
38
+ """NOTE: This class is auto generated by OpenAPI Generator.
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+
43
+ Attributes:
44
+ allowed_values (dict): The key is the tuple path to the attribute
45
+ and the for var_name this is (var_name,). The value is a dict
46
+ with a capitalized key describing the allowed value and an allowed
47
+ value. These dicts store the allowed enum values.
48
+ attribute_map (dict): The key is attribute name
49
+ and the value is json key in definition.
50
+ discriminator_value_class_map (dict): A dict to go from the discriminator
51
+ variable value to the discriminator class name.
52
+ validations (dict): The key is the tuple path to the attribute
53
+ and the for var_name this is (var_name,). The value is a dict
54
+ that stores validations for max_length, min_length, max_items,
55
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
+ inclusive_minimum, and regex.
57
+ additional_properties_type (tuple): A tuple of classes accepted
58
+ as additional properties values.
59
+ """
60
+
61
+ allowed_values = {
62
+ ('lookback_days',): {
63
+ 'UNKNOWN': "Unknown",
64
+ 'LAST7DAYS': "Last7Days",
65
+ 'LAST14DAYS': "Last14Days",
66
+ 'LAST30DAYS': "Last30Days",
67
+ 'LAST45DAYS': "Last45Days",
68
+ 'LAST60DAYS': "Last60Days",
69
+ 'LAST90DAYS': "Last90Days",
70
+ 'LAST120DAYS': "Last120Days",
71
+ 'LAST150DAYS': "Last150Days",
72
+ 'LAST180DAYS': "Last180Days",
73
+ },
74
+ ('shopper_activity',): {
75
+ 'UNKNOWN': "Unknown",
76
+ 'VIEW': "View",
77
+ 'BUY': "Buy",
78
+ 'ADDTOCART': "AddToCart",
79
+ },
80
+ }
81
+
82
+ validations = {
83
+ }
84
+
85
+ @cached_property
86
+ def additional_properties_type():
87
+ """
88
+ This must be a method because a model may have properties that are
89
+ of type self, this must run after the class is loaded
90
+ """
91
+ lazy_import()
92
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
93
+
94
+ _nullable = False
95
+
96
+ @cached_property
97
+ def openapi_types():
98
+ """
99
+ This must be a method because a model may have properties that are
100
+ of type self, this must run after the class is loaded
101
+
102
+ Returns
103
+ openapi_types (dict): The key is attribute name
104
+ and the value is attribute type.
105
+ """
106
+ lazy_import()
107
+ return {
108
+ 'brand_ids': ([str],), # noqa: E501
109
+ 'category_ids': ([str],), # noqa: E501
110
+ 'lookback_days': (str,), # noqa: E501
111
+ 'max_price': (NillableDecimal,), # noqa: E501
112
+ 'min_price': (NillableDecimal,), # noqa: E501
113
+ 'shopper_activity': (str,), # noqa: E501
114
+ }
115
+
116
+ @cached_property
117
+ def discriminator():
118
+ return None
119
+
120
+
121
+ attribute_map = {
122
+ 'brand_ids': 'brandIds', # noqa: E501
123
+ 'category_ids': 'categoryIds', # noqa: E501
124
+ 'lookback_days': 'lookbackDays', # noqa: E501
125
+ 'max_price': 'maxPrice', # noqa: E501
126
+ 'min_price': 'minPrice', # noqa: E501
127
+ 'shopper_activity': 'shopperActivity', # noqa: E501
128
+ }
129
+
130
+ read_only_vars = {
131
+ }
132
+
133
+ _composed_schemas = {}
134
+
135
+ @classmethod
136
+ @convert_js_args_to_python_args
137
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
138
+ """RmEventsUpdateV1 - a model defined in OpenAPI
139
+
140
+ Keyword Args:
141
+ _check_type (bool): if True, values for parameters in openapi_types
142
+ will be type checked and a TypeError will be
143
+ raised if the wrong type is input.
144
+ Defaults to True
145
+ _path_to_item (tuple/list): This is a list of keys or values to
146
+ drill down to the model in received_data
147
+ when deserializing a response
148
+ _spec_property_naming (bool): True if the variable names in the input data
149
+ are serialized names, as specified in the OpenAPI document.
150
+ False if the variable names in the input data
151
+ are pythonic names, e.g. snake case (default)
152
+ _configuration (Configuration): the instance to use when
153
+ deserializing a file_type parameter.
154
+ If passed, type conversion is attempted
155
+ If omitted no type conversion is done.
156
+ _visited_composed_classes (tuple): This stores a tuple of
157
+ classes that we have traveled through so that
158
+ if we see that class again we will not use its
159
+ discriminator again.
160
+ When traveling through a discriminator, the
161
+ composed schema that is
162
+ is traveled through is added to this set.
163
+ For example if Animal has a discriminator
164
+ petType and we pass in "Dog", and the class Dog
165
+ allOf includes Animal, we move through Animal
166
+ once using the discriminator, and pick Dog.
167
+ Then in Dog, we will make an instance of the
168
+ Animal class but this time we won't travel
169
+ through its discriminator because we passed in
170
+ _visited_composed_classes = (Animal,)
171
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
172
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
173
+ lookback_days (str): Number of days of the lookback windows. [optional] # noqa: E501
174
+ max_price (NillableDecimal): [optional] # noqa: E501
175
+ min_price (NillableDecimal): [optional] # noqa: E501
176
+ shopper_activity (str): Types of shopper activity.. [optional] # noqa: E501
177
+ """
178
+
179
+ _check_type = kwargs.pop('_check_type', True)
180
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
181
+ _path_to_item = kwargs.pop('_path_to_item', ())
182
+ _configuration = kwargs.pop('_configuration', None)
183
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
184
+
185
+ self = super(OpenApiModel, cls).__new__(cls)
186
+
187
+ if args:
188
+ for arg in args:
189
+ if isinstance(arg, dict):
190
+ kwargs.update(arg)
191
+ else:
192
+ raise ApiTypeError(
193
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
194
+ args,
195
+ self.__class__.__name__,
196
+ ),
197
+ path_to_item=_path_to_item,
198
+ valid_classes=(self.__class__,),
199
+ )
200
+
201
+ self._data_store = {}
202
+ self._check_type = _check_type
203
+ self._spec_property_naming = _spec_property_naming
204
+ self._path_to_item = _path_to_item
205
+ self._configuration = _configuration
206
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
207
+
208
+ for var_name, var_value in kwargs.items():
209
+ if var_name not in self.attribute_map and \
210
+ self._configuration is not None and \
211
+ self._configuration.discard_unknown_keys and \
212
+ self.additional_properties_type is None:
213
+ # discard variable.
214
+ continue
215
+ setattr(self, var_name, var_value)
216
+ return self
217
+
218
+ required_properties = set([
219
+ '_data_store',
220
+ '_check_type',
221
+ '_spec_property_naming',
222
+ '_path_to_item',
223
+ '_configuration',
224
+ '_visited_composed_classes',
225
+ ])
226
+
227
+ @convert_js_args_to_python_args
228
+ def __init__(self, *args, **kwargs): # noqa: E501
229
+ """RmEventsUpdateV1 - a model defined in OpenAPI
230
+
231
+ Keyword Args:
232
+ _check_type (bool): if True, values for parameters in openapi_types
233
+ will be type checked and a TypeError will be
234
+ raised if the wrong type is input.
235
+ Defaults to True
236
+ _path_to_item (tuple/list): This is a list of keys or values to
237
+ drill down to the model in received_data
238
+ when deserializing a response
239
+ _spec_property_naming (bool): True if the variable names in the input data
240
+ are serialized names, as specified in the OpenAPI document.
241
+ False if the variable names in the input data
242
+ are pythonic names, e.g. snake case (default)
243
+ _configuration (Configuration): the instance to use when
244
+ deserializing a file_type parameter.
245
+ If passed, type conversion is attempted
246
+ If omitted no type conversion is done.
247
+ _visited_composed_classes (tuple): This stores a tuple of
248
+ classes that we have traveled through so that
249
+ if we see that class again we will not use its
250
+ discriminator again.
251
+ When traveling through a discriminator, the
252
+ composed schema that is
253
+ is traveled through is added to this set.
254
+ For example if Animal has a discriminator
255
+ petType and we pass in "Dog", and the class Dog
256
+ allOf includes Animal, we move through Animal
257
+ once using the discriminator, and pick Dog.
258
+ Then in Dog, we will make an instance of the
259
+ Animal class but this time we won't travel
260
+ through its discriminator because we passed in
261
+ _visited_composed_classes = (Animal,)
262
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
263
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
264
+ lookback_days (str): Number of days of the lookback windows. [optional] # noqa: E501
265
+ max_price (NillableDecimal): [optional] # noqa: E501
266
+ min_price (NillableDecimal): [optional] # noqa: E501
267
+ shopper_activity (str): Types of shopper activity.. [optional] # noqa: E501
268
+ """
269
+
270
+ _check_type = kwargs.pop('_check_type', True)
271
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
272
+ _path_to_item = kwargs.pop('_path_to_item', ())
273
+ _configuration = kwargs.pop('_configuration', None)
274
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
275
+
276
+ if args:
277
+ for arg in args:
278
+ if isinstance(arg, dict):
279
+ kwargs.update(arg)
280
+ else:
281
+ raise ApiTypeError(
282
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
283
+ args,
284
+ self.__class__.__name__,
285
+ ),
286
+ path_to_item=_path_to_item,
287
+ valid_classes=(self.__class__,),
288
+ )
289
+
290
+ self._data_store = {}
291
+ self._check_type = _check_type
292
+ self._spec_property_naming = _spec_property_naming
293
+ self._path_to_item = _path_to_item
294
+ self._configuration = _configuration
295
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
296
+
297
+ for var_name, var_value in kwargs.items():
298
+ if var_name not in self.attribute_map and \
299
+ self._configuration is not None and \
300
+ self._configuration.discard_unknown_keys and \
301
+ self.additional_properties_type is None:
302
+ # discard variable.
303
+ continue
304
+ setattr(self, var_name, var_value)
305
+ if var_name in self.read_only_vars:
306
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
307
+ f"class with read only attributes.")