criteo-api-retailmedia-sdk 2024.1.0.241029__py3-none-any.whl → 2024.1.0.250129__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.
- {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250129.dist-info}/METADATA +14 -5
- {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250129.dist-info}/RECORD +39 -43
- {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250129.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_v2024_01/__init__.py +1 -1
- criteo_api_retailmedia_v2024_01/api/campaign_api.py +21 -278
- criteo_api_retailmedia_v2024_01/api_client.py +1 -1
- criteo_api_retailmedia_v2024_01/configuration.py +1 -1
- criteo_api_retailmedia_v2024_01/model/async_campaigns_report.py +40 -0
- criteo_api_retailmedia_v2024_01/model/async_line_items_report.py +40 -0
- criteo_api_retailmedia_v2024_01/model/async_revenue_report.py +29 -2
- criteo_api_retailmedia_v2024_01/model/choice_option.py +1 -8
- criteo_api_retailmedia_v2024_01/model/choice_variable_specification.py +1 -8
- criteo_api_retailmedia_v2024_01/model/choice_variable_value.py +1 -7
- criteo_api_retailmedia_v2024_01/model/color_variable_value.py +7 -19
- criteo_api_retailmedia_v2024_01/model/creative202110.py +7 -13
- criteo_api_retailmedia_v2024_01/model/creative202110_list_response.py +13 -20
- criteo_api_retailmedia_v2024_01/model/creative202210.py +12 -19
- criteo_api_retailmedia_v2024_01/model/creative202210_list_response.py +13 -20
- criteo_api_retailmedia_v2024_01/model/creative202210_response.py +10 -17
- criteo_api_retailmedia_v2024_01/model/creative_create_model202207.py +4 -11
- criteo_api_retailmedia_v2024_01/model/creative_update_model202207.py +4 -11
- criteo_api_retailmedia_v2024_01/model/files_variable_value.py +2 -7
- criteo_api_retailmedia_v2024_01/model/files_variables_specification.py +7 -15
- criteo_api_retailmedia_v2024_01/model/hyperlink_variable_value.py +7 -19
- criteo_api_retailmedia_v2024_01/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
- criteo_api_retailmedia_v2024_01/model/resource_of_creative202110.py +6 -13
- criteo_api_retailmedia_v2024_01/model/resource_of_creative202210.py +2 -9
- criteo_api_retailmedia_v2024_01/model/resource_of_template.py +2 -9
- criteo_api_retailmedia_v2024_01/model/section.py +6 -9
- criteo_api_retailmedia_v2024_01/model/template.py +13 -24
- criteo_api_retailmedia_v2024_01/model/template_list_response.py +13 -20
- criteo_api_retailmedia_v2024_01/model/template_response.py +10 -17
- criteo_api_retailmedia_v2024_01/model/template_variable.py +1 -8
- criteo_api_retailmedia_v2024_01/model/template_variable_value.py +7 -8
- criteo_api_retailmedia_v2024_01/model/text_variable_specification.py +2 -8
- criteo_api_retailmedia_v2024_01/model/text_variable_value.py +7 -19
- criteo_api_retailmedia_v2024_01/model/{proposal_status_model_resource.py → video_variable_value.py} +39 -22
- criteo_api_retailmedia_v2024_01/models/__init__.py +2 -6
- criteo_api_retailmedia_v2024_01/model/approval_status_model.py +0 -292
- criteo_api_retailmedia_v2024_01/model/negotiation_state_model.py +0 -293
- criteo_api_retailmedia_v2024_01/model/proposal_status_model.py +0 -284
- criteo_api_retailmedia_v2024_01/model/proposal_status_model_response.py +0 -274
- {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250129.dist-info}/top_level.txt +0 -0
|
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_01.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2024_01.model.
|
|
33
|
+
from criteo_api_retailmedia_v2024_01.model.common_problem import CommonProblem
|
|
34
34
|
from criteo_api_retailmedia_v2024_01.model.resource_of_creative202210 import ResourceOfCreative202210
|
|
35
|
-
globals()['
|
|
35
|
+
globals()['CommonProblem'] = CommonProblem
|
|
36
36
|
globals()['ResourceOfCreative202210'] = ResourceOfCreative202210
|
|
37
37
|
|
|
38
38
|
|
|
@@ -66,16 +66,9 @@ class Creative202210ListResponse(ModelNormal):
|
|
|
66
66
|
validations = {
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
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
|
|
69
|
+
additional_properties_type = None
|
|
77
70
|
|
|
78
|
-
_nullable =
|
|
71
|
+
_nullable = True
|
|
79
72
|
|
|
80
73
|
@cached_property
|
|
81
74
|
def openapi_types():
|
|
@@ -89,9 +82,9 @@ class Creative202210ListResponse(ModelNormal):
|
|
|
89
82
|
"""
|
|
90
83
|
lazy_import()
|
|
91
84
|
return {
|
|
92
|
-
'data': ([ResourceOfCreative202210],), # noqa: E501
|
|
93
|
-
'warnings': ([
|
|
94
|
-
'errors': ([
|
|
85
|
+
'data': ([ResourceOfCreative202210], none_type,), # noqa: E501
|
|
86
|
+
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
87
|
+
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
@cached_property
|
|
@@ -148,9 +141,9 @@ class Creative202210ListResponse(ModelNormal):
|
|
|
148
141
|
Animal class but this time we won't travel
|
|
149
142
|
through its discriminator because we passed in
|
|
150
143
|
_visited_composed_classes = (Animal,)
|
|
151
|
-
data ([ResourceOfCreative202210]): [optional] # noqa: E501
|
|
152
|
-
warnings ([
|
|
153
|
-
errors ([
|
|
144
|
+
data ([ResourceOfCreative202210], none_type): [optional] # noqa: E501
|
|
145
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
146
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
154
147
|
"""
|
|
155
148
|
|
|
156
149
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -236,9 +229,9 @@ class Creative202210ListResponse(ModelNormal):
|
|
|
236
229
|
Animal class but this time we won't travel
|
|
237
230
|
through its discriminator because we passed in
|
|
238
231
|
_visited_composed_classes = (Animal,)
|
|
239
|
-
data ([ResourceOfCreative202210]): [optional] # noqa: E501
|
|
240
|
-
warnings ([
|
|
241
|
-
errors ([
|
|
232
|
+
data ([ResourceOfCreative202210], none_type): [optional] # noqa: E501
|
|
233
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
234
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
242
235
|
"""
|
|
243
236
|
|
|
244
237
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_01.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2024_01.model.
|
|
33
|
+
from criteo_api_retailmedia_v2024_01.model.common_problem import CommonProblem
|
|
34
34
|
from criteo_api_retailmedia_v2024_01.model.resource_of_creative202210 import ResourceOfCreative202210
|
|
35
|
-
globals()['
|
|
35
|
+
globals()['CommonProblem'] = CommonProblem
|
|
36
36
|
globals()['ResourceOfCreative202210'] = ResourceOfCreative202210
|
|
37
37
|
|
|
38
38
|
|
|
@@ -66,16 +66,9 @@ class Creative202210Response(ModelNormal):
|
|
|
66
66
|
validations = {
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
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
|
|
69
|
+
additional_properties_type = None
|
|
77
70
|
|
|
78
|
-
_nullable =
|
|
71
|
+
_nullable = True
|
|
79
72
|
|
|
80
73
|
@cached_property
|
|
81
74
|
def openapi_types():
|
|
@@ -90,8 +83,8 @@ class Creative202210Response(ModelNormal):
|
|
|
90
83
|
lazy_import()
|
|
91
84
|
return {
|
|
92
85
|
'data': (ResourceOfCreative202210,), # noqa: E501
|
|
93
|
-
'warnings': ([
|
|
94
|
-
'errors': ([
|
|
86
|
+
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
87
|
+
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
@cached_property
|
|
@@ -149,8 +142,8 @@ class Creative202210Response(ModelNormal):
|
|
|
149
142
|
through its discriminator because we passed in
|
|
150
143
|
_visited_composed_classes = (Animal,)
|
|
151
144
|
data (ResourceOfCreative202210): [optional] # noqa: E501
|
|
152
|
-
warnings ([
|
|
153
|
-
errors ([
|
|
145
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
146
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
154
147
|
"""
|
|
155
148
|
|
|
156
149
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -237,8 +230,8 @@ class Creative202210Response(ModelNormal):
|
|
|
237
230
|
through its discriminator because we passed in
|
|
238
231
|
_visited_composed_classes = (Animal,)
|
|
239
232
|
data (ResourceOfCreative202210): [optional] # noqa: E501
|
|
240
|
-
warnings ([
|
|
241
|
-
errors ([
|
|
233
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
234
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
242
235
|
"""
|
|
243
236
|
|
|
244
237
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -64,14 +64,7 @@ class CreativeCreateModel202207(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
69
|
_nullable = False
|
|
77
70
|
|
|
@@ -91,7 +84,7 @@ class CreativeCreateModel202207(ModelNormal):
|
|
|
91
84
|
'retailer_id': (int,), # noqa: E501
|
|
92
85
|
'template_id': (int,), # noqa: E501
|
|
93
86
|
'template_variable_values': ([TemplateVariableValue],), # noqa: E501
|
|
94
|
-
'brand_id': (int,), # noqa: E501
|
|
87
|
+
'brand_id': (int, none_type,), # noqa: E501
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
@cached_property
|
|
@@ -154,7 +147,7 @@ class CreativeCreateModel202207(ModelNormal):
|
|
|
154
147
|
Animal class but this time we won't travel
|
|
155
148
|
through its discriminator because we passed in
|
|
156
149
|
_visited_composed_classes = (Animal,)
|
|
157
|
-
brand_id (int): The brand associated to the creative. [optional] # noqa: E501
|
|
150
|
+
brand_id (int, none_type): The brand associated to the creative. [optional] # noqa: E501
|
|
158
151
|
"""
|
|
159
152
|
|
|
160
153
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -250,7 +243,7 @@ class CreativeCreateModel202207(ModelNormal):
|
|
|
250
243
|
Animal class but this time we won't travel
|
|
251
244
|
through its discriminator because we passed in
|
|
252
245
|
_visited_composed_classes = (Animal,)
|
|
253
|
-
brand_id (int): The brand associated to the creative. [optional] # noqa: E501
|
|
246
|
+
brand_id (int, none_type): The brand associated to the creative. [optional] # noqa: E501
|
|
254
247
|
"""
|
|
255
248
|
|
|
256
249
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -64,14 +64,7 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
69
|
_nullable = False
|
|
77
70
|
|
|
@@ -91,7 +84,7 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
91
84
|
'retailer_id': (int,), # noqa: E501
|
|
92
85
|
'template_id': (int,), # noqa: E501
|
|
93
86
|
'template_variable_values': ([TemplateVariableValue],), # noqa: E501
|
|
94
|
-
'brand_id': (int,), # noqa: E501
|
|
87
|
+
'brand_id': (int, none_type,), # noqa: E501
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
@cached_property
|
|
@@ -154,7 +147,7 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
154
147
|
Animal class but this time we won't travel
|
|
155
148
|
through its discriminator because we passed in
|
|
156
149
|
_visited_composed_classes = (Animal,)
|
|
157
|
-
brand_id (int): The brand associated to the creative. [optional] # noqa: E501
|
|
150
|
+
brand_id (int, none_type): The brand associated to the creative. [optional] # noqa: E501
|
|
158
151
|
"""
|
|
159
152
|
|
|
160
153
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -250,7 +243,7 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
250
243
|
Animal class but this time we won't travel
|
|
251
244
|
through its discriminator because we passed in
|
|
252
245
|
_visited_composed_classes = (Animal,)
|
|
253
|
-
brand_id (int): The brand associated to the creative. [optional] # noqa: E501
|
|
246
|
+
brand_id (int, none_type): The brand associated to the creative. [optional] # noqa: E501
|
|
254
247
|
"""
|
|
255
248
|
|
|
256
249
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -59,16 +59,11 @@ class FilesVariableValue(ModelNormal):
|
|
|
59
59
|
|
|
60
60
|
validations = {
|
|
61
61
|
('asset_ids',): {
|
|
62
|
+
'min_items': 1,
|
|
62
63
|
},
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
def additional_properties_type():
|
|
67
|
-
"""
|
|
68
|
-
This must be a method because a model may have properties that are
|
|
69
|
-
of type self, this must run after the class is loaded
|
|
70
|
-
"""
|
|
71
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
66
|
+
additional_properties_type = None
|
|
72
67
|
|
|
73
68
|
_nullable = False
|
|
74
69
|
|
|
@@ -67,13 +67,7 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
67
67
|
validations = {
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
def additional_properties_type():
|
|
72
|
-
"""
|
|
73
|
-
This must be a method because a model may have properties that are
|
|
74
|
-
of type self, this must run after the class is loaded
|
|
75
|
-
"""
|
|
76
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
70
|
+
additional_properties_type = None
|
|
77
71
|
|
|
78
72
|
_nullable = False
|
|
79
73
|
|
|
@@ -89,8 +83,8 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
89
83
|
"""
|
|
90
84
|
return {
|
|
91
85
|
'extensions': ([str],), # noqa: E501
|
|
92
|
-
'min_files': (int, none_type,), # noqa: E501
|
|
93
86
|
'max_bytes': (int, none_type,), # noqa: E501
|
|
87
|
+
'min_files': (int, none_type,), # noqa: E501
|
|
94
88
|
'max_file': (int, none_type,), # noqa: E501
|
|
95
89
|
}
|
|
96
90
|
|
|
@@ -101,8 +95,8 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
101
95
|
|
|
102
96
|
attribute_map = {
|
|
103
97
|
'extensions': 'extensions', # noqa: E501
|
|
104
|
-
'min_files': 'minFiles', # noqa: E501
|
|
105
98
|
'max_bytes': 'maxBytes', # noqa: E501
|
|
99
|
+
'min_files': 'minFiles', # noqa: E501
|
|
106
100
|
'max_file': 'maxFile', # noqa: E501
|
|
107
101
|
}
|
|
108
102
|
|
|
@@ -113,12 +107,11 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
113
107
|
|
|
114
108
|
@classmethod
|
|
115
109
|
@convert_js_args_to_python_args
|
|
116
|
-
def _from_openapi_data(cls, extensions,
|
|
110
|
+
def _from_openapi_data(cls, extensions, *args, **kwargs): # noqa: E501
|
|
117
111
|
"""FilesVariablesSpecification - a model defined in OpenAPI
|
|
118
112
|
|
|
119
113
|
Args:
|
|
120
114
|
extensions ([str]): The accepted file extensions
|
|
121
|
-
min_files (int, none_type): The minimum amount of files requires
|
|
122
115
|
|
|
123
116
|
Keyword Args:
|
|
124
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -152,6 +145,7 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
152
145
|
through its discriminator because we passed in
|
|
153
146
|
_visited_composed_classes = (Animal,)
|
|
154
147
|
max_bytes (int, none_type): The maximum amount of bytes per file. [optional] # noqa: E501
|
|
148
|
+
min_files (int, none_type): The minimum amount of files requires. [optional] # noqa: E501
|
|
155
149
|
max_file (int, none_type): The maximum amount of files required. [optional] # noqa: E501
|
|
156
150
|
"""
|
|
157
151
|
|
|
@@ -185,7 +179,6 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
185
179
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
186
180
|
|
|
187
181
|
self.extensions = extensions
|
|
188
|
-
self.min_files = min_files
|
|
189
182
|
for var_name, var_value in kwargs.items():
|
|
190
183
|
if var_name not in self.attribute_map and \
|
|
191
184
|
self._configuration is not None and \
|
|
@@ -206,12 +199,11 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
206
199
|
])
|
|
207
200
|
|
|
208
201
|
@convert_js_args_to_python_args
|
|
209
|
-
def __init__(self, extensions,
|
|
202
|
+
def __init__(self, extensions, *args, **kwargs): # noqa: E501
|
|
210
203
|
"""FilesVariablesSpecification - a model defined in OpenAPI
|
|
211
204
|
|
|
212
205
|
Args:
|
|
213
206
|
extensions ([str]): The accepted file extensions
|
|
214
|
-
min_files (int, none_type): The minimum amount of files requires
|
|
215
207
|
|
|
216
208
|
Keyword Args:
|
|
217
209
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -245,6 +237,7 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
245
237
|
through its discriminator because we passed in
|
|
246
238
|
_visited_composed_classes = (Animal,)
|
|
247
239
|
max_bytes (int, none_type): The maximum amount of bytes per file. [optional] # noqa: E501
|
|
240
|
+
min_files (int, none_type): The minimum amount of files requires. [optional] # noqa: E501
|
|
248
241
|
max_file (int, none_type): The maximum amount of files required. [optional] # noqa: E501
|
|
249
242
|
"""
|
|
250
243
|
|
|
@@ -276,7 +269,6 @@ class FilesVariablesSpecification(ModelNormal):
|
|
|
276
269
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
277
270
|
|
|
278
271
|
self.extensions = extensions
|
|
279
|
-
self.min_files = min_files
|
|
280
272
|
for var_name, var_value in kwargs.items():
|
|
281
273
|
if var_name not in self.attribute_map and \
|
|
282
274
|
self._configuration is not None and \
|
|
@@ -60,15 +60,9 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
60
60
|
validations = {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
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
|
|
63
|
+
additional_properties_type = None
|
|
70
64
|
|
|
71
|
-
_nullable =
|
|
65
|
+
_nullable = True
|
|
72
66
|
|
|
73
67
|
@cached_property
|
|
74
68
|
def openapi_types():
|
|
@@ -81,7 +75,7 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
81
75
|
and the value is attribute type.
|
|
82
76
|
"""
|
|
83
77
|
return {
|
|
84
|
-
'url': (str,), # noqa: E501
|
|
78
|
+
'url': (str, none_type,), # noqa: E501
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
@cached_property
|
|
@@ -100,12 +94,9 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
100
94
|
|
|
101
95
|
@classmethod
|
|
102
96
|
@convert_js_args_to_python_args
|
|
103
|
-
def _from_openapi_data(cls,
|
|
97
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
104
98
|
"""HyperlinkVariableValue - a model defined in OpenAPI
|
|
105
99
|
|
|
106
|
-
Args:
|
|
107
|
-
url (str): The url to redirect to
|
|
108
|
-
|
|
109
100
|
Keyword Args:
|
|
110
101
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
111
102
|
will be type checked and a TypeError will be
|
|
@@ -137,6 +128,7 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
137
128
|
Animal class but this time we won't travel
|
|
138
129
|
through its discriminator because we passed in
|
|
139
130
|
_visited_composed_classes = (Animal,)
|
|
131
|
+
url (str, none_type): The url to redirect to. [optional] # noqa: E501
|
|
140
132
|
"""
|
|
141
133
|
|
|
142
134
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -168,7 +160,6 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
168
160
|
self._configuration = _configuration
|
|
169
161
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
170
162
|
|
|
171
|
-
self.url = url
|
|
172
163
|
for var_name, var_value in kwargs.items():
|
|
173
164
|
if var_name not in self.attribute_map and \
|
|
174
165
|
self._configuration is not None and \
|
|
@@ -189,12 +180,9 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
189
180
|
])
|
|
190
181
|
|
|
191
182
|
@convert_js_args_to_python_args
|
|
192
|
-
def __init__(self,
|
|
183
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
193
184
|
"""HyperlinkVariableValue - a model defined in OpenAPI
|
|
194
185
|
|
|
195
|
-
Args:
|
|
196
|
-
url (str): The url to redirect to
|
|
197
|
-
|
|
198
186
|
Keyword Args:
|
|
199
187
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
200
188
|
will be type checked and a TypeError will be
|
|
@@ -226,6 +214,7 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
226
214
|
Animal class but this time we won't travel
|
|
227
215
|
through its discriminator because we passed in
|
|
228
216
|
_visited_composed_classes = (Animal,)
|
|
217
|
+
url (str, none_type): The url to redirect to. [optional] # noqa: E501
|
|
229
218
|
"""
|
|
230
219
|
|
|
231
220
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -255,7 +244,6 @@ class HyperlinkVariableValue(ModelNormal):
|
|
|
255
244
|
self._configuration = _configuration
|
|
256
245
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
257
246
|
|
|
258
|
-
self.url = url
|
|
259
247
|
for var_name, var_value in kwargs.items():
|
|
260
248
|
if var_name not in self.attribute_map and \
|
|
261
249
|
self._configuration is not None and \
|
criteo_api_retailmedia_v2024_01/model/{page_type_environment.py → page_type_environment202210.py}
RENAMED
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_01.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class PageTypeEnvironment202210(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -56,6 +56,7 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
58
|
('page_type',): {
|
|
59
|
+
'None': None,
|
|
59
60
|
'SEARCH': "Search",
|
|
60
61
|
'HOME': "Home",
|
|
61
62
|
'BROWSE': "Browse",
|
|
@@ -67,6 +68,7 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
67
68
|
'DEALS': "Deals",
|
|
68
69
|
},
|
|
69
70
|
('environments',): {
|
|
71
|
+
'None': None,
|
|
70
72
|
'WEB': "Web",
|
|
71
73
|
'MOBILE': "Mobile",
|
|
72
74
|
'APP': "App",
|
|
@@ -80,13 +82,7 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
80
82
|
validations = {
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
|
|
84
|
-
def additional_properties_type():
|
|
85
|
-
"""
|
|
86
|
-
This must be a method because a model may have properties that are
|
|
87
|
-
of type self, this must run after the class is loaded
|
|
88
|
-
"""
|
|
89
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
85
|
+
additional_properties_type = None
|
|
90
86
|
|
|
91
87
|
_nullable = False
|
|
92
88
|
|
|
@@ -101,8 +97,8 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
101
97
|
and the value is attribute type.
|
|
102
98
|
"""
|
|
103
99
|
return {
|
|
104
|
-
'page_type': (str,), # noqa: E501
|
|
105
|
-
'environments': ([str],), # noqa: E501
|
|
100
|
+
'page_type': (str, none_type,), # noqa: E501
|
|
101
|
+
'environments': ([str], none_type,), # noqa: E501
|
|
106
102
|
}
|
|
107
103
|
|
|
108
104
|
@cached_property
|
|
@@ -123,7 +119,7 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
123
119
|
@classmethod
|
|
124
120
|
@convert_js_args_to_python_args
|
|
125
121
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
126
|
-
"""
|
|
122
|
+
"""PageTypeEnvironment202210 - a model defined in OpenAPI
|
|
127
123
|
|
|
128
124
|
Keyword Args:
|
|
129
125
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -156,8 +152,8 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
156
152
|
Animal class but this time we won't travel
|
|
157
153
|
through its discriminator because we passed in
|
|
158
154
|
_visited_composed_classes = (Animal,)
|
|
159
|
-
page_type (str): Creative PageType. [optional] # noqa: E501
|
|
160
|
-
environments ([str]): List of environments per PageType. [optional] # noqa: E501
|
|
155
|
+
page_type (str, none_type): Creative PageType. [optional] # noqa: E501
|
|
156
|
+
environments ([str], none_type): List of environments per PageType. [optional] # noqa: E501
|
|
161
157
|
"""
|
|
162
158
|
|
|
163
159
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -210,7 +206,7 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
210
206
|
|
|
211
207
|
@convert_js_args_to_python_args
|
|
212
208
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
213
|
-
"""
|
|
209
|
+
"""PageTypeEnvironment202210 - a model defined in OpenAPI
|
|
214
210
|
|
|
215
211
|
Keyword Args:
|
|
216
212
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -243,8 +239,8 @@ class PageTypeEnvironment(ModelNormal):
|
|
|
243
239
|
Animal class but this time we won't travel
|
|
244
240
|
through its discriminator because we passed in
|
|
245
241
|
_visited_composed_classes = (Animal,)
|
|
246
|
-
page_type (str): Creative PageType. [optional] # noqa: E501
|
|
247
|
-
environments ([str]): List of environments per PageType. [optional] # noqa: E501
|
|
242
|
+
page_type (str, none_type): Creative PageType. [optional] # noqa: E501
|
|
243
|
+
environments ([str], none_type): List of environments per PageType. [optional] # noqa: E501
|
|
248
244
|
"""
|
|
249
245
|
|
|
250
246
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -64,16 +64,9 @@ class ResourceOfCreative202110(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = True
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -87,9 +80,9 @@ class ResourceOfCreative202110(ModelNormal):
|
|
|
87
80
|
"""
|
|
88
81
|
lazy_import()
|
|
89
82
|
return {
|
|
83
|
+
'attributes': (Creative202110,), # noqa: E501
|
|
90
84
|
'id': (str, none_type,), # noqa: E501
|
|
91
85
|
'type': (str, none_type,), # noqa: E501
|
|
92
|
-
'attributes': (Creative202110,), # noqa: E501
|
|
93
86
|
}
|
|
94
87
|
|
|
95
88
|
@cached_property
|
|
@@ -98,9 +91,9 @@ class ResourceOfCreative202110(ModelNormal):
|
|
|
98
91
|
|
|
99
92
|
|
|
100
93
|
attribute_map = {
|
|
94
|
+
'attributes': 'attributes', # noqa: E501
|
|
101
95
|
'id': 'id', # noqa: E501
|
|
102
96
|
'type': 'type', # noqa: E501
|
|
103
|
-
'attributes': 'attributes', # noqa: E501
|
|
104
97
|
}
|
|
105
98
|
|
|
106
99
|
read_only_vars = {
|
|
@@ -144,9 +137,9 @@ class ResourceOfCreative202110(ModelNormal):
|
|
|
144
137
|
Animal class but this time we won't travel
|
|
145
138
|
through its discriminator because we passed in
|
|
146
139
|
_visited_composed_classes = (Animal,)
|
|
140
|
+
attributes (Creative202110): [optional] # noqa: E501
|
|
147
141
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
148
142
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
149
|
-
attributes (Creative202110): [optional] # noqa: E501
|
|
150
143
|
"""
|
|
151
144
|
|
|
152
145
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -232,9 +225,9 @@ class ResourceOfCreative202110(ModelNormal):
|
|
|
232
225
|
Animal class but this time we won't travel
|
|
233
226
|
through its discriminator because we passed in
|
|
234
227
|
_visited_composed_classes = (Animal,)
|
|
228
|
+
attributes (Creative202110): [optional] # noqa: E501
|
|
235
229
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
236
230
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
237
|
-
attributes (Creative202110): [optional] # noqa: E501
|
|
238
231
|
"""
|
|
239
232
|
|
|
240
233
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -64,16 +64,9 @@ class ResourceOfCreative202210(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = True
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -64,16 +64,9 @@ class ResourceOfTemplate(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = True
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -64,16 +64,9 @@ class Section(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = True
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -89,6 +82,7 @@ class Section(ModelNormal):
|
|
|
89
82
|
return {
|
|
90
83
|
'template_variables': ([TemplateVariable],), # noqa: E501
|
|
91
84
|
'title': (str, none_type,), # noqa: E501
|
|
85
|
+
'description': (str, none_type,), # noqa: E501
|
|
92
86
|
}
|
|
93
87
|
|
|
94
88
|
@cached_property
|
|
@@ -99,6 +93,7 @@ class Section(ModelNormal):
|
|
|
99
93
|
attribute_map = {
|
|
100
94
|
'template_variables': 'templateVariables', # noqa: E501
|
|
101
95
|
'title': 'title', # noqa: E501
|
|
96
|
+
'description': 'description', # noqa: E501
|
|
102
97
|
}
|
|
103
98
|
|
|
104
99
|
read_only_vars = {
|
|
@@ -146,6 +141,7 @@ class Section(ModelNormal):
|
|
|
146
141
|
through its discriminator because we passed in
|
|
147
142
|
_visited_composed_classes = (Animal,)
|
|
148
143
|
title (str, none_type): [optional] # noqa: E501
|
|
144
|
+
description (str, none_type): [optional] # noqa: E501
|
|
149
145
|
"""
|
|
150
146
|
|
|
151
147
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -236,6 +232,7 @@ class Section(ModelNormal):
|
|
|
236
232
|
through its discriminator because we passed in
|
|
237
233
|
_visited_composed_classes = (Animal,)
|
|
238
234
|
title (str, none_type): [optional] # noqa: E501
|
|
235
|
+
description (str, none_type): [optional] # noqa: E501
|
|
239
236
|
"""
|
|
240
237
|
|
|
241
238
|
_check_type = kwargs.pop('_check_type', True)
|