criteo-api-marketingsolutions-sdk 0.0.250911__py3-none-any.whl → 0.0.250915__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-marketingsolutions-sdk might be problematic. Click here for more details.

Files changed (26) hide show
  1. criteo_api_marketingsolutions_preview/__init__.py +1 -1
  2. criteo_api_marketingsolutions_preview/api/advertiser_api.py +3 -9
  3. criteo_api_marketingsolutions_preview/api/analytics_api.py +16 -62
  4. criteo_api_marketingsolutions_preview/api/audience_api.py +27 -94
  5. criteo_api_marketingsolutions_preview/api/campaign_api.py +63 -215
  6. criteo_api_marketingsolutions_preview/api/catalog_api.py +0 -1
  7. criteo_api_marketingsolutions_preview/api/creative_api.py +19 -60
  8. criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py +1 -4
  9. criteo_api_marketingsolutions_preview/api/reco_api.py +10 -32
  10. criteo_api_marketingsolutions_preview/api_client.py +1 -1
  11. criteo_api_marketingsolutions_preview/configuration.py +1 -1
  12. criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py +12 -8
  13. criteo_api_marketingsolutions_preview/model/json_report_rows.py +3 -3
  14. criteo_api_marketingsolutions_preview/model/outcome.py +16 -5
  15. criteo_api_marketingsolutions_preview/model/placements_report_query_message.py +12 -8
  16. criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py +248 -8
  17. criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py +12 -8
  18. criteo_api_marketingsolutions_preview/models/__init__.py +0 -4
  19. {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.250915.dist-info}/METADATA +3 -3
  20. {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.250915.dist-info}/RECORD +22 -26
  21. criteo_api_marketingsolutions_preview/model/api_error_response.py +0 -271
  22. criteo_api_marketingsolutions_preview/model/error_code_response.py +0 -281
  23. criteo_api_marketingsolutions_preview/model/error_description.py +0 -279
  24. criteo_api_marketingsolutions_preview/model/fail_response.py +0 -283
  25. {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.250915.dist-info}/WHEEL +0 -0
  26. {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.250915.dist-info}/top_level.txt +0 -0
@@ -1,271 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_preview.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_preview.model.error_description import ErrorDescription
34
- globals()['ErrorDescription'] = ErrorDescription
35
-
36
-
37
- class ApiErrorResponse(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
- }
63
-
64
- validations = {
65
- ('errors',): {
66
- },
67
- }
68
-
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
-
78
- _nullable = False
79
-
80
- @cached_property
81
- def openapi_types():
82
- """
83
- This must be a method because a model may have properties that are
84
- of type self, this must run after the class is loaded
85
-
86
- Returns
87
- openapi_types (dict): The key is attribute name
88
- and the value is attribute type.
89
- """
90
- lazy_import()
91
- return {
92
- 'errors': ([ErrorDescription], none_type,), # noqa: E501
93
- }
94
-
95
- @cached_property
96
- def discriminator():
97
- return None
98
-
99
-
100
- attribute_map = {
101
- 'errors': 'errors', # noqa: E501
102
- }
103
-
104
- read_only_vars = {
105
- }
106
-
107
- _composed_schemas = {}
108
-
109
- @classmethod
110
- @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
112
- """ApiErrorResponse - a model defined in OpenAPI
113
-
114
- Keyword Args:
115
- _check_type (bool): if True, values for parameters in openapi_types
116
- will be type checked and a TypeError will be
117
- raised if the wrong type is input.
118
- Defaults to True
119
- _path_to_item (tuple/list): This is a list of keys or values to
120
- drill down to the model in received_data
121
- when deserializing a response
122
- _spec_property_naming (bool): True if the variable names in the input data
123
- are serialized names, as specified in the OpenAPI document.
124
- False if the variable names in the input data
125
- are pythonic names, e.g. snake case (default)
126
- _configuration (Configuration): the instance to use when
127
- deserializing a file_type parameter.
128
- If passed, type conversion is attempted
129
- If omitted no type conversion is done.
130
- _visited_composed_classes (tuple): This stores a tuple of
131
- classes that we have traveled through so that
132
- if we see that class again we will not use its
133
- discriminator again.
134
- When traveling through a discriminator, the
135
- composed schema that is
136
- is traveled through is added to this set.
137
- For example if Animal has a discriminator
138
- petType and we pass in "Dog", and the class Dog
139
- allOf includes Animal, we move through Animal
140
- once using the discriminator, and pick Dog.
141
- Then in Dog, we will make an instance of the
142
- Animal class but this time we won't travel
143
- through its discriminator because we passed in
144
- _visited_composed_classes = (Animal,)
145
- errors ([ErrorDescription], none_type): [optional] # noqa: E501
146
- """
147
-
148
- _check_type = kwargs.pop('_check_type', True)
149
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
150
- _path_to_item = kwargs.pop('_path_to_item', ())
151
- _configuration = kwargs.pop('_configuration', None)
152
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
153
-
154
- self = super(OpenApiModel, cls).__new__(cls)
155
-
156
- if args:
157
- for arg in args:
158
- if isinstance(arg, dict):
159
- kwargs.update(arg)
160
- else:
161
- raise ApiTypeError(
162
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
163
- args,
164
- self.__class__.__name__,
165
- ),
166
- path_to_item=_path_to_item,
167
- valid_classes=(self.__class__,),
168
- )
169
-
170
- self._data_store = {}
171
- self._check_type = _check_type
172
- self._spec_property_naming = _spec_property_naming
173
- self._path_to_item = _path_to_item
174
- self._configuration = _configuration
175
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
-
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, *args, **kwargs): # noqa: E501
198
- """ApiErrorResponse - a model defined in OpenAPI
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
- errors ([ErrorDescription], 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
- for var_name, var_value in kwargs.items():
262
- if var_name not in self.attribute_map and \
263
- self._configuration is not None and \
264
- self._configuration.discard_unknown_keys and \
265
- self.additional_properties_type is None:
266
- # discard variable.
267
- continue
268
- setattr(self, var_name, var_value)
269
- if var_name in self.read_only_vars:
270
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
271
- f"class with read only attributes.")
@@ -1,281 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_preview.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_preview.model.audience_error import AudienceError
34
- from criteo_api_marketingsolutions_preview.model.audience_warning import AudienceWarning
35
- globals()['AudienceError'] = AudienceError
36
- globals()['AudienceWarning'] = AudienceWarning
37
-
38
-
39
- class ErrorCodeResponse(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
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
-
78
- _nullable = False
79
-
80
- @cached_property
81
- def openapi_types():
82
- """
83
- This must be a method because a model may have properties that are
84
- of type self, this must run after the class is loaded
85
-
86
- Returns
87
- openapi_types (dict): The key is attribute name
88
- and the value is attribute type.
89
- """
90
- lazy_import()
91
- return {
92
- 'errors': ([AudienceError],), # noqa: E501
93
- 'warnings': ([AudienceWarning], none_type,), # noqa: E501
94
- }
95
-
96
- @cached_property
97
- def discriminator():
98
- return None
99
-
100
-
101
- attribute_map = {
102
- 'errors': 'errors', # noqa: E501
103
- 'warnings': 'warnings', # noqa: E501
104
- }
105
-
106
- read_only_vars = {
107
- }
108
-
109
- _composed_schemas = {}
110
-
111
- @classmethod
112
- @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, errors, *args, **kwargs): # noqa: E501
114
- """ErrorCodeResponse - a model defined in OpenAPI
115
-
116
- Args:
117
- errors ([AudienceError]):
118
-
119
- Keyword Args:
120
- _check_type (bool): if True, values for parameters in openapi_types
121
- will be type checked and a TypeError will be
122
- raised if the wrong type is input.
123
- Defaults to True
124
- _path_to_item (tuple/list): This is a list of keys or values to
125
- drill down to the model in received_data
126
- when deserializing a response
127
- _spec_property_naming (bool): True if the variable names in the input data
128
- are serialized names, as specified in the OpenAPI document.
129
- False if the variable names in the input data
130
- are pythonic names, e.g. snake case (default)
131
- _configuration (Configuration): the instance to use when
132
- deserializing a file_type parameter.
133
- If passed, type conversion is attempted
134
- If omitted no type conversion is done.
135
- _visited_composed_classes (tuple): This stores a tuple of
136
- classes that we have traveled through so that
137
- if we see that class again we will not use its
138
- discriminator again.
139
- When traveling through a discriminator, the
140
- composed schema that is
141
- is traveled through is added to this set.
142
- For example if Animal has a discriminator
143
- petType and we pass in "Dog", and the class Dog
144
- allOf includes Animal, we move through Animal
145
- once using the discriminator, and pick Dog.
146
- Then in Dog, we will make an instance of the
147
- Animal class but this time we won't travel
148
- through its discriminator because we passed in
149
- _visited_composed_classes = (Animal,)
150
- warnings ([AudienceWarning], none_type): [optional] # noqa: E501
151
- """
152
-
153
- _check_type = kwargs.pop('_check_type', True)
154
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
155
- _path_to_item = kwargs.pop('_path_to_item', ())
156
- _configuration = kwargs.pop('_configuration', None)
157
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
158
-
159
- self = super(OpenApiModel, cls).__new__(cls)
160
-
161
- if args:
162
- for arg in args:
163
- if isinstance(arg, dict):
164
- kwargs.update(arg)
165
- else:
166
- raise ApiTypeError(
167
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
168
- args,
169
- self.__class__.__name__,
170
- ),
171
- path_to_item=_path_to_item,
172
- valid_classes=(self.__class__,),
173
- )
174
-
175
- self._data_store = {}
176
- self._check_type = _check_type
177
- self._spec_property_naming = _spec_property_naming
178
- self._path_to_item = _path_to_item
179
- self._configuration = _configuration
180
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
181
-
182
- self.errors = errors
183
- for var_name, var_value in kwargs.items():
184
- if var_name not in self.attribute_map and \
185
- self._configuration is not None and \
186
- self._configuration.discard_unknown_keys and \
187
- self.additional_properties_type is None:
188
- # discard variable.
189
- continue
190
- setattr(self, var_name, var_value)
191
- return self
192
-
193
- required_properties = set([
194
- '_data_store',
195
- '_check_type',
196
- '_spec_property_naming',
197
- '_path_to_item',
198
- '_configuration',
199
- '_visited_composed_classes',
200
- ])
201
-
202
- @convert_js_args_to_python_args
203
- def __init__(self, errors, *args, **kwargs): # noqa: E501
204
- """ErrorCodeResponse - a model defined in OpenAPI
205
-
206
- Args:
207
- errors ([AudienceError]):
208
-
209
- Keyword Args:
210
- _check_type (bool): if True, values for parameters in openapi_types
211
- will be type checked and a TypeError will be
212
- raised if the wrong type is input.
213
- Defaults to True
214
- _path_to_item (tuple/list): This is a list of keys or values to
215
- drill down to the model in received_data
216
- when deserializing a response
217
- _spec_property_naming (bool): True if the variable names in the input data
218
- are serialized names, as specified in the OpenAPI document.
219
- False if the variable names in the input data
220
- are pythonic names, e.g. snake case (default)
221
- _configuration (Configuration): the instance to use when
222
- deserializing a file_type parameter.
223
- If passed, type conversion is attempted
224
- If omitted no type conversion is done.
225
- _visited_composed_classes (tuple): This stores a tuple of
226
- classes that we have traveled through so that
227
- if we see that class again we will not use its
228
- discriminator again.
229
- When traveling through a discriminator, the
230
- composed schema that is
231
- is traveled through is added to this set.
232
- For example if Animal has a discriminator
233
- petType and we pass in "Dog", and the class Dog
234
- allOf includes Animal, we move through Animal
235
- once using the discriminator, and pick Dog.
236
- Then in Dog, we will make an instance of the
237
- Animal class but this time we won't travel
238
- through its discriminator because we passed in
239
- _visited_composed_classes = (Animal,)
240
- warnings ([AudienceWarning], none_type): [optional] # noqa: E501
241
- """
242
-
243
- _check_type = kwargs.pop('_check_type', True)
244
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
245
- _path_to_item = kwargs.pop('_path_to_item', ())
246
- _configuration = kwargs.pop('_configuration', None)
247
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
248
-
249
- if args:
250
- for arg in args:
251
- if isinstance(arg, dict):
252
- kwargs.update(arg)
253
- else:
254
- raise ApiTypeError(
255
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
256
- args,
257
- self.__class__.__name__,
258
- ),
259
- path_to_item=_path_to_item,
260
- valid_classes=(self.__class__,),
261
- )
262
-
263
- self._data_store = {}
264
- self._check_type = _check_type
265
- self._spec_property_naming = _spec_property_naming
266
- self._path_to_item = _path_to_item
267
- self._configuration = _configuration
268
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
269
-
270
- self.errors = errors
271
- for var_name, var_value in kwargs.items():
272
- if var_name not in self.attribute_map and \
273
- self._configuration is not None and \
274
- self._configuration.discard_unknown_keys and \
275
- self.additional_properties_type is None:
276
- # discard variable.
277
- continue
278
- setattr(self, var_name, var_value)
279
- if var_name in self.read_only_vars:
280
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
281
- f"class with read only attributes.")