criteo-api-retailmedia-sdk 2025.1.0.250129__py3-none-any.whl → 2025.1.0.250211__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.
Files changed (24) hide show
  1. {criteo_api_retailmedia_sdk-2025.1.0.250129.dist-info → criteo_api_retailmedia_sdk-2025.1.0.250211.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2025.1.0.250129.dist-info → criteo_api_retailmedia_sdk-2025.1.0.250211.dist-info}/RECORD +20 -24
  3. criteo_api_retailmedia_v2025_01/__init__.py +1 -1
  4. criteo_api_retailmedia_v2025_01/api/campaign_api.py +6 -167
  5. criteo_api_retailmedia_v2025_01/api_client.py +1 -1
  6. criteo_api_retailmedia_v2025_01/configuration.py +1 -1
  7. criteo_api_retailmedia_v2025_01/model/async_campaigns_report.py +4 -0
  8. criteo_api_retailmedia_v2025_01/model/async_line_items_report.py +4 -0
  9. criteo_api_retailmedia_v2025_01/model/balance_response_v2.py +4 -4
  10. criteo_api_retailmedia_v2025_01/model/campaign_attributes_v202301.py +8 -8
  11. criteo_api_retailmedia_v2025_01/model/campaign_v202301.py +8 -8
  12. criteo_api_retailmedia_v2025_01/model/editable_campaign_attributes_v202301.py +6 -6
  13. criteo_api_retailmedia_v2025_01/model/external_catalog_status.py +3 -3
  14. criteo_api_retailmedia_v2025_01/model/external_retailer.py +2 -0
  15. criteo_api_retailmedia_v2025_01/model/line_item_product_status.py +7 -7
  16. criteo_api_retailmedia_v2025_01/model/retail_media_contactlist_operation.py +4 -0
  17. criteo_api_retailmedia_v2025_01/model/retail_media_contactlist_operation_response_attributes.py +36 -20
  18. criteo_api_retailmedia_v2025_01/models/__init__.py +0 -4
  19. criteo_api_retailmedia_v2025_01/model/brand_preview.py +0 -269
  20. criteo_api_retailmedia_v2025_01/model/brand_preview_list_response.py +0 -281
  21. criteo_api_retailmedia_v2025_01/model/resource_of_brand_preview.py +0 -277
  22. criteo_api_retailmedia_v2025_01/model/retail_media_contactlist_operation_response_attributes_attributes.py +0 -297
  23. {criteo_api_retailmedia_sdk-2025.1.0.250129.dist-info → criteo_api_retailmedia_sdk-2025.1.0.250211.dist-info}/WHEEL +0 -0
  24. {criteo_api_retailmedia_sdk-2025.1.0.250129.dist-info → criteo_api_retailmedia_sdk-2025.1.0.250211.dist-info}/top_level.txt +0 -0
@@ -1,297 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2025-01
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_v2025_01.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_v2025_01.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class RetailMediaContactlistOperationResponseAttributesAttributes(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
- 'contact_list_id': (int,), # noqa: E501
85
- 'operation': (str,), # noqa: E501
86
- 'request_date': (datetime,), # noqa: E501
87
- 'identifier_type': (str, none_type,), # noqa: E501
88
- 'nb_invalid_identifiers': (int, none_type,), # noqa: E501
89
- 'nb_valid_identifiers': (int, none_type,), # noqa: E501
90
- 'sample_invalid_identifiers': ([str], none_type,), # noqa: E501
91
- }
92
-
93
- @cached_property
94
- def discriminator():
95
- return None
96
-
97
-
98
- attribute_map = {
99
- 'contact_list_id': 'contactListId', # noqa: E501
100
- 'operation': 'operation', # noqa: E501
101
- 'request_date': 'requestDate', # noqa: E501
102
- 'identifier_type': 'identifierType', # noqa: E501
103
- 'nb_invalid_identifiers': 'nbInvalidIdentifiers', # noqa: E501
104
- 'nb_valid_identifiers': 'nbValidIdentifiers', # noqa: E501
105
- 'sample_invalid_identifiers': 'sampleInvalidIdentifiers', # noqa: E501
106
- }
107
-
108
- read_only_vars = {
109
- }
110
-
111
- _composed_schemas = {}
112
-
113
- @classmethod
114
- @convert_js_args_to_python_args
115
- def _from_openapi_data(cls, contact_list_id, operation, request_date, *args, **kwargs): # noqa: E501
116
- """RetailMediaContactlistOperationResponseAttributesAttributes - a model defined in OpenAPI
117
-
118
- Args:
119
- contact_list_id (int): The affected user list id
120
- operation (str): The action recorded
121
- request_date (datetime): When the action was recorded
122
-
123
- Keyword Args:
124
- _check_type (bool): if True, values for parameters in openapi_types
125
- will be type checked and a TypeError will be
126
- raised if the wrong type is input.
127
- Defaults to True
128
- _path_to_item (tuple/list): This is a list of keys or values to
129
- drill down to the model in received_data
130
- when deserializing a response
131
- _spec_property_naming (bool): True if the variable names in the input data
132
- are serialized names, as specified in the OpenAPI document.
133
- False if the variable names in the input data
134
- are pythonic names, e.g. snake case (default)
135
- _configuration (Configuration): the instance to use when
136
- deserializing a file_type parameter.
137
- If passed, type conversion is attempted
138
- If omitted no type conversion is done.
139
- _visited_composed_classes (tuple): This stores a tuple of
140
- classes that we have traveled through so that
141
- if we see that class again we will not use its
142
- discriminator again.
143
- When traveling through a discriminator, the
144
- composed schema that is
145
- is traveled through is added to this set.
146
- For example if Animal has a discriminator
147
- petType and we pass in "Dog", and the class Dog
148
- allOf includes Animal, we move through Animal
149
- once using the discriminator, and pick Dog.
150
- Then in Dog, we will make an instance of the
151
- Animal class but this time we won't travel
152
- through its discriminator because we passed in
153
- _visited_composed_classes = (Animal,)
154
- identifier_type (str, none_type): The schema specified for of the identifiers. [optional] # noqa: E501
155
- nb_invalid_identifiers (int, none_type): How many identifiers were invalid for the specified schema. [optional] # noqa: E501
156
- nb_valid_identifiers (int, none_type): How many identifiers were valid for the specified schema. [optional] # noqa: E501
157
- sample_invalid_identifiers ([str], none_type): A sample of invalid identifiers if there is some. [optional] # noqa: E501
158
- """
159
-
160
- _check_type = kwargs.pop('_check_type', True)
161
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
162
- _path_to_item = kwargs.pop('_path_to_item', ())
163
- _configuration = kwargs.pop('_configuration', None)
164
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
165
-
166
- self = super(OpenApiModel, cls).__new__(cls)
167
-
168
- if args:
169
- for arg in args:
170
- if isinstance(arg, dict):
171
- kwargs.update(arg)
172
- else:
173
- raise ApiTypeError(
174
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
175
- args,
176
- self.__class__.__name__,
177
- ),
178
- path_to_item=_path_to_item,
179
- valid_classes=(self.__class__,),
180
- )
181
-
182
- self._data_store = {}
183
- self._check_type = _check_type
184
- self._spec_property_naming = _spec_property_naming
185
- self._path_to_item = _path_to_item
186
- self._configuration = _configuration
187
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
188
-
189
- self.contact_list_id = contact_list_id
190
- self.operation = operation
191
- self.request_date = request_date
192
- for var_name, var_value in kwargs.items():
193
- if var_name not in self.attribute_map and \
194
- self._configuration is not None and \
195
- self._configuration.discard_unknown_keys and \
196
- self.additional_properties_type is None:
197
- # discard variable.
198
- continue
199
- setattr(self, var_name, var_value)
200
- return self
201
-
202
- required_properties = set([
203
- '_data_store',
204
- '_check_type',
205
- '_spec_property_naming',
206
- '_path_to_item',
207
- '_configuration',
208
- '_visited_composed_classes',
209
- ])
210
-
211
- @convert_js_args_to_python_args
212
- def __init__(self, contact_list_id, operation, request_date, *args, **kwargs): # noqa: E501
213
- """RetailMediaContactlistOperationResponseAttributesAttributes - a model defined in OpenAPI
214
-
215
- Args:
216
- contact_list_id (int): The affected user list id
217
- operation (str): The action recorded
218
- request_date (datetime): When the action was recorded
219
-
220
- Keyword Args:
221
- _check_type (bool): if True, values for parameters in openapi_types
222
- will be type checked and a TypeError will be
223
- raised if the wrong type is input.
224
- Defaults to True
225
- _path_to_item (tuple/list): This is a list of keys or values to
226
- drill down to the model in received_data
227
- when deserializing a response
228
- _spec_property_naming (bool): True if the variable names in the input data
229
- are serialized names, as specified in the OpenAPI document.
230
- False if the variable names in the input data
231
- are pythonic names, e.g. snake case (default)
232
- _configuration (Configuration): the instance to use when
233
- deserializing a file_type parameter.
234
- If passed, type conversion is attempted
235
- If omitted no type conversion is done.
236
- _visited_composed_classes (tuple): This stores a tuple of
237
- classes that we have traveled through so that
238
- if we see that class again we will not use its
239
- discriminator again.
240
- When traveling through a discriminator, the
241
- composed schema that is
242
- is traveled through is added to this set.
243
- For example if Animal has a discriminator
244
- petType and we pass in "Dog", and the class Dog
245
- allOf includes Animal, we move through Animal
246
- once using the discriminator, and pick Dog.
247
- Then in Dog, we will make an instance of the
248
- Animal class but this time we won't travel
249
- through its discriminator because we passed in
250
- _visited_composed_classes = (Animal,)
251
- identifier_type (str, none_type): The schema specified for of the identifiers. [optional] # noqa: E501
252
- nb_invalid_identifiers (int, none_type): How many identifiers were invalid for the specified schema. [optional] # noqa: E501
253
- nb_valid_identifiers (int, none_type): How many identifiers were valid for the specified schema. [optional] # noqa: E501
254
- sample_invalid_identifiers ([str], none_type): A sample of invalid identifiers if there is some. [optional] # noqa: E501
255
- """
256
-
257
- _check_type = kwargs.pop('_check_type', True)
258
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
259
- _path_to_item = kwargs.pop('_path_to_item', ())
260
- _configuration = kwargs.pop('_configuration', None)
261
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
262
-
263
- if args:
264
- for arg in args:
265
- if isinstance(arg, dict):
266
- kwargs.update(arg)
267
- else:
268
- raise ApiTypeError(
269
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
270
- args,
271
- self.__class__.__name__,
272
- ),
273
- path_to_item=_path_to_item,
274
- valid_classes=(self.__class__,),
275
- )
276
-
277
- self._data_store = {}
278
- self._check_type = _check_type
279
- self._spec_property_naming = _spec_property_naming
280
- self._path_to_item = _path_to_item
281
- self._configuration = _configuration
282
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
283
-
284
- self.contact_list_id = contact_list_id
285
- self.operation = operation
286
- self.request_date = request_date
287
- for var_name, var_value in kwargs.items():
288
- if var_name not in self.attribute_map and \
289
- self._configuration is not None and \
290
- self._configuration.discard_unknown_keys and \
291
- self.additional_properties_type is None:
292
- # discard variable.
293
- continue
294
- setattr(self, var_name, var_value)
295
- if var_name in self.read_only_vars:
296
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
297
- f"class with read only attributes.")