criteo-api-marketingsolutions-sdk 2025.7.0.251029__py3-none-any.whl → 2025.7.0.251030__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.

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