criteo-api-retailmedia-sdk 0.0.250811__py3-none-any.whl → 0.0.250825__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_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/audience_api.py +4 -4
- criteo_api_retailmedia_preview/api/balance_api.py +48 -48
- criteo_api_retailmedia_preview/api/campaign_api.py +424 -398
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/async_fill_rate_report.py +0 -2
- criteo_api_retailmedia_preview/model/balance_response_v2.py +6 -6
- criteo_api_retailmedia_preview/model/{paged_resource_collection_outcome_of_balance_response_v2.py → balance_response_v2_paged_list_response.py} +3 -3
- criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py +9 -9
- criteo_api_retailmedia_preview/model/create_balance_v2.py +6 -6
- criteo_api_retailmedia_preview/model/flight_leg.py +6 -6
- criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +5 -5
- criteo_api_retailmedia_preview/model/{external_line_item_capping_v2.py → line_item_capping_v2.py} +4 -4
- criteo_api_retailmedia_preview/model/{external_line_item_page_category_v2.py → line_item_page_category_v2.py} +3 -3
- criteo_api_retailmedia_preview/model/{external_line_item_page_v2.py → line_item_page_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/page_metadata.py +1 -1
- criteo_api_retailmedia_preview/model/{external_preferred_line_item_create_model_v2.py → preferred_line_item_create_model_v2.py} +16 -16
- criteo_api_retailmedia_preview/model/{external_preferred_line_item_update_model_v2.py → preferred_line_item_update_model_v2.py} +16 -16
- criteo_api_retailmedia_preview/model/{external_preferred_line_item_v2.py → preferred_line_item_v2.py} +33 -35
- criteo_api_retailmedia_preview/model/product_button_request.py +30 -12
- criteo_api_retailmedia_preview/model/{product_button_list_request.py → product_button_request_list_request.py} +4 -4
- criteo_api_retailmedia_preview/model/product_button_request_request.py +269 -0
- criteo_api_retailmedia_preview/model/{external_product_button_response.py → product_button_response.py} +3 -3
- criteo_api_retailmedia_preview/model/{product_button_list_response.py → product_button_response_list_response.py} +15 -15
- criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +5 -5
- criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +5 -5
- criteo_api_retailmedia_preview/model/resource_of_product_button_request.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_product_button_response.py +6 -6
- criteo_api_retailmedia_preview/model/{rm_audience_compute_sizes_entity_v1.py → rm_audience_compute_size_entity_v1.py} +3 -4
- criteo_api_retailmedia_preview/model/{rm_audience_compute_sizes_entity_v1_resource.py → rm_audience_compute_size_entity_v1_resource.py} +8 -8
- criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +5 -5
- criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +0 -1
- criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +0 -1
- criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +0 -1
- criteo_api_retailmedia_preview/model/rm_events_create_v1.py +0 -2
- criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +0 -2
- criteo_api_retailmedia_preview/model/rm_events_update_v1.py +0 -2
- criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +4 -4
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +6 -6
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +9 -9
- criteo_api_retailmedia_preview/models/__init__.py +13 -13
- {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250825.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250825.dist-info}/RECORD +46 -46
- criteo_api_retailmedia_preview/model/external_product_button_request.py +0 -287
- {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250825.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250825.dist-info}/top_level.txt +0 -0
|
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.
|
|
34
|
-
from criteo_api_retailmedia_preview.model.
|
|
35
|
-
globals()['
|
|
36
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.line_item_capping_v2 import LineItemCappingV2
|
|
34
|
+
from criteo_api_retailmedia_preview.model.line_item_page_v2 import LineItemPageV2
|
|
35
|
+
globals()['LineItemCappingV2'] = LineItemCappingV2
|
|
36
|
+
globals()['LineItemPageV2'] = LineItemPageV2
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class PreferredLineItemV2(ModelNormal):
|
|
40
40
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
41
41
|
Ref: https://openapi-generator.tech
|
|
42
42
|
|
|
@@ -110,22 +110,22 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
110
110
|
"""
|
|
111
111
|
lazy_import()
|
|
112
112
|
return {
|
|
113
|
+
'budget': (float,), # noqa: E501
|
|
113
114
|
'campaign_id': (str,), # noqa: E501
|
|
114
|
-
'created_at': (datetime,), # noqa: E501
|
|
115
115
|
'end_date': (date,), # noqa: E501
|
|
116
116
|
'name': (str,), # noqa: E501
|
|
117
117
|
'start_date': (date,), # noqa: E501
|
|
118
118
|
'status': (str,), # noqa: E501
|
|
119
119
|
'target_retailer_id': (str,), # noqa: E501
|
|
120
|
-
'updated_at': (datetime,), # noqa: E501
|
|
121
|
-
'budget': (float, none_type,), # noqa: E501
|
|
122
120
|
'budget_remaining': (float, none_type,), # noqa: E501
|
|
123
121
|
'budget_spent': (float, none_type,), # noqa: E501
|
|
124
|
-
'capping': (
|
|
122
|
+
'capping': (LineItemCappingV2,), # noqa: E501
|
|
123
|
+
'created_at': (datetime,), # noqa: E501
|
|
125
124
|
'creative_id': (str, none_type,), # noqa: E501
|
|
126
125
|
'id': (str, none_type,), # noqa: E501
|
|
127
126
|
'pacing': (str, none_type,), # noqa: E501
|
|
128
|
-
'page': (
|
|
127
|
+
'page': (LineItemPageV2,), # noqa: E501
|
|
128
|
+
'updated_at': (datetime,), # noqa: E501
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
@cached_property
|
|
@@ -134,22 +134,22 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
attribute_map = {
|
|
137
|
+
'budget': 'budget', # noqa: E501
|
|
137
138
|
'campaign_id': 'campaignId', # noqa: E501
|
|
138
|
-
'created_at': 'createdAt', # noqa: E501
|
|
139
139
|
'end_date': 'endDate', # noqa: E501
|
|
140
140
|
'name': 'name', # noqa: E501
|
|
141
141
|
'start_date': 'startDate', # noqa: E501
|
|
142
142
|
'status': 'status', # noqa: E501
|
|
143
143
|
'target_retailer_id': 'targetRetailerId', # noqa: E501
|
|
144
|
-
'updated_at': 'updatedAt', # noqa: E501
|
|
145
|
-
'budget': 'budget', # noqa: E501
|
|
146
144
|
'budget_remaining': 'budgetRemaining', # noqa: E501
|
|
147
145
|
'budget_spent': 'budgetSpent', # noqa: E501
|
|
148
146
|
'capping': 'capping', # noqa: E501
|
|
147
|
+
'created_at': 'createdAt', # noqa: E501
|
|
149
148
|
'creative_id': 'creativeId', # noqa: E501
|
|
150
149
|
'id': 'id', # noqa: E501
|
|
151
150
|
'pacing': 'pacing', # noqa: E501
|
|
152
151
|
'page': 'page', # noqa: E501
|
|
152
|
+
'updated_at': 'updatedAt', # noqa: E501
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
read_only_vars = {
|
|
@@ -159,18 +159,17 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
159
159
|
|
|
160
160
|
@classmethod
|
|
161
161
|
@convert_js_args_to_python_args
|
|
162
|
-
def _from_openapi_data(cls,
|
|
163
|
-
"""
|
|
162
|
+
def _from_openapi_data(cls, budget, campaign_id, end_date, name, start_date, status, target_retailer_id, *args, **kwargs): # noqa: E501
|
|
163
|
+
"""PreferredLineItemV2 - a model defined in OpenAPI
|
|
164
164
|
|
|
165
165
|
Args:
|
|
166
|
+
budget (float):
|
|
166
167
|
campaign_id (str):
|
|
167
|
-
created_at (datetime):
|
|
168
168
|
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
169
169
|
name (str):
|
|
170
170
|
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
171
171
|
status (str): Line Item Status Enum
|
|
172
172
|
target_retailer_id (str):
|
|
173
|
-
updated_at (datetime):
|
|
174
173
|
|
|
175
174
|
Keyword Args:
|
|
176
175
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -203,14 +202,15 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
203
202
|
Animal class but this time we won't travel
|
|
204
203
|
through its discriminator because we passed in
|
|
205
204
|
_visited_composed_classes = (Animal,)
|
|
206
|
-
budget (float, none_type): [optional] # noqa: E501
|
|
207
205
|
budget_remaining (float, none_type): [optional] # noqa: E501
|
|
208
206
|
budget_spent (float, none_type): [optional] # noqa: E501
|
|
209
|
-
capping (
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
capping (LineItemCappingV2): [optional] # noqa: E501
|
|
208
|
+
created_at (datetime): [optional] # noqa: E501
|
|
209
|
+
creative_id (str, none_type): creative Id. [optional] # noqa: E501
|
|
210
|
+
id (str, none_type): [optional] # noqa: E501
|
|
212
211
|
pacing (str, none_type): [optional] # noqa: E501
|
|
213
|
-
page (
|
|
212
|
+
page (LineItemPageV2): [optional] # noqa: E501
|
|
213
|
+
updated_at (datetime): [optional] # noqa: E501
|
|
214
214
|
"""
|
|
215
215
|
|
|
216
216
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -242,14 +242,13 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
242
242
|
self._configuration = _configuration
|
|
243
243
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
244
244
|
|
|
245
|
+
self.budget = budget
|
|
245
246
|
self.campaign_id = campaign_id
|
|
246
|
-
self.created_at = created_at
|
|
247
247
|
self.end_date = end_date
|
|
248
248
|
self.name = name
|
|
249
249
|
self.start_date = start_date
|
|
250
250
|
self.status = status
|
|
251
251
|
self.target_retailer_id = target_retailer_id
|
|
252
|
-
self.updated_at = updated_at
|
|
253
252
|
for var_name, var_value in kwargs.items():
|
|
254
253
|
if var_name not in self.attribute_map and \
|
|
255
254
|
self._configuration is not None and \
|
|
@@ -270,18 +269,17 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
270
269
|
])
|
|
271
270
|
|
|
272
271
|
@convert_js_args_to_python_args
|
|
273
|
-
def __init__(self,
|
|
274
|
-
"""
|
|
272
|
+
def __init__(self, budget, campaign_id, end_date, name, start_date, status, target_retailer_id, *args, **kwargs): # noqa: E501
|
|
273
|
+
"""PreferredLineItemV2 - a model defined in OpenAPI
|
|
275
274
|
|
|
276
275
|
Args:
|
|
276
|
+
budget (float):
|
|
277
277
|
campaign_id (str):
|
|
278
|
-
created_at (datetime):
|
|
279
278
|
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
280
279
|
name (str):
|
|
281
280
|
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
282
281
|
status (str): Line Item Status Enum
|
|
283
282
|
target_retailer_id (str):
|
|
284
|
-
updated_at (datetime):
|
|
285
283
|
|
|
286
284
|
Keyword Args:
|
|
287
285
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -314,14 +312,15 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
314
312
|
Animal class but this time we won't travel
|
|
315
313
|
through its discriminator because we passed in
|
|
316
314
|
_visited_composed_classes = (Animal,)
|
|
317
|
-
budget (float, none_type): [optional] # noqa: E501
|
|
318
315
|
budget_remaining (float, none_type): [optional] # noqa: E501
|
|
319
316
|
budget_spent (float, none_type): [optional] # noqa: E501
|
|
320
|
-
capping (
|
|
321
|
-
|
|
322
|
-
|
|
317
|
+
capping (LineItemCappingV2): [optional] # noqa: E501
|
|
318
|
+
created_at (datetime): [optional] # noqa: E501
|
|
319
|
+
creative_id (str, none_type): creative Id. [optional] # noqa: E501
|
|
320
|
+
id (str, none_type): [optional] # noqa: E501
|
|
323
321
|
pacing (str, none_type): [optional] # noqa: E501
|
|
324
|
-
page (
|
|
322
|
+
page (LineItemPageV2): [optional] # noqa: E501
|
|
323
|
+
updated_at (datetime): [optional] # noqa: E501
|
|
325
324
|
"""
|
|
326
325
|
|
|
327
326
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -351,14 +350,13 @@ class ExternalPreferredLineItemV2(ModelNormal):
|
|
|
351
350
|
self._configuration = _configuration
|
|
352
351
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
353
352
|
|
|
353
|
+
self.budget = budget
|
|
354
354
|
self.campaign_id = campaign_id
|
|
355
|
-
self.created_at = created_at
|
|
356
355
|
self.end_date = end_date
|
|
357
356
|
self.name = name
|
|
358
357
|
self.start_date = start_date
|
|
359
358
|
self.status = status
|
|
360
359
|
self.target_retailer_id = target_retailer_id
|
|
361
|
-
self.updated_at = updated_at
|
|
362
360
|
for var_name, var_value in kwargs.items():
|
|
363
361
|
if var_name not in self.attribute_map and \
|
|
364
362
|
self._configuration is not None and \
|
|
@@ -29,10 +29,6 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
29
29
|
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.resource_of_product_button_request import ResourceOfProductButtonRequest
|
|
34
|
-
globals()['ResourceOfProductButtonRequest'] = ResourceOfProductButtonRequest
|
|
35
|
-
|
|
36
32
|
|
|
37
33
|
class ProductButtonRequest(ModelNormal):
|
|
38
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -70,7 +66,6 @@ class ProductButtonRequest(ModelNormal):
|
|
|
70
66
|
This must be a method because a model may have properties that are
|
|
71
67
|
of type self, this must run after the class is loaded
|
|
72
68
|
"""
|
|
73
|
-
lazy_import()
|
|
74
69
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
70
|
|
|
76
71
|
_nullable = False
|
|
@@ -85,9 +80,11 @@ class ProductButtonRequest(ModelNormal):
|
|
|
85
80
|
openapi_types (dict): The key is attribute name
|
|
86
81
|
and the value is attribute type.
|
|
87
82
|
"""
|
|
88
|
-
lazy_import()
|
|
89
83
|
return {
|
|
90
|
-
'
|
|
84
|
+
'background_image': (str,), # noqa: E501
|
|
85
|
+
'is_mandatory': (int,), # noqa: E501
|
|
86
|
+
'name': (str,), # noqa: E501
|
|
87
|
+
'skus': ([str],), # noqa: E501
|
|
91
88
|
}
|
|
92
89
|
|
|
93
90
|
@cached_property
|
|
@@ -96,7 +93,10 @@ class ProductButtonRequest(ModelNormal):
|
|
|
96
93
|
|
|
97
94
|
|
|
98
95
|
attribute_map = {
|
|
99
|
-
'
|
|
96
|
+
'background_image': 'backgroundImage', # noqa: E501
|
|
97
|
+
'is_mandatory': 'isMandatory', # noqa: E501
|
|
98
|
+
'name': 'name', # noqa: E501
|
|
99
|
+
'skus': 'skus', # noqa: E501
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
read_only_vars = {
|
|
@@ -106,9 +106,15 @@ class ProductButtonRequest(ModelNormal):
|
|
|
106
106
|
|
|
107
107
|
@classmethod
|
|
108
108
|
@convert_js_args_to_python_args
|
|
109
|
-
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
109
|
+
def _from_openapi_data(cls, background_image, is_mandatory, name, skus, *args, **kwargs): # noqa: E501
|
|
110
110
|
"""ProductButtonRequest - a model defined in OpenAPI
|
|
111
111
|
|
|
112
|
+
Args:
|
|
113
|
+
background_image (str): URL of the background image
|
|
114
|
+
is_mandatory (int): If the Product Button is Mandatory
|
|
115
|
+
name (str): Name of the Product Button
|
|
116
|
+
skus ([str]): List of skus on the Product Button
|
|
117
|
+
|
|
112
118
|
Keyword Args:
|
|
113
119
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
114
120
|
will be type checked and a TypeError will be
|
|
@@ -140,7 +146,6 @@ class ProductButtonRequest(ModelNormal):
|
|
|
140
146
|
Animal class but this time we won't travel
|
|
141
147
|
through its discriminator because we passed in
|
|
142
148
|
_visited_composed_classes = (Animal,)
|
|
143
|
-
data (ResourceOfProductButtonRequest): [optional] # noqa: E501
|
|
144
149
|
"""
|
|
145
150
|
|
|
146
151
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -172,6 +177,10 @@ class ProductButtonRequest(ModelNormal):
|
|
|
172
177
|
self._configuration = _configuration
|
|
173
178
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
174
179
|
|
|
180
|
+
self.background_image = background_image
|
|
181
|
+
self.is_mandatory = is_mandatory
|
|
182
|
+
self.name = name
|
|
183
|
+
self.skus = skus
|
|
175
184
|
for var_name, var_value in kwargs.items():
|
|
176
185
|
if var_name not in self.attribute_map and \
|
|
177
186
|
self._configuration is not None and \
|
|
@@ -192,9 +201,15 @@ class ProductButtonRequest(ModelNormal):
|
|
|
192
201
|
])
|
|
193
202
|
|
|
194
203
|
@convert_js_args_to_python_args
|
|
195
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
204
|
+
def __init__(self, background_image, is_mandatory, name, skus, *args, **kwargs): # noqa: E501
|
|
196
205
|
"""ProductButtonRequest - a model defined in OpenAPI
|
|
197
206
|
|
|
207
|
+
Args:
|
|
208
|
+
background_image (str): URL of the background image
|
|
209
|
+
is_mandatory (int): If the Product Button is Mandatory
|
|
210
|
+
name (str): Name of the Product Button
|
|
211
|
+
skus ([str]): List of skus on the Product Button
|
|
212
|
+
|
|
198
213
|
Keyword Args:
|
|
199
214
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
200
215
|
will be type checked and a TypeError will be
|
|
@@ -226,7 +241,6 @@ class ProductButtonRequest(ModelNormal):
|
|
|
226
241
|
Animal class but this time we won't travel
|
|
227
242
|
through its discriminator because we passed in
|
|
228
243
|
_visited_composed_classes = (Animal,)
|
|
229
|
-
data (ResourceOfProductButtonRequest): [optional] # noqa: E501
|
|
230
244
|
"""
|
|
231
245
|
|
|
232
246
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -256,6 +270,10 @@ class ProductButtonRequest(ModelNormal):
|
|
|
256
270
|
self._configuration = _configuration
|
|
257
271
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
258
272
|
|
|
273
|
+
self.background_image = background_image
|
|
274
|
+
self.is_mandatory = is_mandatory
|
|
275
|
+
self.name = name
|
|
276
|
+
self.skus = skus
|
|
259
277
|
for var_name, var_value in kwargs.items():
|
|
260
278
|
if var_name not in self.attribute_map and \
|
|
261
279
|
self._configuration is not None and \
|
|
@@ -34,7 +34,7 @@ def lazy_import():
|
|
|
34
34
|
globals()['ResourceOfProductButtonRequest'] = ResourceOfProductButtonRequest
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ProductButtonRequestListRequest(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -73,7 +73,7 @@ class ProductButtonListRequest(ModelNormal):
|
|
|
73
73
|
lazy_import()
|
|
74
74
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
75
|
|
|
76
|
-
_nullable =
|
|
76
|
+
_nullable = True
|
|
77
77
|
|
|
78
78
|
@cached_property
|
|
79
79
|
def openapi_types():
|
|
@@ -107,7 +107,7 @@ class ProductButtonListRequest(ModelNormal):
|
|
|
107
107
|
@classmethod
|
|
108
108
|
@convert_js_args_to_python_args
|
|
109
109
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
-
"""
|
|
110
|
+
"""ProductButtonRequestListRequest - a model defined in OpenAPI
|
|
111
111
|
|
|
112
112
|
Keyword Args:
|
|
113
113
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -193,7 +193,7 @@ class ProductButtonListRequest(ModelNormal):
|
|
|
193
193
|
|
|
194
194
|
@convert_js_args_to_python_args
|
|
195
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
196
|
+
"""ProductButtonRequestListRequest - a model defined in OpenAPI
|
|
197
197
|
|
|
198
198
|
Keyword Args:
|
|
199
199
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: Preview
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
15
|
+
ApiTypeError,
|
|
16
|
+
ModelComposed,
|
|
17
|
+
ModelNormal,
|
|
18
|
+
ModelSimple,
|
|
19
|
+
cached_property,
|
|
20
|
+
change_keys_js_to_python,
|
|
21
|
+
convert_js_args_to_python_args,
|
|
22
|
+
date,
|
|
23
|
+
datetime,
|
|
24
|
+
file_type,
|
|
25
|
+
none_type,
|
|
26
|
+
validate_get_composed_info,
|
|
27
|
+
OpenApiModel
|
|
28
|
+
)
|
|
29
|
+
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.resource_of_product_button_request import ResourceOfProductButtonRequest
|
|
34
|
+
globals()['ResourceOfProductButtonRequest'] = ResourceOfProductButtonRequest
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ProductButtonRequestRequest(ModelNormal):
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
|
|
43
|
+
Attributes:
|
|
44
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
45
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
46
|
+
with a capitalized key describing the allowed value and an allowed
|
|
47
|
+
value. These dicts store the allowed enum values.
|
|
48
|
+
attribute_map (dict): The key is attribute name
|
|
49
|
+
and the value is json key in definition.
|
|
50
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
51
|
+
variable value to the discriminator class name.
|
|
52
|
+
validations (dict): The key is the tuple path to the attribute
|
|
53
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
54
|
+
that stores validations for max_length, min_length, max_items,
|
|
55
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
56
|
+
inclusive_minimum, and regex.
|
|
57
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
58
|
+
as additional properties values.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
allowed_values = {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validations = {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
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
|
|
75
|
+
|
|
76
|
+
_nullable = True
|
|
77
|
+
|
|
78
|
+
@cached_property
|
|
79
|
+
def openapi_types():
|
|
80
|
+
"""
|
|
81
|
+
This must be a method because a model may have properties that are
|
|
82
|
+
of type self, this must run after the class is loaded
|
|
83
|
+
|
|
84
|
+
Returns
|
|
85
|
+
openapi_types (dict): The key is attribute name
|
|
86
|
+
and the value is attribute type.
|
|
87
|
+
"""
|
|
88
|
+
lazy_import()
|
|
89
|
+
return {
|
|
90
|
+
'data': (ResourceOfProductButtonRequest,), # noqa: E501
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@cached_property
|
|
94
|
+
def discriminator():
|
|
95
|
+
return None
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
attribute_map = {
|
|
99
|
+
'data': 'data', # noqa: E501
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
read_only_vars = {
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
_composed_schemas = {}
|
|
106
|
+
|
|
107
|
+
@classmethod
|
|
108
|
+
@convert_js_args_to_python_args
|
|
109
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
+
"""ProductButtonRequestRequest - a model defined in OpenAPI
|
|
111
|
+
|
|
112
|
+
Keyword Args:
|
|
113
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
114
|
+
will be type checked and a TypeError will be
|
|
115
|
+
raised if the wrong type is input.
|
|
116
|
+
Defaults to True
|
|
117
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
118
|
+
drill down to the model in received_data
|
|
119
|
+
when deserializing a response
|
|
120
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
121
|
+
are serialized names, as specified in the OpenAPI document.
|
|
122
|
+
False if the variable names in the input data
|
|
123
|
+
are pythonic names, e.g. snake case (default)
|
|
124
|
+
_configuration (Configuration): the instance to use when
|
|
125
|
+
deserializing a file_type parameter.
|
|
126
|
+
If passed, type conversion is attempted
|
|
127
|
+
If omitted no type conversion is done.
|
|
128
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
129
|
+
classes that we have traveled through so that
|
|
130
|
+
if we see that class again we will not use its
|
|
131
|
+
discriminator again.
|
|
132
|
+
When traveling through a discriminator, the
|
|
133
|
+
composed schema that is
|
|
134
|
+
is traveled through is added to this set.
|
|
135
|
+
For example if Animal has a discriminator
|
|
136
|
+
petType and we pass in "Dog", and the class Dog
|
|
137
|
+
allOf includes Animal, we move through Animal
|
|
138
|
+
once using the discriminator, and pick Dog.
|
|
139
|
+
Then in Dog, we will make an instance of the
|
|
140
|
+
Animal class but this time we won't travel
|
|
141
|
+
through its discriminator because we passed in
|
|
142
|
+
_visited_composed_classes = (Animal,)
|
|
143
|
+
data (ResourceOfProductButtonRequest): [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
|
+
"""ProductButtonRequestRequest - 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
|
+
data (ResourceOfProductButtonRequest): [optional] # noqa: E501
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
233
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
234
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
235
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
236
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
237
|
+
|
|
238
|
+
if args:
|
|
239
|
+
for arg in args:
|
|
240
|
+
if isinstance(arg, dict):
|
|
241
|
+
kwargs.update(arg)
|
|
242
|
+
else:
|
|
243
|
+
raise ApiTypeError(
|
|
244
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
245
|
+
args,
|
|
246
|
+
self.__class__.__name__,
|
|
247
|
+
),
|
|
248
|
+
path_to_item=_path_to_item,
|
|
249
|
+
valid_classes=(self.__class__,),
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
self._data_store = {}
|
|
253
|
+
self._check_type = _check_type
|
|
254
|
+
self._spec_property_naming = _spec_property_naming
|
|
255
|
+
self._path_to_item = _path_to_item
|
|
256
|
+
self._configuration = _configuration
|
|
257
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
258
|
+
|
|
259
|
+
for var_name, var_value in kwargs.items():
|
|
260
|
+
if var_name not in self.attribute_map and \
|
|
261
|
+
self._configuration is not None and \
|
|
262
|
+
self._configuration.discard_unknown_keys and \
|
|
263
|
+
self.additional_properties_type is None:
|
|
264
|
+
# discard variable.
|
|
265
|
+
continue
|
|
266
|
+
setattr(self, var_name, var_value)
|
|
267
|
+
if var_name in self.read_only_vars:
|
|
268
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
269
|
+
f"class with read only attributes.")
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class ProductButtonResponse(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -109,7 +109,7 @@ class ExternalProductButtonResponse(ModelNormal):
|
|
|
109
109
|
@classmethod
|
|
110
110
|
@convert_js_args_to_python_args
|
|
111
111
|
def _from_openapi_data(cls, background_image, is_mandatory, name, rank, skus, *args, **kwargs): # noqa: E501
|
|
112
|
-
"""
|
|
112
|
+
"""ProductButtonResponse - a model defined in OpenAPI
|
|
113
113
|
|
|
114
114
|
Args:
|
|
115
115
|
background_image (str): URL of the background image
|
|
@@ -206,7 +206,7 @@ class ExternalProductButtonResponse(ModelNormal):
|
|
|
206
206
|
|
|
207
207
|
@convert_js_args_to_python_args
|
|
208
208
|
def __init__(self, background_image, is_mandatory, name, rank, skus, *args, **kwargs): # noqa: E501
|
|
209
|
-
"""
|
|
209
|
+
"""ProductButtonResponse - a model defined in OpenAPI
|
|
210
210
|
|
|
211
211
|
Args:
|
|
212
212
|
background_image (str): URL of the background image
|