criteo-api-marketingsolutions-sdk 2024.4.0.241029__py3-none-any.whl → 2024.4.0.250205__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.
- {criteo_api_marketingsolutions_sdk-2024.4.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250205.dist-info}/METADATA +14 -5
- {criteo_api_marketingsolutions_sdk-2024.4.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250205.dist-info}/RECORD +43 -43
- {criteo_api_marketingsolutions_sdk-2024.4.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250205.dist-info}/WHEEL +1 -1
- criteo_api_marketingsolutions_v2024_04/__init__.py +1 -1
- criteo_api_marketingsolutions_v2024_04/api/creative_api.py +107 -101
- criteo_api_marketingsolutions_v2024_04/api_client.py +1 -1
- criteo_api_marketingsolutions_v2024_04/configuration.py +1 -1
- criteo_api_marketingsolutions_v2024_04/model/ad.py +4 -0
- criteo_api_marketingsolutions_v2024_04/model/adaptive_attributes.py +0 -10
- criteo_api_marketingsolutions_v2024_04/model/adaptive_write_attributes.py +0 -4
- criteo_api_marketingsolutions_v2024_04/model/coupon.py +4 -2
- criteo_api_marketingsolutions_v2024_04/model/coupon_supported_sizes.py +0 -4
- criteo_api_marketingsolutions_v2024_04/model/create_coupon.py +0 -2
- criteo_api_marketingsolutions_v2024_04/model/create_image_slide.py +0 -2
- criteo_api_marketingsolutions_v2024_04/model/creative.py +4 -0
- criteo_api_marketingsolutions_v2024_04/model/dynamic_attributes.py +0 -4
- criteo_api_marketingsolutions_v2024_04/model/dynamic_write_attributes.py +6 -6
- criteo_api_marketingsolutions_v2024_04/model/html_tag_attributes.py +0 -2
- criteo_api_marketingsolutions_v2024_04/model/html_tag_write_attributes.py +0 -2
- criteo_api_marketingsolutions_v2024_04/model/image_attributes.py +0 -2
- criteo_api_marketingsolutions_v2024_04/model/image_set.py +0 -2
- criteo_api_marketingsolutions_v2024_04/model/image_slide.py +0 -2
- criteo_api_marketingsolutions_v2024_04/model/{creative_response.py → resource_collection_outcome_of_ad.py} +8 -12
- criteo_api_marketingsolutions_v2024_04/model/{ad_list_response.py → resource_collection_outcome_of_coupon.py} +8 -14
- criteo_api_marketingsolutions_v2024_04/model/resource_collection_outcome_of_creative.py +281 -0
- criteo_api_marketingsolutions_v2024_04/model/{ad_write_request.py → resource_input_of_ad_write.py} +8 -8
- criteo_api_marketingsolutions_v2024_04/model/{create_coupon_request.py → resource_input_of_create_coupon.py} +8 -8
- criteo_api_marketingsolutions_v2024_04/model/{creative_write_request.py → resource_input_of_creative_write.py} +8 -8
- criteo_api_marketingsolutions_v2024_04/model/{update_coupon_request.py → resource_input_of_update_coupon.py} +8 -8
- criteo_api_marketingsolutions_v2024_04/model/{ad_resource.py → resource_of_ad.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{ad_write_resource.py → resource_of_ad_write.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{coupon_resource.py → resource_of_coupon.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{coupon_supported_sizes_resource.py → resource_of_coupon_supported_sizes.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{create_coupon_resource.py → resource_of_create_coupon.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{creative_resource.py → resource_of_creative.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{creative_write_resource.py → resource_of_creative_write.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{update_coupon_resource.py → resource_of_update_coupon.py} +5 -5
- criteo_api_marketingsolutions_v2024_04/model/{ad_response.py → resource_outcome_of_ad.py} +8 -12
- criteo_api_marketingsolutions_v2024_04/model/{coupon_response.py → resource_outcome_of_coupon.py} +8 -12
- criteo_api_marketingsolutions_v2024_04/model/{coupon_list_response.py → resource_outcome_of_coupon_supported_sizes.py} +8 -14
- criteo_api_marketingsolutions_v2024_04/model/resource_outcome_of_creative.py +281 -0
- criteo_api_marketingsolutions_v2024_04/models/__init__.py +19 -19
- criteo_api_marketingsolutions_v2024_04/model/coupon_supported_sizes_response.py +0 -285
- criteo_api_marketingsolutions_v2024_04/model/creative_list_response.py +0 -287
- {criteo_api_marketingsolutions_sdk-2024.4.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250205.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2024_04.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_marketingsolutions_v2024_04.model.common_problem import CommonProblem
|
|
34
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_creative import ResourceOfCreative
|
|
35
|
+
globals()['CommonProblem'] = CommonProblem
|
|
36
|
+
globals()['ResourceOfCreative'] = ResourceOfCreative
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ResourceOutcomeOfCreative(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
|
+
'data': (ResourceOfCreative,), # noqa: E501
|
|
93
|
+
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
94
|
+
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@cached_property
|
|
98
|
+
def discriminator():
|
|
99
|
+
return None
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
attribute_map = {
|
|
103
|
+
'data': 'data', # noqa: E501
|
|
104
|
+
'warnings': 'warnings', # noqa: E501
|
|
105
|
+
'errors': 'errors', # noqa: E501
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
read_only_vars = {
|
|
109
|
+
'warnings', # noqa: E501
|
|
110
|
+
'errors', # noqa: E501
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
_composed_schemas = {}
|
|
114
|
+
|
|
115
|
+
@classmethod
|
|
116
|
+
@convert_js_args_to_python_args
|
|
117
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
118
|
+
"""ResourceOutcomeOfCreative - a model defined in OpenAPI
|
|
119
|
+
|
|
120
|
+
Keyword Args:
|
|
121
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
122
|
+
will be type checked and a TypeError will be
|
|
123
|
+
raised if the wrong type is input.
|
|
124
|
+
Defaults to True
|
|
125
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
126
|
+
drill down to the model in received_data
|
|
127
|
+
when deserializing a response
|
|
128
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
129
|
+
are serialized names, as specified in the OpenAPI document.
|
|
130
|
+
False if the variable names in the input data
|
|
131
|
+
are pythonic names, e.g. snake case (default)
|
|
132
|
+
_configuration (Configuration): the instance to use when
|
|
133
|
+
deserializing a file_type parameter.
|
|
134
|
+
If passed, type conversion is attempted
|
|
135
|
+
If omitted no type conversion is done.
|
|
136
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
137
|
+
classes that we have traveled through so that
|
|
138
|
+
if we see that class again we will not use its
|
|
139
|
+
discriminator again.
|
|
140
|
+
When traveling through a discriminator, the
|
|
141
|
+
composed schema that is
|
|
142
|
+
is traveled through is added to this set.
|
|
143
|
+
For example if Animal has a discriminator
|
|
144
|
+
petType and we pass in "Dog", and the class Dog
|
|
145
|
+
allOf includes Animal, we move through Animal
|
|
146
|
+
once using the discriminator, and pick Dog.
|
|
147
|
+
Then in Dog, we will make an instance of the
|
|
148
|
+
Animal class but this time we won't travel
|
|
149
|
+
through its discriminator because we passed in
|
|
150
|
+
_visited_composed_classes = (Animal,)
|
|
151
|
+
data (ResourceOfCreative): [optional] # noqa: E501
|
|
152
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
153
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
157
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
158
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
159
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
160
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
161
|
+
|
|
162
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
163
|
+
|
|
164
|
+
if args:
|
|
165
|
+
for arg in args:
|
|
166
|
+
if isinstance(arg, dict):
|
|
167
|
+
kwargs.update(arg)
|
|
168
|
+
else:
|
|
169
|
+
raise ApiTypeError(
|
|
170
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
171
|
+
args,
|
|
172
|
+
self.__class__.__name__,
|
|
173
|
+
),
|
|
174
|
+
path_to_item=_path_to_item,
|
|
175
|
+
valid_classes=(self.__class__,),
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
self._data_store = {}
|
|
179
|
+
self._check_type = _check_type
|
|
180
|
+
self._spec_property_naming = _spec_property_naming
|
|
181
|
+
self._path_to_item = _path_to_item
|
|
182
|
+
self._configuration = _configuration
|
|
183
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
184
|
+
|
|
185
|
+
for var_name, var_value in kwargs.items():
|
|
186
|
+
if var_name not in self.attribute_map and \
|
|
187
|
+
self._configuration is not None and \
|
|
188
|
+
self._configuration.discard_unknown_keys and \
|
|
189
|
+
self.additional_properties_type is None:
|
|
190
|
+
# discard variable.
|
|
191
|
+
continue
|
|
192
|
+
setattr(self, var_name, var_value)
|
|
193
|
+
return self
|
|
194
|
+
|
|
195
|
+
required_properties = set([
|
|
196
|
+
'_data_store',
|
|
197
|
+
'_check_type',
|
|
198
|
+
'_spec_property_naming',
|
|
199
|
+
'_path_to_item',
|
|
200
|
+
'_configuration',
|
|
201
|
+
'_visited_composed_classes',
|
|
202
|
+
])
|
|
203
|
+
|
|
204
|
+
@convert_js_args_to_python_args
|
|
205
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
206
|
+
"""ResourceOutcomeOfCreative - a model defined in OpenAPI
|
|
207
|
+
|
|
208
|
+
Keyword Args:
|
|
209
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
210
|
+
will be type checked and a TypeError will be
|
|
211
|
+
raised if the wrong type is input.
|
|
212
|
+
Defaults to True
|
|
213
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
214
|
+
drill down to the model in received_data
|
|
215
|
+
when deserializing a response
|
|
216
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
217
|
+
are serialized names, as specified in the OpenAPI document.
|
|
218
|
+
False if the variable names in the input data
|
|
219
|
+
are pythonic names, e.g. snake case (default)
|
|
220
|
+
_configuration (Configuration): the instance to use when
|
|
221
|
+
deserializing a file_type parameter.
|
|
222
|
+
If passed, type conversion is attempted
|
|
223
|
+
If omitted no type conversion is done.
|
|
224
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
225
|
+
classes that we have traveled through so that
|
|
226
|
+
if we see that class again we will not use its
|
|
227
|
+
discriminator again.
|
|
228
|
+
When traveling through a discriminator, the
|
|
229
|
+
composed schema that is
|
|
230
|
+
is traveled through is added to this set.
|
|
231
|
+
For example if Animal has a discriminator
|
|
232
|
+
petType and we pass in "Dog", and the class Dog
|
|
233
|
+
allOf includes Animal, we move through Animal
|
|
234
|
+
once using the discriminator, and pick Dog.
|
|
235
|
+
Then in Dog, we will make an instance of the
|
|
236
|
+
Animal class but this time we won't travel
|
|
237
|
+
through its discriminator because we passed in
|
|
238
|
+
_visited_composed_classes = (Animal,)
|
|
239
|
+
data (ResourceOfCreative): [optional] # noqa: E501
|
|
240
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
241
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
245
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
246
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
247
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
248
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
249
|
+
|
|
250
|
+
if args:
|
|
251
|
+
for arg in args:
|
|
252
|
+
if isinstance(arg, dict):
|
|
253
|
+
kwargs.update(arg)
|
|
254
|
+
else:
|
|
255
|
+
raise ApiTypeError(
|
|
256
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
257
|
+
args,
|
|
258
|
+
self.__class__.__name__,
|
|
259
|
+
),
|
|
260
|
+
path_to_item=_path_to_item,
|
|
261
|
+
valid_classes=(self.__class__,),
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
self._data_store = {}
|
|
265
|
+
self._check_type = _check_type
|
|
266
|
+
self._spec_property_naming = _spec_property_naming
|
|
267
|
+
self._path_to_item = _path_to_item
|
|
268
|
+
self._configuration = _configuration
|
|
269
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
270
|
+
|
|
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.")
|
|
@@ -10,9 +10,6 @@
|
|
|
10
10
|
# sys.setrecursionlimit(n)
|
|
11
11
|
|
|
12
12
|
from criteo_api_marketingsolutions_v2024_04.model.ad import Ad
|
|
13
|
-
from criteo_api_marketingsolutions_v2024_04.model.ad_list_response import AdListResponse
|
|
14
|
-
from criteo_api_marketingsolutions_v2024_04.model.ad_resource import AdResource
|
|
15
|
-
from criteo_api_marketingsolutions_v2024_04.model.ad_response import AdResponse
|
|
16
13
|
from criteo_api_marketingsolutions_v2024_04.model.ad_set_audience_link_entity_v1 import AdSetAudienceLinkEntityV1
|
|
17
14
|
from criteo_api_marketingsolutions_v2024_04.model.ad_set_audience_link_entity_v1_resource import AdSetAudienceLinkEntityV1Resource
|
|
18
15
|
from criteo_api_marketingsolutions_v2024_04.model.ad_set_audience_link_entity_v1_response import AdSetAudienceLinkEntityV1Response
|
|
@@ -36,8 +33,6 @@ from criteo_api_marketingsolutions_v2024_04.model.ad_set_targeting_rule import A
|
|
|
36
33
|
from criteo_api_marketingsolutions_v2024_04.model.ad_set_targeting_rule_v23_q1 import AdSetTargetingRuleV23Q1
|
|
37
34
|
from criteo_api_marketingsolutions_v2024_04.model.ad_set_targeting_v23_q1 import AdSetTargetingV23Q1
|
|
38
35
|
from criteo_api_marketingsolutions_v2024_04.model.ad_write import AdWrite
|
|
39
|
-
from criteo_api_marketingsolutions_v2024_04.model.ad_write_request import AdWriteRequest
|
|
40
|
-
from criteo_api_marketingsolutions_v2024_04.model.ad_write_resource import AdWriteResource
|
|
41
36
|
from criteo_api_marketingsolutions_v2024_04.model.adaptive_attributes import AdaptiveAttributes
|
|
42
37
|
from criteo_api_marketingsolutions_v2024_04.model.adaptive_colors import AdaptiveColors
|
|
43
38
|
from criteo_api_marketingsolutions_v2024_04.model.adaptive_write_attributes import AdaptiveWriteAttributes
|
|
@@ -126,12 +121,7 @@ from criteo_api_marketingsolutions_v2024_04.model.contactlist_amendment_request
|
|
|
126
121
|
from criteo_api_marketingsolutions_v2024_04.model.contactlist_operation import ContactlistOperation
|
|
127
122
|
from criteo_api_marketingsolutions_v2024_04.model.contactlist_operation_attributes import ContactlistOperationAttributes
|
|
128
123
|
from criteo_api_marketingsolutions_v2024_04.model.coupon import Coupon
|
|
129
|
-
from criteo_api_marketingsolutions_v2024_04.model.coupon_list_response import CouponListResponse
|
|
130
|
-
from criteo_api_marketingsolutions_v2024_04.model.coupon_resource import CouponResource
|
|
131
|
-
from criteo_api_marketingsolutions_v2024_04.model.coupon_response import CouponResponse
|
|
132
124
|
from criteo_api_marketingsolutions_v2024_04.model.coupon_supported_sizes import CouponSupportedSizes
|
|
133
|
-
from criteo_api_marketingsolutions_v2024_04.model.coupon_supported_sizes_resource import CouponSupportedSizesResource
|
|
134
|
-
from criteo_api_marketingsolutions_v2024_04.model.coupon_supported_sizes_response import CouponSupportedSizesResponse
|
|
135
125
|
from criteo_api_marketingsolutions_v2024_04.model.create_ad_set import CreateAdSet
|
|
136
126
|
from criteo_api_marketingsolutions_v2024_04.model.create_ad_set_bidding import CreateAdSetBidding
|
|
137
127
|
from criteo_api_marketingsolutions_v2024_04.model.create_ad_set_budget import CreateAdSetBudget
|
|
@@ -145,16 +135,9 @@ from criteo_api_marketingsolutions_v2024_04.model.create_campaign_request import
|
|
|
145
135
|
from criteo_api_marketingsolutions_v2024_04.model.create_campaign_resource import CreateCampaignResource
|
|
146
136
|
from criteo_api_marketingsolutions_v2024_04.model.create_campaign_spend_limit import CreateCampaignSpendLimit
|
|
147
137
|
from criteo_api_marketingsolutions_v2024_04.model.create_coupon import CreateCoupon
|
|
148
|
-
from criteo_api_marketingsolutions_v2024_04.model.create_coupon_request import CreateCouponRequest
|
|
149
|
-
from criteo_api_marketingsolutions_v2024_04.model.create_coupon_resource import CreateCouponResource
|
|
150
138
|
from criteo_api_marketingsolutions_v2024_04.model.create_image_slide import CreateImageSlide
|
|
151
139
|
from criteo_api_marketingsolutions_v2024_04.model.creative import Creative
|
|
152
|
-
from criteo_api_marketingsolutions_v2024_04.model.creative_list_response import CreativeListResponse
|
|
153
|
-
from criteo_api_marketingsolutions_v2024_04.model.creative_resource import CreativeResource
|
|
154
|
-
from criteo_api_marketingsolutions_v2024_04.model.creative_response import CreativeResponse
|
|
155
140
|
from criteo_api_marketingsolutions_v2024_04.model.creative_write import CreativeWrite
|
|
156
|
-
from criteo_api_marketingsolutions_v2024_04.model.creative_write_request import CreativeWriteRequest
|
|
157
|
-
from criteo_api_marketingsolutions_v2024_04.model.creative_write_resource import CreativeWriteResource
|
|
158
141
|
from criteo_api_marketingsolutions_v2024_04.model.criteo_api_error import CriteoApiError
|
|
159
142
|
from criteo_api_marketingsolutions_v2024_04.model.criteo_api_warning import CriteoApiWarning
|
|
160
143
|
from criteo_api_marketingsolutions_v2024_04.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse
|
|
@@ -240,6 +223,25 @@ from criteo_api_marketingsolutions_v2024_04.model.read_model_read_ad_set import
|
|
|
240
223
|
from criteo_api_marketingsolutions_v2024_04.model.read_model_read_ad_set_v23_q1 import ReadModelReadAdSetV23Q1
|
|
241
224
|
from criteo_api_marketingsolutions_v2024_04.model.requests_ad_set_id import RequestsAdSetId
|
|
242
225
|
from criteo_api_marketingsolutions_v2024_04.model.requests_patch_ad_set import RequestsPatchAdSet
|
|
226
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_collection_outcome_of_ad import ResourceCollectionOutcomeOfAd
|
|
227
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_collection_outcome_of_coupon import ResourceCollectionOutcomeOfCoupon
|
|
228
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_collection_outcome_of_creative import ResourceCollectionOutcomeOfCreative
|
|
229
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_input_of_ad_write import ResourceInputOfAdWrite
|
|
230
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_input_of_create_coupon import ResourceInputOfCreateCoupon
|
|
231
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_input_of_creative_write import ResourceInputOfCreativeWrite
|
|
232
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_input_of_update_coupon import ResourceInputOfUpdateCoupon
|
|
233
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_ad import ResourceOfAd
|
|
234
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_ad_write import ResourceOfAdWrite
|
|
235
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_coupon import ResourceOfCoupon
|
|
236
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_coupon_supported_sizes import ResourceOfCouponSupportedSizes
|
|
237
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_create_coupon import ResourceOfCreateCoupon
|
|
238
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_creative import ResourceOfCreative
|
|
239
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_creative_write import ResourceOfCreativeWrite
|
|
240
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_of_update_coupon import ResourceOfUpdateCoupon
|
|
241
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_outcome_of_ad import ResourceOutcomeOfAd
|
|
242
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_outcome_of_coupon import ResourceOutcomeOfCoupon
|
|
243
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_outcome_of_coupon_supported_sizes import ResourceOutcomeOfCouponSupportedSizes
|
|
244
|
+
from criteo_api_marketingsolutions_v2024_04.model.resource_outcome_of_creative import ResourceOutcomeOfCreative
|
|
243
245
|
from criteo_api_marketingsolutions_v2024_04.model.response_read_ad_set import ResponseReadAdSet
|
|
244
246
|
from criteo_api_marketingsolutions_v2024_04.model.response_read_ad_set_v23_q1 import ResponseReadAdSetV23Q1
|
|
245
247
|
from criteo_api_marketingsolutions_v2024_04.model.responses_ad_set_id import ResponsesAdSetId
|
|
@@ -259,8 +261,6 @@ from criteo_api_marketingsolutions_v2024_04.model.transparency_report_file impor
|
|
|
259
261
|
from criteo_api_marketingsolutions_v2024_04.model.transparency_report_list_response import TransparencyReportListResponse
|
|
260
262
|
from criteo_api_marketingsolutions_v2024_04.model.transparency_report_resource import TransparencyReportResource
|
|
261
263
|
from criteo_api_marketingsolutions_v2024_04.model.update_coupon import UpdateCoupon
|
|
262
|
-
from criteo_api_marketingsolutions_v2024_04.model.update_coupon_request import UpdateCouponRequest
|
|
263
|
-
from criteo_api_marketingsolutions_v2024_04.model.update_coupon_resource import UpdateCouponResource
|
|
264
264
|
from criteo_api_marketingsolutions_v2024_04.model.video_detail import VideoDetail
|
|
265
265
|
from criteo_api_marketingsolutions_v2024_04.model.write_model_ad_set_id import WriteModelAdSetId
|
|
266
266
|
from criteo_api_marketingsolutions_v2024_04.model.write_model_patch_ad_set import WriteModelPatchAdSet
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Criteo API
|
|
3
|
-
|
|
4
|
-
Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2024_04.exceptions import ApiAttributeError
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def lazy_import():
|
|
33
|
-
from criteo_api_marketingsolutions_v2024_04.model.common_problem import CommonProblem
|
|
34
|
-
from criteo_api_marketingsolutions_v2024_04.model.coupon_supported_sizes_resource import CouponSupportedSizesResource
|
|
35
|
-
globals()['CommonProblem'] = CommonProblem
|
|
36
|
-
globals()['CouponSupportedSizesResource'] = CouponSupportedSizesResource
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class CouponSupportedSizesResponse(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
|
-
('warnings',): {
|
|
68
|
-
},
|
|
69
|
-
('errors',): {
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def additional_properties_type():
|
|
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
|
-
lazy_import()
|
|
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
|
-
lazy_import()
|
|
95
|
-
return {
|
|
96
|
-
'data': (CouponSupportedSizesResource,), # noqa: E501
|
|
97
|
-
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
98
|
-
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@cached_property
|
|
102
|
-
def discriminator():
|
|
103
|
-
return None
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
attribute_map = {
|
|
107
|
-
'data': 'data', # noqa: E501
|
|
108
|
-
'warnings': 'warnings', # noqa: E501
|
|
109
|
-
'errors': 'errors', # noqa: E501
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
read_only_vars = {
|
|
113
|
-
'warnings', # noqa: E501
|
|
114
|
-
'errors', # 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
|
-
"""CouponSupportedSizesResponse - 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
|
-
data (CouponSupportedSizesResource): [optional] # noqa: E501
|
|
156
|
-
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
157
|
-
errors ([CommonProblem], none_type): [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
|
-
for var_name, var_value in kwargs.items():
|
|
190
|
-
if var_name not in self.attribute_map and \
|
|
191
|
-
self._configuration is not None and \
|
|
192
|
-
self._configuration.discard_unknown_keys and \
|
|
193
|
-
self.additional_properties_type is None:
|
|
194
|
-
# discard variable.
|
|
195
|
-
continue
|
|
196
|
-
setattr(self, var_name, var_value)
|
|
197
|
-
return self
|
|
198
|
-
|
|
199
|
-
required_properties = set([
|
|
200
|
-
'_data_store',
|
|
201
|
-
'_check_type',
|
|
202
|
-
'_spec_property_naming',
|
|
203
|
-
'_path_to_item',
|
|
204
|
-
'_configuration',
|
|
205
|
-
'_visited_composed_classes',
|
|
206
|
-
])
|
|
207
|
-
|
|
208
|
-
@convert_js_args_to_python_args
|
|
209
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
210
|
-
"""CouponSupportedSizesResponse - a model defined in OpenAPI
|
|
211
|
-
|
|
212
|
-
Keyword Args:
|
|
213
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
214
|
-
will be type checked and a TypeError will be
|
|
215
|
-
raised if the wrong type is input.
|
|
216
|
-
Defaults to True
|
|
217
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
218
|
-
drill down to the model in received_data
|
|
219
|
-
when deserializing a response
|
|
220
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
221
|
-
are serialized names, as specified in the OpenAPI document.
|
|
222
|
-
False if the variable names in the input data
|
|
223
|
-
are pythonic names, e.g. snake case (default)
|
|
224
|
-
_configuration (Configuration): the instance to use when
|
|
225
|
-
deserializing a file_type parameter.
|
|
226
|
-
If passed, type conversion is attempted
|
|
227
|
-
If omitted no type conversion is done.
|
|
228
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
229
|
-
classes that we have traveled through so that
|
|
230
|
-
if we see that class again we will not use its
|
|
231
|
-
discriminator again.
|
|
232
|
-
When traveling through a discriminator, the
|
|
233
|
-
composed schema that is
|
|
234
|
-
is traveled through is added to this set.
|
|
235
|
-
For example if Animal has a discriminator
|
|
236
|
-
petType and we pass in "Dog", and the class Dog
|
|
237
|
-
allOf includes Animal, we move through Animal
|
|
238
|
-
once using the discriminator, and pick Dog.
|
|
239
|
-
Then in Dog, we will make an instance of the
|
|
240
|
-
Animal class but this time we won't travel
|
|
241
|
-
through its discriminator because we passed in
|
|
242
|
-
_visited_composed_classes = (Animal,)
|
|
243
|
-
data (CouponSupportedSizesResource): [optional] # noqa: E501
|
|
244
|
-
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
245
|
-
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
246
|
-
"""
|
|
247
|
-
|
|
248
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
249
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
250
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
251
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
252
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
253
|
-
|
|
254
|
-
if args:
|
|
255
|
-
for arg in args:
|
|
256
|
-
if isinstance(arg, dict):
|
|
257
|
-
kwargs.update(arg)
|
|
258
|
-
else:
|
|
259
|
-
raise ApiTypeError(
|
|
260
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
261
|
-
args,
|
|
262
|
-
self.__class__.__name__,
|
|
263
|
-
),
|
|
264
|
-
path_to_item=_path_to_item,
|
|
265
|
-
valid_classes=(self.__class__,),
|
|
266
|
-
)
|
|
267
|
-
|
|
268
|
-
self._data_store = {}
|
|
269
|
-
self._check_type = _check_type
|
|
270
|
-
self._spec_property_naming = _spec_property_naming
|
|
271
|
-
self._path_to_item = _path_to_item
|
|
272
|
-
self._configuration = _configuration
|
|
273
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
274
|
-
|
|
275
|
-
for var_name, var_value in kwargs.items():
|
|
276
|
-
if var_name not in self.attribute_map and \
|
|
277
|
-
self._configuration is not None and \
|
|
278
|
-
self._configuration.discard_unknown_keys and \
|
|
279
|
-
self.additional_properties_type is None:
|
|
280
|
-
# discard variable.
|
|
281
|
-
continue
|
|
282
|
-
setattr(self, var_name, var_value)
|
|
283
|
-
if var_name in self.read_only_vars:
|
|
284
|
-
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
285
|
-
f"class with read only attributes.")
|