criteo-api-retailmedia-sdk 2024.4.0.250409__py3-none-any.whl → 2024.4.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 (39) hide show
  1. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/RECORD +15 -39
  3. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_04/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_04/api/balance_api.py +10 -913
  6. criteo_api_retailmedia_v2024_04/api/campaign_api.py +102 -988
  7. criteo_api_retailmedia_v2024_04/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_04/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_04/model/async_campaigns_report.py +4 -4
  10. criteo_api_retailmedia_v2024_04/model/async_line_items_report.py +4 -4
  11. criteo_api_retailmedia_v2024_04/model/async_revenue_report.py +4 -4
  12. criteo_api_retailmedia_v2024_04/model/external_common_line_item.py +4 -0
  13. criteo_api_retailmedia_v2024_04/model/external_line_item_page202110.py +3 -3
  14. criteo_api_retailmedia_v2024_04/models/__init__.py +0 -24
  15. criteo_api_retailmedia_v2024_04/model/add_funds_to_balance_request.py +0 -269
  16. criteo_api_retailmedia_v2024_04/model/balance_response.py +0 -281
  17. criteo_api_retailmedia_v2024_04/model/balance_response_paged_list_response.py +0 -287
  18. criteo_api_retailmedia_v2024_04/model/change_dates_of_balance_request.py +0 -269
  19. criteo_api_retailmedia_v2024_04/model/change_details.py +0 -275
  20. criteo_api_retailmedia_v2024_04/model/create_balance_request.py +0 -269
  21. criteo_api_retailmedia_v2024_04/model/external_add_funds_to_balance.py +0 -279
  22. criteo_api_retailmedia_v2024_04/model/external_balance_response.py +0 -375
  23. criteo_api_retailmedia_v2024_04/model/external_change_dates_of_balance.py +0 -281
  24. criteo_api_retailmedia_v2024_04/model/external_create_balance.py +0 -314
  25. criteo_api_retailmedia_v2024_04/model/external_promoted_product202110.py +0 -263
  26. criteo_api_retailmedia_v2024_04/model/external_update_balance_model.py +0 -283
  27. criteo_api_retailmedia_v2024_04/model/insertion_order_history_change_data_capture.py +0 -303
  28. criteo_api_retailmedia_v2024_04/model/metadata.py +0 -273
  29. criteo_api_retailmedia_v2024_04/model/page_of_insertion_order_history_change_data_capture.py +0 -276
  30. criteo_api_retailmedia_v2024_04/model/promoted_product202110_list_request.py +0 -269
  31. criteo_api_retailmedia_v2024_04/model/promoted_product202110_paged_list_response.py +0 -287
  32. criteo_api_retailmedia_v2024_04/model/resource_of_add_funds_to_balance.py +0 -277
  33. criteo_api_retailmedia_v2024_04/model/resource_of_balance_response.py +0 -277
  34. criteo_api_retailmedia_v2024_04/model/resource_of_change_dates_of_balance.py +0 -277
  35. criteo_api_retailmedia_v2024_04/model/resource_of_create_balance.py +0 -277
  36. criteo_api_retailmedia_v2024_04/model/resource_of_promoted_product202110.py +0 -277
  37. criteo_api_retailmedia_v2024_04/model/resource_of_update_balance_model.py +0 -277
  38. criteo_api_retailmedia_v2024_04/model/update_balance_model_request.py +0 -269
  39. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.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: 2024-04
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_v2024_04.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_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class Metadata(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
- additional_properties_type = None
64
-
65
- _nullable = False
66
-
67
- @cached_property
68
- def openapi_types():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
-
73
- Returns
74
- openapi_types (dict): The key is attribute name
75
- and the value is attribute type.
76
- """
77
- return {
78
- 'limit': (int,), # noqa: E501
79
- 'offset': (int,), # noqa: E501
80
- 'count': (int, none_type,), # noqa: E501
81
- }
82
-
83
- @cached_property
84
- def discriminator():
85
- return None
86
-
87
-
88
- attribute_map = {
89
- 'limit': 'limit', # noqa: E501
90
- 'offset': 'offset', # noqa: E501
91
- 'count': 'count', # noqa: E501
92
- }
93
-
94
- read_only_vars = {
95
- }
96
-
97
- _composed_schemas = {}
98
-
99
- @classmethod
100
- @convert_js_args_to_python_args
101
- def _from_openapi_data(cls, limit, offset, *args, **kwargs): # noqa: E501
102
- """Metadata - a model defined in OpenAPI
103
-
104
- Args:
105
- limit (int): The number of elements to be returned.
106
- offset (int): The (zero-based) starting offset in the collection.
107
-
108
- Keyword Args:
109
- _check_type (bool): if True, values for parameters in openapi_types
110
- will be type checked and a TypeError will be
111
- raised if the wrong type is input.
112
- Defaults to True
113
- _path_to_item (tuple/list): This is a list of keys or values to
114
- drill down to the model in received_data
115
- when deserializing a response
116
- _spec_property_naming (bool): True if the variable names in the input data
117
- are serialized names, as specified in the OpenAPI document.
118
- False if the variable names in the input data
119
- are pythonic names, e.g. snake case (default)
120
- _configuration (Configuration): the instance to use when
121
- deserializing a file_type parameter.
122
- If passed, type conversion is attempted
123
- If omitted no type conversion is done.
124
- _visited_composed_classes (tuple): This stores a tuple of
125
- classes that we have traveled through so that
126
- if we see that class again we will not use its
127
- discriminator again.
128
- When traveling through a discriminator, the
129
- composed schema that is
130
- is traveled through is added to this set.
131
- For example if Animal has a discriminator
132
- petType and we pass in "Dog", and the class Dog
133
- allOf includes Animal, we move through Animal
134
- once using the discriminator, and pick Dog.
135
- Then in Dog, we will make an instance of the
136
- Animal class but this time we won't travel
137
- through its discriminator because we passed in
138
- _visited_composed_classes = (Animal,)
139
- count (int, none_type): [optional] # noqa: E501
140
- """
141
-
142
- _check_type = kwargs.pop('_check_type', True)
143
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
144
- _path_to_item = kwargs.pop('_path_to_item', ())
145
- _configuration = kwargs.pop('_configuration', None)
146
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
147
-
148
- self = super(OpenApiModel, cls).__new__(cls)
149
-
150
- if args:
151
- for arg in args:
152
- if isinstance(arg, dict):
153
- kwargs.update(arg)
154
- else:
155
- raise ApiTypeError(
156
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
157
- args,
158
- self.__class__.__name__,
159
- ),
160
- path_to_item=_path_to_item,
161
- valid_classes=(self.__class__,),
162
- )
163
-
164
- self._data_store = {}
165
- self._check_type = _check_type
166
- self._spec_property_naming = _spec_property_naming
167
- self._path_to_item = _path_to_item
168
- self._configuration = _configuration
169
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
-
171
- self.limit = limit
172
- self.offset = offset
173
- for var_name, var_value in kwargs.items():
174
- if var_name not in self.attribute_map and \
175
- self._configuration is not None and \
176
- self._configuration.discard_unknown_keys and \
177
- self.additional_properties_type is None:
178
- # discard variable.
179
- continue
180
- setattr(self, var_name, var_value)
181
- return self
182
-
183
- required_properties = set([
184
- '_data_store',
185
- '_check_type',
186
- '_spec_property_naming',
187
- '_path_to_item',
188
- '_configuration',
189
- '_visited_composed_classes',
190
- ])
191
-
192
- @convert_js_args_to_python_args
193
- def __init__(self, limit, offset, *args, **kwargs): # noqa: E501
194
- """Metadata - a model defined in OpenAPI
195
-
196
- Args:
197
- limit (int): The number of elements to be returned.
198
- offset (int): The (zero-based) starting offset in the collection.
199
-
200
- Keyword Args:
201
- _check_type (bool): if True, values for parameters in openapi_types
202
- will be type checked and a TypeError will be
203
- raised if the wrong type is input.
204
- Defaults to True
205
- _path_to_item (tuple/list): This is a list of keys or values to
206
- drill down to the model in received_data
207
- when deserializing a response
208
- _spec_property_naming (bool): True if the variable names in the input data
209
- are serialized names, as specified in the OpenAPI document.
210
- False if the variable names in the input data
211
- are pythonic names, e.g. snake case (default)
212
- _configuration (Configuration): the instance to use when
213
- deserializing a file_type parameter.
214
- If passed, type conversion is attempted
215
- If omitted no type conversion is done.
216
- _visited_composed_classes (tuple): This stores a tuple of
217
- classes that we have traveled through so that
218
- if we see that class again we will not use its
219
- discriminator again.
220
- When traveling through a discriminator, the
221
- composed schema that is
222
- is traveled through is added to this set.
223
- For example if Animal has a discriminator
224
- petType and we pass in "Dog", and the class Dog
225
- allOf includes Animal, we move through Animal
226
- once using the discriminator, and pick Dog.
227
- Then in Dog, we will make an instance of the
228
- Animal class but this time we won't travel
229
- through its discriminator because we passed in
230
- _visited_composed_classes = (Animal,)
231
- count (int, none_type): [optional] # noqa: E501
232
- """
233
-
234
- _check_type = kwargs.pop('_check_type', True)
235
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
236
- _path_to_item = kwargs.pop('_path_to_item', ())
237
- _configuration = kwargs.pop('_configuration', None)
238
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
239
-
240
- if args:
241
- for arg in args:
242
- if isinstance(arg, dict):
243
- kwargs.update(arg)
244
- else:
245
- raise ApiTypeError(
246
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
247
- args,
248
- self.__class__.__name__,
249
- ),
250
- path_to_item=_path_to_item,
251
- valid_classes=(self.__class__,),
252
- )
253
-
254
- self._data_store = {}
255
- self._check_type = _check_type
256
- self._spec_property_naming = _spec_property_naming
257
- self._path_to_item = _path_to_item
258
- self._configuration = _configuration
259
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
260
-
261
- self.limit = limit
262
- self.offset = offset
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,276 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
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_v2024_04.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_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2024_04.model.insertion_order_history_change_data_capture import InsertionOrderHistoryChangeDataCapture
34
- from criteo_api_retailmedia_v2024_04.model.metadata import Metadata
35
- globals()['InsertionOrderHistoryChangeDataCapture'] = InsertionOrderHistoryChangeDataCapture
36
- globals()['Metadata'] = Metadata
37
-
38
-
39
- class PageOfInsertionOrderHistoryChangeDataCapture(ModelNormal):
40
- """NOTE: This class is auto generated by OpenAPI Generator.
41
- Ref: https://openapi-generator.tech
42
-
43
- Do not edit the class manually.
44
-
45
- Attributes:
46
- allowed_values (dict): The key is the tuple path to the attribute
47
- and the for var_name this is (var_name,). The value is a dict
48
- with a capitalized key describing the allowed value and an allowed
49
- value. These dicts store the allowed enum values.
50
- attribute_map (dict): The key is attribute name
51
- and the value is json key in definition.
52
- discriminator_value_class_map (dict): A dict to go from the discriminator
53
- variable value to the discriminator class name.
54
- validations (dict): The key is the tuple path to the attribute
55
- and the for var_name this is (var_name,). The value is a dict
56
- that stores validations for max_length, min_length, max_items,
57
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
- inclusive_minimum, and regex.
59
- additional_properties_type (tuple): A tuple of classes accepted
60
- as additional properties values.
61
- """
62
-
63
- allowed_values = {
64
- }
65
-
66
- validations = {
67
- }
68
-
69
- additional_properties_type = None
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
- lazy_import()
84
- return {
85
- 'data': ([InsertionOrderHistoryChangeDataCapture],), # noqa: E501
86
- 'meta': (Metadata,), # noqa: E501
87
- }
88
-
89
- @cached_property
90
- def discriminator():
91
- return None
92
-
93
-
94
- attribute_map = {
95
- 'data': 'data', # noqa: E501
96
- 'meta': 'meta', # noqa: E501
97
- }
98
-
99
- read_only_vars = {
100
- }
101
-
102
- _composed_schemas = {}
103
-
104
- @classmethod
105
- @convert_js_args_to_python_args
106
- def _from_openapi_data(cls, data, meta, *args, **kwargs): # noqa: E501
107
- """PageOfInsertionOrderHistoryChangeDataCapture - a model defined in OpenAPI
108
-
109
- Args:
110
- data ([InsertionOrderHistoryChangeDataCapture]):
111
- meta (Metadata):
112
-
113
- Keyword Args:
114
- _check_type (bool): if True, values for parameters in openapi_types
115
- will be type checked and a TypeError will be
116
- raised if the wrong type is input.
117
- Defaults to True
118
- _path_to_item (tuple/list): This is a list of keys or values to
119
- drill down to the model in received_data
120
- when deserializing a response
121
- _spec_property_naming (bool): True if the variable names in the input data
122
- are serialized names, as specified in the OpenAPI document.
123
- False if the variable names in the input data
124
- are pythonic names, e.g. snake case (default)
125
- _configuration (Configuration): the instance to use when
126
- deserializing a file_type parameter.
127
- If passed, type conversion is attempted
128
- If omitted no type conversion is done.
129
- _visited_composed_classes (tuple): This stores a tuple of
130
- classes that we have traveled through so that
131
- if we see that class again we will not use its
132
- discriminator again.
133
- When traveling through a discriminator, the
134
- composed schema that is
135
- is traveled through is added to this set.
136
- For example if Animal has a discriminator
137
- petType and we pass in "Dog", and the class Dog
138
- allOf includes Animal, we move through Animal
139
- once using the discriminator, and pick Dog.
140
- Then in Dog, we will make an instance of the
141
- Animal class but this time we won't travel
142
- through its discriminator because we passed in
143
- _visited_composed_classes = (Animal,)
144
- """
145
-
146
- _check_type = kwargs.pop('_check_type', True)
147
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
148
- _path_to_item = kwargs.pop('_path_to_item', ())
149
- _configuration = kwargs.pop('_configuration', None)
150
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
151
-
152
- self = super(OpenApiModel, cls).__new__(cls)
153
-
154
- if args:
155
- for arg in args:
156
- if isinstance(arg, dict):
157
- kwargs.update(arg)
158
- else:
159
- raise ApiTypeError(
160
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
161
- args,
162
- self.__class__.__name__,
163
- ),
164
- path_to_item=_path_to_item,
165
- valid_classes=(self.__class__,),
166
- )
167
-
168
- self._data_store = {}
169
- self._check_type = _check_type
170
- self._spec_property_naming = _spec_property_naming
171
- self._path_to_item = _path_to_item
172
- self._configuration = _configuration
173
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
174
-
175
- self.data = data
176
- self.meta = meta
177
- for var_name, var_value in kwargs.items():
178
- if var_name not in self.attribute_map and \
179
- self._configuration is not None and \
180
- self._configuration.discard_unknown_keys and \
181
- self.additional_properties_type is None:
182
- # discard variable.
183
- continue
184
- setattr(self, var_name, var_value)
185
- return self
186
-
187
- required_properties = set([
188
- '_data_store',
189
- '_check_type',
190
- '_spec_property_naming',
191
- '_path_to_item',
192
- '_configuration',
193
- '_visited_composed_classes',
194
- ])
195
-
196
- @convert_js_args_to_python_args
197
- def __init__(self, data, meta, *args, **kwargs): # noqa: E501
198
- """PageOfInsertionOrderHistoryChangeDataCapture - a model defined in OpenAPI
199
-
200
- Args:
201
- data ([InsertionOrderHistoryChangeDataCapture]):
202
- meta (Metadata):
203
-
204
- Keyword Args:
205
- _check_type (bool): if True, values for parameters in openapi_types
206
- will be type checked and a TypeError will be
207
- raised if the wrong type is input.
208
- Defaults to True
209
- _path_to_item (tuple/list): This is a list of keys or values to
210
- drill down to the model in received_data
211
- when deserializing a response
212
- _spec_property_naming (bool): True if the variable names in the input data
213
- are serialized names, as specified in the OpenAPI document.
214
- False if the variable names in the input data
215
- are pythonic names, e.g. snake case (default)
216
- _configuration (Configuration): the instance to use when
217
- deserializing a file_type parameter.
218
- If passed, type conversion is attempted
219
- If omitted no type conversion is done.
220
- _visited_composed_classes (tuple): This stores a tuple of
221
- classes that we have traveled through so that
222
- if we see that class again we will not use its
223
- discriminator again.
224
- When traveling through a discriminator, the
225
- composed schema that is
226
- is traveled through is added to this set.
227
- For example if Animal has a discriminator
228
- petType and we pass in "Dog", and the class Dog
229
- allOf includes Animal, we move through Animal
230
- once using the discriminator, and pick Dog.
231
- Then in Dog, we will make an instance of the
232
- Animal class but this time we won't travel
233
- through its discriminator because we passed in
234
- _visited_composed_classes = (Animal,)
235
- """
236
-
237
- _check_type = kwargs.pop('_check_type', True)
238
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
239
- _path_to_item = kwargs.pop('_path_to_item', ())
240
- _configuration = kwargs.pop('_configuration', None)
241
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
242
-
243
- if args:
244
- for arg in args:
245
- if isinstance(arg, dict):
246
- kwargs.update(arg)
247
- else:
248
- raise ApiTypeError(
249
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
250
- args,
251
- self.__class__.__name__,
252
- ),
253
- path_to_item=_path_to_item,
254
- valid_classes=(self.__class__,),
255
- )
256
-
257
- self._data_store = {}
258
- self._check_type = _check_type
259
- self._spec_property_naming = _spec_property_naming
260
- self._path_to_item = _path_to_item
261
- self._configuration = _configuration
262
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
-
264
- self.data = data
265
- self.meta = meta
266
- for var_name, var_value in kwargs.items():
267
- if var_name not in self.attribute_map and \
268
- self._configuration is not None and \
269
- self._configuration.discard_unknown_keys and \
270
- self.additional_properties_type is None:
271
- # discard variable.
272
- continue
273
- setattr(self, var_name, var_value)
274
- if var_name in self.read_only_vars:
275
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
276
- f"class with read only attributes.")