criteo-api-marketingsolutions-sdk 0.0.240626__py3-none-any.whl → 0.0.240731__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 (20) hide show
  1. criteo_api_marketingsolutions_preview/__init__.py +1 -1
  2. criteo_api_marketingsolutions_preview/api/reco_api.py +561 -0
  3. criteo_api_marketingsolutions_preview/api_client.py +1 -1
  4. criteo_api_marketingsolutions_preview/configuration.py +1 -1
  5. criteo_api_marketingsolutions_preview/model/application_summary_model_response.py +0 -4
  6. criteo_api_marketingsolutions_preview/model/common_problem.py +2 -2
  7. criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py +1 -0
  8. criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py +1 -0
  9. criteo_api_marketingsolutions_preview/model/create_product_filter_request.py +263 -0
  10. criteo_api_marketingsolutions_preview/model/product_filter_config.py +275 -0
  11. criteo_api_marketingsolutions_preview/model/value_resource_collection_outcome_of_product_filter_config.py +281 -0
  12. criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_filter_request.py +269 -0
  13. criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_filter_request.py +273 -0
  14. criteo_api_marketingsolutions_preview/model/value_resource_of_product_filter_config.py +273 -0
  15. criteo_api_marketingsolutions_preview/model/value_resource_outcome_of_product_filter_config.py +281 -0
  16. criteo_api_marketingsolutions_preview/models/__init__.py +7 -0
  17. {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/METADATA +3 -3
  18. {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/RECORD +20 -13
  19. {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/WHEEL +1 -1
  20. {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,263 @@
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
+
33
+ class CreateProductFilterRequest(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
+ 'product_set_id': (str, none_type,), # noqa: E501
85
+ }
86
+
87
+ @cached_property
88
+ def discriminator():
89
+ return None
90
+
91
+
92
+ attribute_map = {
93
+ 'product_set_id': 'productSetId', # noqa: E501
94
+ }
95
+
96
+ read_only_vars = {
97
+ }
98
+
99
+ _composed_schemas = {}
100
+
101
+ @classmethod
102
+ @convert_js_args_to_python_args
103
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
+ """CreateProductFilterRequest - a model defined in OpenAPI
105
+
106
+ Keyword Args:
107
+ _check_type (bool): if True, values for parameters in openapi_types
108
+ will be type checked and a TypeError will be
109
+ raised if the wrong type is input.
110
+ Defaults to True
111
+ _path_to_item (tuple/list): This is a list of keys or values to
112
+ drill down to the model in received_data
113
+ when deserializing a response
114
+ _spec_property_naming (bool): True if the variable names in the input data
115
+ are serialized names, as specified in the OpenAPI document.
116
+ False if the variable names in the input data
117
+ are pythonic names, e.g. snake case (default)
118
+ _configuration (Configuration): the instance to use when
119
+ deserializing a file_type parameter.
120
+ If passed, type conversion is attempted
121
+ If omitted no type conversion is done.
122
+ _visited_composed_classes (tuple): This stores a tuple of
123
+ classes that we have traveled through so that
124
+ if we see that class again we will not use its
125
+ discriminator again.
126
+ When traveling through a discriminator, the
127
+ composed schema that is
128
+ is traveled through is added to this set.
129
+ For example if Animal has a discriminator
130
+ petType and we pass in "Dog", and the class Dog
131
+ allOf includes Animal, we move through Animal
132
+ once using the discriminator, and pick Dog.
133
+ Then in Dog, we will make an instance of the
134
+ Animal class but this time we won't travel
135
+ through its discriminator because we passed in
136
+ _visited_composed_classes = (Animal,)
137
+ product_set_id (str, none_type): [optional] # noqa: E501
138
+ """
139
+
140
+ _check_type = kwargs.pop('_check_type', True)
141
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
142
+ _path_to_item = kwargs.pop('_path_to_item', ())
143
+ _configuration = kwargs.pop('_configuration', None)
144
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
145
+
146
+ self = super(OpenApiModel, cls).__new__(cls)
147
+
148
+ if args:
149
+ for arg in args:
150
+ if isinstance(arg, dict):
151
+ kwargs.update(arg)
152
+ else:
153
+ raise ApiTypeError(
154
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
155
+ args,
156
+ self.__class__.__name__,
157
+ ),
158
+ path_to_item=_path_to_item,
159
+ valid_classes=(self.__class__,),
160
+ )
161
+
162
+ self._data_store = {}
163
+ self._check_type = _check_type
164
+ self._spec_property_naming = _spec_property_naming
165
+ self._path_to_item = _path_to_item
166
+ self._configuration = _configuration
167
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
168
+
169
+ for var_name, var_value in kwargs.items():
170
+ if var_name not in self.attribute_map and \
171
+ self._configuration is not None and \
172
+ self._configuration.discard_unknown_keys and \
173
+ self.additional_properties_type is None:
174
+ # discard variable.
175
+ continue
176
+ setattr(self, var_name, var_value)
177
+ return self
178
+
179
+ required_properties = set([
180
+ '_data_store',
181
+ '_check_type',
182
+ '_spec_property_naming',
183
+ '_path_to_item',
184
+ '_configuration',
185
+ '_visited_composed_classes',
186
+ ])
187
+
188
+ @convert_js_args_to_python_args
189
+ def __init__(self, *args, **kwargs): # noqa: E501
190
+ """CreateProductFilterRequest - a model defined in OpenAPI
191
+
192
+ Keyword Args:
193
+ _check_type (bool): if True, values for parameters in openapi_types
194
+ will be type checked and a TypeError will be
195
+ raised if the wrong type is input.
196
+ Defaults to True
197
+ _path_to_item (tuple/list): This is a list of keys or values to
198
+ drill down to the model in received_data
199
+ when deserializing a response
200
+ _spec_property_naming (bool): True if the variable names in the input data
201
+ are serialized names, as specified in the OpenAPI document.
202
+ False if the variable names in the input data
203
+ are pythonic names, e.g. snake case (default)
204
+ _configuration (Configuration): the instance to use when
205
+ deserializing a file_type parameter.
206
+ If passed, type conversion is attempted
207
+ If omitted no type conversion is done.
208
+ _visited_composed_classes (tuple): This stores a tuple of
209
+ classes that we have traveled through so that
210
+ if we see that class again we will not use its
211
+ discriminator again.
212
+ When traveling through a discriminator, the
213
+ composed schema that is
214
+ is traveled through is added to this set.
215
+ For example if Animal has a discriminator
216
+ petType and we pass in "Dog", and the class Dog
217
+ allOf includes Animal, we move through Animal
218
+ once using the discriminator, and pick Dog.
219
+ Then in Dog, we will make an instance of the
220
+ Animal class but this time we won't travel
221
+ through its discriminator because we passed in
222
+ _visited_composed_classes = (Animal,)
223
+ product_set_id (str, none_type): [optional] # noqa: E501
224
+ """
225
+
226
+ _check_type = kwargs.pop('_check_type', True)
227
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
228
+ _path_to_item = kwargs.pop('_path_to_item', ())
229
+ _configuration = kwargs.pop('_configuration', None)
230
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
231
+
232
+ if args:
233
+ for arg in args:
234
+ if isinstance(arg, dict):
235
+ kwargs.update(arg)
236
+ else:
237
+ raise ApiTypeError(
238
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
239
+ args,
240
+ self.__class__.__name__,
241
+ ),
242
+ path_to_item=_path_to_item,
243
+ valid_classes=(self.__class__,),
244
+ )
245
+
246
+ self._data_store = {}
247
+ self._check_type = _check_type
248
+ self._spec_property_naming = _spec_property_naming
249
+ self._path_to_item = _path_to_item
250
+ self._configuration = _configuration
251
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
252
+
253
+ for var_name, var_value in kwargs.items():
254
+ if var_name not in self.attribute_map and \
255
+ self._configuration is not None and \
256
+ self._configuration.discard_unknown_keys and \
257
+ self.additional_properties_type is None:
258
+ # discard variable.
259
+ continue
260
+ setattr(self, var_name, var_value)
261
+ if var_name in self.read_only_vars:
262
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
263
+ f"class with read only attributes.")
@@ -0,0 +1,275 @@
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
+
33
+ class ProductFilterConfig(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
+ 'ad_id': (str,), # noqa: E501
85
+ 'product_set_id': (str,), # noqa: E501
86
+ }
87
+
88
+ @cached_property
89
+ def discriminator():
90
+ return None
91
+
92
+
93
+ attribute_map = {
94
+ 'ad_id': 'adId', # noqa: E501
95
+ 'product_set_id': 'productSetId', # noqa: E501
96
+ }
97
+
98
+ read_only_vars = {
99
+ }
100
+
101
+ _composed_schemas = {}
102
+
103
+ @classmethod
104
+ @convert_js_args_to_python_args
105
+ def _from_openapi_data(cls, ad_id, product_set_id, *args, **kwargs): # noqa: E501
106
+ """ProductFilterConfig - a model defined in OpenAPI
107
+
108
+ Args:
109
+ ad_id (str):
110
+ product_set_id (str):
111
+
112
+ Keyword Args:
113
+ _check_type (bool): if True, values for parameters in openapi_types
114
+ will be type checked and a TypeError will be
115
+ raised if the wrong type is input.
116
+ Defaults to True
117
+ _path_to_item (tuple/list): This is a list of keys or values to
118
+ drill down to the model in received_data
119
+ when deserializing a response
120
+ _spec_property_naming (bool): True if the variable names in the input data
121
+ are serialized names, as specified in the OpenAPI document.
122
+ False if the variable names in the input data
123
+ are pythonic names, e.g. snake case (default)
124
+ _configuration (Configuration): the instance to use when
125
+ deserializing a file_type parameter.
126
+ If passed, type conversion is attempted
127
+ If omitted no type conversion is done.
128
+ _visited_composed_classes (tuple): This stores a tuple of
129
+ classes that we have traveled through so that
130
+ if we see that class again we will not use its
131
+ discriminator again.
132
+ When traveling through a discriminator, the
133
+ composed schema that is
134
+ is traveled through is added to this set.
135
+ For example if Animal has a discriminator
136
+ petType and we pass in "Dog", and the class Dog
137
+ allOf includes Animal, we move through Animal
138
+ once using the discriminator, and pick Dog.
139
+ Then in Dog, we will make an instance of the
140
+ Animal class but this time we won't travel
141
+ through its discriminator because we passed in
142
+ _visited_composed_classes = (Animal,)
143
+ """
144
+
145
+ _check_type = kwargs.pop('_check_type', True)
146
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
147
+ _path_to_item = kwargs.pop('_path_to_item', ())
148
+ _configuration = kwargs.pop('_configuration', None)
149
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
150
+
151
+ self = super(OpenApiModel, cls).__new__(cls)
152
+
153
+ if args:
154
+ for arg in args:
155
+ if isinstance(arg, dict):
156
+ kwargs.update(arg)
157
+ else:
158
+ raise ApiTypeError(
159
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
160
+ args,
161
+ self.__class__.__name__,
162
+ ),
163
+ path_to_item=_path_to_item,
164
+ valid_classes=(self.__class__,),
165
+ )
166
+
167
+ self._data_store = {}
168
+ self._check_type = _check_type
169
+ self._spec_property_naming = _spec_property_naming
170
+ self._path_to_item = _path_to_item
171
+ self._configuration = _configuration
172
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
+
174
+ self.ad_id = ad_id
175
+ self.product_set_id = product_set_id
176
+ for var_name, var_value in kwargs.items():
177
+ if var_name not in self.attribute_map and \
178
+ self._configuration is not None and \
179
+ self._configuration.discard_unknown_keys and \
180
+ self.additional_properties_type is None:
181
+ # discard variable.
182
+ continue
183
+ setattr(self, var_name, var_value)
184
+ return self
185
+
186
+ required_properties = set([
187
+ '_data_store',
188
+ '_check_type',
189
+ '_spec_property_naming',
190
+ '_path_to_item',
191
+ '_configuration',
192
+ '_visited_composed_classes',
193
+ ])
194
+
195
+ @convert_js_args_to_python_args
196
+ def __init__(self, ad_id, product_set_id, *args, **kwargs): # noqa: E501
197
+ """ProductFilterConfig - a model defined in OpenAPI
198
+
199
+ Args:
200
+ ad_id (str):
201
+ product_set_id (str):
202
+
203
+ Keyword Args:
204
+ _check_type (bool): if True, values for parameters in openapi_types
205
+ will be type checked and a TypeError will be
206
+ raised if the wrong type is input.
207
+ Defaults to True
208
+ _path_to_item (tuple/list): This is a list of keys or values to
209
+ drill down to the model in received_data
210
+ when deserializing a response
211
+ _spec_property_naming (bool): True if the variable names in the input data
212
+ are serialized names, as specified in the OpenAPI document.
213
+ False if the variable names in the input data
214
+ are pythonic names, e.g. snake case (default)
215
+ _configuration (Configuration): the instance to use when
216
+ deserializing a file_type parameter.
217
+ If passed, type conversion is attempted
218
+ If omitted no type conversion is done.
219
+ _visited_composed_classes (tuple): This stores a tuple of
220
+ classes that we have traveled through so that
221
+ if we see that class again we will not use its
222
+ discriminator again.
223
+ When traveling through a discriminator, the
224
+ composed schema that is
225
+ is traveled through is added to this set.
226
+ For example if Animal has a discriminator
227
+ petType and we pass in "Dog", and the class Dog
228
+ allOf includes Animal, we move through Animal
229
+ once using the discriminator, and pick Dog.
230
+ Then in Dog, we will make an instance of the
231
+ Animal class but this time we won't travel
232
+ through its discriminator because we passed in
233
+ _visited_composed_classes = (Animal,)
234
+ """
235
+
236
+ _check_type = kwargs.pop('_check_type', True)
237
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
238
+ _path_to_item = kwargs.pop('_path_to_item', ())
239
+ _configuration = kwargs.pop('_configuration', None)
240
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
241
+
242
+ if args:
243
+ for arg in args:
244
+ if isinstance(arg, dict):
245
+ kwargs.update(arg)
246
+ else:
247
+ raise ApiTypeError(
248
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
249
+ args,
250
+ self.__class__.__name__,
251
+ ),
252
+ path_to_item=_path_to_item,
253
+ valid_classes=(self.__class__,),
254
+ )
255
+
256
+ self._data_store = {}
257
+ self._check_type = _check_type
258
+ self._spec_property_naming = _spec_property_naming
259
+ self._path_to_item = _path_to_item
260
+ self._configuration = _configuration
261
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
262
+
263
+ self.ad_id = ad_id
264
+ self.product_set_id = product_set_id
265
+ for var_name, var_value in kwargs.items():
266
+ if var_name not in self.attribute_map and \
267
+ self._configuration is not None and \
268
+ self._configuration.discard_unknown_keys and \
269
+ self.additional_properties_type is None:
270
+ # discard variable.
271
+ continue
272
+ setattr(self, var_name, var_value)
273
+ if var_name in self.read_only_vars:
274
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
275
+ f"class with read only attributes.")