criteo-api-retailmedia-sdk 0.0.240118__py3-none-any.whl → 0.0.240404__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/accounts_api.py +181 -35
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/audience_api.py +2 -313
- criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
- criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
- criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
- criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
- criteo_api_retailmedia_preview/model/{customer_list_details.py → batch_accepted_response.py} +11 -11
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
- criteo_api_retailmedia_preview/model/{color_variable_value.py → custom_attribute.py} +17 -16
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/external_account.py +4 -0
- criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
- criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
- criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → external_preferred_line_item_create_model_v2.py} +79 -25
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
- criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
- criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{retail_media_audience.py → insertion_order_history_change_data_capture.py} +48 -42
- criteo_api_retailmedia_preview/model/installment.py +273 -0
- criteo_api_retailmedia_preview/model/{creative202210_response.py → loyalty_points.py} +15 -25
- criteo_api_retailmedia_preview/model/metadata.py +273 -0
- criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
- criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{common_status_code_response.py → preferred_line_item_update_model_v2_request.py} +9 -15
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → preferred_line_item_v2_paged_list_response.py} +21 -27
- criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/price.py +267 -0
- criteo_api_retailmedia_preview/model/product.py +626 -0
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → product_importer_error.py} +37 -29
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
- criteo_api_retailmedia_preview/model/product_shipping.py +293 -0
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
- criteo_api_retailmedia_preview/model/product_tax.py +283 -0
- criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
- criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
- criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → products_custom_batch_request_entry.py} +43 -29
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → report_detail_error.py} +35 -15
- criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
- criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
- criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/retail_media_account.py +4 -0
- criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/{text_variable_value.py → retail_media_brands.py} +10 -22
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +3 -3
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → value_resource_input_of_retail_media_brands.py} +15 -22
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +48 -42
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +73 -66
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/choice_option.py +0 -281
- criteo_api_retailmedia_preview/model/choice_variable_specification.py +0 -283
- criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
- criteo_api_retailmedia_preview/model/creative_create_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/creative_update_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
- criteo_api_retailmedia_preview/model/template_list_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_variable.py +0 -310
- criteo_api_retailmedia_preview/model/user_behavior_details.py +0 -306
- criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +0 -279
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,281 @@
|
|
|
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.report_detail_error import ReportDetailError
|
|
34
|
+
globals()['ReportDetailError'] = ReportDetailError
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ReportDetailErrors(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 = False
|
|
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
|
+
'product_id': (str,), # noqa: E501
|
|
91
|
+
'errors': ([ReportDetailError],), # noqa: E501
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@cached_property
|
|
95
|
+
def discriminator():
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
attribute_map = {
|
|
100
|
+
'product_id': 'productId', # noqa: E501
|
|
101
|
+
'errors': 'errors', # noqa: E501
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
read_only_vars = {
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
_composed_schemas = {}
|
|
108
|
+
|
|
109
|
+
@classmethod
|
|
110
|
+
@convert_js_args_to_python_args
|
|
111
|
+
def _from_openapi_data(cls, product_id, errors, *args, **kwargs): # noqa: E501
|
|
112
|
+
"""ReportDetailErrors - a model defined in OpenAPI
|
|
113
|
+
|
|
114
|
+
Args:
|
|
115
|
+
product_id (str): The product ID in lowercase
|
|
116
|
+
errors ([ReportDetailError]):
|
|
117
|
+
|
|
118
|
+
Keyword Args:
|
|
119
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
120
|
+
will be type checked and a TypeError will be
|
|
121
|
+
raised if the wrong type is input.
|
|
122
|
+
Defaults to True
|
|
123
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
124
|
+
drill down to the model in received_data
|
|
125
|
+
when deserializing a response
|
|
126
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
127
|
+
are serialized names, as specified in the OpenAPI document.
|
|
128
|
+
False if the variable names in the input data
|
|
129
|
+
are pythonic names, e.g. snake case (default)
|
|
130
|
+
_configuration (Configuration): the instance to use when
|
|
131
|
+
deserializing a file_type parameter.
|
|
132
|
+
If passed, type conversion is attempted
|
|
133
|
+
If omitted no type conversion is done.
|
|
134
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
135
|
+
classes that we have traveled through so that
|
|
136
|
+
if we see that class again we will not use its
|
|
137
|
+
discriminator again.
|
|
138
|
+
When traveling through a discriminator, the
|
|
139
|
+
composed schema that is
|
|
140
|
+
is traveled through is added to this set.
|
|
141
|
+
For example if Animal has a discriminator
|
|
142
|
+
petType and we pass in "Dog", and the class Dog
|
|
143
|
+
allOf includes Animal, we move through Animal
|
|
144
|
+
once using the discriminator, and pick Dog.
|
|
145
|
+
Then in Dog, we will make an instance of the
|
|
146
|
+
Animal class but this time we won't travel
|
|
147
|
+
through its discriminator because we passed in
|
|
148
|
+
_visited_composed_classes = (Animal,)
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
152
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
153
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
154
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
155
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
156
|
+
|
|
157
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
158
|
+
|
|
159
|
+
if args:
|
|
160
|
+
for arg in args:
|
|
161
|
+
if isinstance(arg, dict):
|
|
162
|
+
kwargs.update(arg)
|
|
163
|
+
else:
|
|
164
|
+
raise ApiTypeError(
|
|
165
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
166
|
+
args,
|
|
167
|
+
self.__class__.__name__,
|
|
168
|
+
),
|
|
169
|
+
path_to_item=_path_to_item,
|
|
170
|
+
valid_classes=(self.__class__,),
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
self._data_store = {}
|
|
174
|
+
self._check_type = _check_type
|
|
175
|
+
self._spec_property_naming = _spec_property_naming
|
|
176
|
+
self._path_to_item = _path_to_item
|
|
177
|
+
self._configuration = _configuration
|
|
178
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
179
|
+
|
|
180
|
+
self.product_id = product_id
|
|
181
|
+
self.errors = errors
|
|
182
|
+
for var_name, var_value in kwargs.items():
|
|
183
|
+
if var_name not in self.attribute_map and \
|
|
184
|
+
self._configuration is not None and \
|
|
185
|
+
self._configuration.discard_unknown_keys and \
|
|
186
|
+
self.additional_properties_type is None:
|
|
187
|
+
# discard variable.
|
|
188
|
+
continue
|
|
189
|
+
setattr(self, var_name, var_value)
|
|
190
|
+
return self
|
|
191
|
+
|
|
192
|
+
required_properties = set([
|
|
193
|
+
'_data_store',
|
|
194
|
+
'_check_type',
|
|
195
|
+
'_spec_property_naming',
|
|
196
|
+
'_path_to_item',
|
|
197
|
+
'_configuration',
|
|
198
|
+
'_visited_composed_classes',
|
|
199
|
+
])
|
|
200
|
+
|
|
201
|
+
@convert_js_args_to_python_args
|
|
202
|
+
def __init__(self, product_id, errors, *args, **kwargs): # noqa: E501
|
|
203
|
+
"""ReportDetailErrors - a model defined in OpenAPI
|
|
204
|
+
|
|
205
|
+
Args:
|
|
206
|
+
product_id (str): The product ID in lowercase
|
|
207
|
+
errors ([ReportDetailError]):
|
|
208
|
+
|
|
209
|
+
Keyword Args:
|
|
210
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
211
|
+
will be type checked and a TypeError will be
|
|
212
|
+
raised if the wrong type is input.
|
|
213
|
+
Defaults to True
|
|
214
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
215
|
+
drill down to the model in received_data
|
|
216
|
+
when deserializing a response
|
|
217
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
218
|
+
are serialized names, as specified in the OpenAPI document.
|
|
219
|
+
False if the variable names in the input data
|
|
220
|
+
are pythonic names, e.g. snake case (default)
|
|
221
|
+
_configuration (Configuration): the instance to use when
|
|
222
|
+
deserializing a file_type parameter.
|
|
223
|
+
If passed, type conversion is attempted
|
|
224
|
+
If omitted no type conversion is done.
|
|
225
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
226
|
+
classes that we have traveled through so that
|
|
227
|
+
if we see that class again we will not use its
|
|
228
|
+
discriminator again.
|
|
229
|
+
When traveling through a discriminator, the
|
|
230
|
+
composed schema that is
|
|
231
|
+
is traveled through is added to this set.
|
|
232
|
+
For example if Animal has a discriminator
|
|
233
|
+
petType and we pass in "Dog", and the class Dog
|
|
234
|
+
allOf includes Animal, we move through Animal
|
|
235
|
+
once using the discriminator, and pick Dog.
|
|
236
|
+
Then in Dog, we will make an instance of the
|
|
237
|
+
Animal class but this time we won't travel
|
|
238
|
+
through its discriminator because we passed in
|
|
239
|
+
_visited_composed_classes = (Animal,)
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
243
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
244
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
245
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
246
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
247
|
+
|
|
248
|
+
if args:
|
|
249
|
+
for arg in args:
|
|
250
|
+
if isinstance(arg, dict):
|
|
251
|
+
kwargs.update(arg)
|
|
252
|
+
else:
|
|
253
|
+
raise ApiTypeError(
|
|
254
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
255
|
+
args,
|
|
256
|
+
self.__class__.__name__,
|
|
257
|
+
),
|
|
258
|
+
path_to_item=_path_to_item,
|
|
259
|
+
valid_classes=(self.__class__,),
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
self._data_store = {}
|
|
263
|
+
self._check_type = _check_type
|
|
264
|
+
self._spec_property_naming = _spec_property_naming
|
|
265
|
+
self._path_to_item = _path_to_item
|
|
266
|
+
self._configuration = _configuration
|
|
267
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
268
|
+
|
|
269
|
+
self.product_id = product_id
|
|
270
|
+
self.errors = errors
|
|
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.")
|
|
@@ -30,19 +30,11 @@ 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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
globals()['ChoiceVariableValue'] = ChoiceVariableValue
|
|
39
|
-
globals()['ColorVariableValue'] = ColorVariableValue
|
|
40
|
-
globals()['FilesVariableValue'] = FilesVariableValue
|
|
41
|
-
globals()['HyperlinkVariableValue'] = HyperlinkVariableValue
|
|
42
|
-
globals()['TextVariableValue'] = TextVariableValue
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class TemplateVariableValue(ModelNormal):
|
|
33
|
+
from criteo_api_retailmedia_preview.model.report_detail_errors import ReportDetailErrors
|
|
34
|
+
globals()['ReportDetailErrors'] = ReportDetailErrors
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ReportOkResponse(ModelNormal):
|
|
46
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
47
39
|
Ref: https://openapi-generator.tech
|
|
48
40
|
|
|
@@ -67,6 +59,13 @@ class TemplateVariableValue(ModelNormal):
|
|
|
67
59
|
"""
|
|
68
60
|
|
|
69
61
|
allowed_values = {
|
|
62
|
+
('status',): {
|
|
63
|
+
'ACCEPTED': "ACCEPTED",
|
|
64
|
+
'IN_PROGRESS': "IN_PROGRESS",
|
|
65
|
+
'VALIDATED': "VALIDATED",
|
|
66
|
+
'VALIDATED_WITH_ERRORS': "VALIDATED_WITH_ERRORS",
|
|
67
|
+
'FAILED': "FAILED",
|
|
68
|
+
},
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
validations = {
|
|
@@ -95,12 +94,13 @@ class TemplateVariableValue(ModelNormal):
|
|
|
95
94
|
"""
|
|
96
95
|
lazy_import()
|
|
97
96
|
return {
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
97
|
+
'status': (str,), # noqa: E501
|
|
98
|
+
'import_request_timestamp': (int,), # noqa: E501
|
|
99
|
+
'number_of_products_in_the_batch': (int,), # noqa: E501
|
|
100
|
+
'number_of_products_upserted': (int,), # noqa: E501
|
|
101
|
+
'number_of_products_deleted': (int,), # noqa: E501
|
|
102
|
+
'number_of_products_with_errors': (int,), # noqa: E501
|
|
103
|
+
'error_details': ([ReportDetailErrors],), # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
@cached_property
|
|
@@ -109,12 +109,13 @@ class TemplateVariableValue(ModelNormal):
|
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
attribute_map = {
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
'
|
|
112
|
+
'status': 'status', # noqa: E501
|
|
113
|
+
'import_request_timestamp': 'importRequestTimestamp', # noqa: E501
|
|
114
|
+
'number_of_products_in_the_batch': 'numberOfProductsInTheBatch', # noqa: E501
|
|
115
|
+
'number_of_products_upserted': 'numberOfProductsUpserted', # noqa: E501
|
|
116
|
+
'number_of_products_deleted': 'numberOfProductsDeleted', # noqa: E501
|
|
117
|
+
'number_of_products_with_errors': 'numberOfProductsWithErrors', # noqa: E501
|
|
118
|
+
'error_details': 'errorDetails', # noqa: E501
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
read_only_vars = {
|
|
@@ -124,11 +125,17 @@ class TemplateVariableValue(ModelNormal):
|
|
|
124
125
|
|
|
125
126
|
@classmethod
|
|
126
127
|
@convert_js_args_to_python_args
|
|
127
|
-
def _from_openapi_data(cls,
|
|
128
|
-
"""
|
|
128
|
+
def _from_openapi_data(cls, status, import_request_timestamp, number_of_products_in_the_batch, number_of_products_upserted, number_of_products_deleted, number_of_products_with_errors, error_details, *args, **kwargs): # noqa: E501
|
|
129
|
+
"""ReportOkResponse - a model defined in OpenAPI
|
|
129
130
|
|
|
130
131
|
Args:
|
|
131
|
-
|
|
132
|
+
status (str): The status of the operation. The operation is completed when the status is one of (VALIDATED,VALIDATED_WITH_ERRORS,FAILED)
|
|
133
|
+
import_request_timestamp (int): The date when the original batch request was sent.
|
|
134
|
+
number_of_products_in_the_batch (int): The number of products present in the batch.
|
|
135
|
+
number_of_products_upserted (int): The number of products upserted.
|
|
136
|
+
number_of_products_deleted (int): The number of products deleted.
|
|
137
|
+
number_of_products_with_errors (int): The number of products with errors.
|
|
138
|
+
error_details ([ReportDetailErrors]): The list of errors with details.
|
|
132
139
|
|
|
133
140
|
Keyword Args:
|
|
134
141
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -161,11 +168,6 @@ class TemplateVariableValue(ModelNormal):
|
|
|
161
168
|
Animal class but this time we won't travel
|
|
162
169
|
through its discriminator because we passed in
|
|
163
170
|
_visited_composed_classes = (Animal,)
|
|
164
|
-
text_variable_value (TextVariableValue): [optional] # noqa: E501
|
|
165
|
-
choice_variable_value (ChoiceVariableValue): [optional] # noqa: E501
|
|
166
|
-
color_variable_value (ColorVariableValue): [optional] # noqa: E501
|
|
167
|
-
files_variable_value (FilesVariableValue): [optional] # noqa: E501
|
|
168
|
-
hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501
|
|
169
171
|
"""
|
|
170
172
|
|
|
171
173
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -197,7 +199,13 @@ class TemplateVariableValue(ModelNormal):
|
|
|
197
199
|
self._configuration = _configuration
|
|
198
200
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
199
201
|
|
|
200
|
-
self.
|
|
202
|
+
self.status = status
|
|
203
|
+
self.import_request_timestamp = import_request_timestamp
|
|
204
|
+
self.number_of_products_in_the_batch = number_of_products_in_the_batch
|
|
205
|
+
self.number_of_products_upserted = number_of_products_upserted
|
|
206
|
+
self.number_of_products_deleted = number_of_products_deleted
|
|
207
|
+
self.number_of_products_with_errors = number_of_products_with_errors
|
|
208
|
+
self.error_details = error_details
|
|
201
209
|
for var_name, var_value in kwargs.items():
|
|
202
210
|
if var_name not in self.attribute_map and \
|
|
203
211
|
self._configuration is not None and \
|
|
@@ -218,11 +226,17 @@ class TemplateVariableValue(ModelNormal):
|
|
|
218
226
|
])
|
|
219
227
|
|
|
220
228
|
@convert_js_args_to_python_args
|
|
221
|
-
def __init__(self,
|
|
222
|
-
"""
|
|
229
|
+
def __init__(self, status, import_request_timestamp, number_of_products_in_the_batch, number_of_products_upserted, number_of_products_deleted, number_of_products_with_errors, error_details, *args, **kwargs): # noqa: E501
|
|
230
|
+
"""ReportOkResponse - a model defined in OpenAPI
|
|
223
231
|
|
|
224
232
|
Args:
|
|
225
|
-
|
|
233
|
+
status (str): The status of the operation. The operation is completed when the status is one of (VALIDATED,VALIDATED_WITH_ERRORS,FAILED)
|
|
234
|
+
import_request_timestamp (int): The date when the original batch request was sent.
|
|
235
|
+
number_of_products_in_the_batch (int): The number of products present in the batch.
|
|
236
|
+
number_of_products_upserted (int): The number of products upserted.
|
|
237
|
+
number_of_products_deleted (int): The number of products deleted.
|
|
238
|
+
number_of_products_with_errors (int): The number of products with errors.
|
|
239
|
+
error_details ([ReportDetailErrors]): The list of errors with details.
|
|
226
240
|
|
|
227
241
|
Keyword Args:
|
|
228
242
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -255,11 +269,6 @@ class TemplateVariableValue(ModelNormal):
|
|
|
255
269
|
Animal class but this time we won't travel
|
|
256
270
|
through its discriminator because we passed in
|
|
257
271
|
_visited_composed_classes = (Animal,)
|
|
258
|
-
text_variable_value (TextVariableValue): [optional] # noqa: E501
|
|
259
|
-
choice_variable_value (ChoiceVariableValue): [optional] # noqa: E501
|
|
260
|
-
color_variable_value (ColorVariableValue): [optional] # noqa: E501
|
|
261
|
-
files_variable_value (FilesVariableValue): [optional] # noqa: E501
|
|
262
|
-
hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501
|
|
263
272
|
"""
|
|
264
273
|
|
|
265
274
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -289,7 +298,13 @@ class TemplateVariableValue(ModelNormal):
|
|
|
289
298
|
self._configuration = _configuration
|
|
290
299
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
291
300
|
|
|
292
|
-
self.
|
|
301
|
+
self.status = status
|
|
302
|
+
self.import_request_timestamp = import_request_timestamp
|
|
303
|
+
self.number_of_products_in_the_batch = number_of_products_in_the_batch
|
|
304
|
+
self.number_of_products_upserted = number_of_products_upserted
|
|
305
|
+
self.number_of_products_deleted = number_of_products_deleted
|
|
306
|
+
self.number_of_products_with_errors = number_of_products_with_errors
|
|
307
|
+
self.error_details = error_details
|
|
293
308
|
for var_name, var_value in kwargs.items():
|
|
294
309
|
if var_name not in self.attribute_map and \
|
|
295
310
|
self._configuration is not None and \
|
|
@@ -30,11 +30,11 @@ 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
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.external_preferred_line_item_update_model_v2 import ExternalPreferredLineItemUpdateModelV2
|
|
34
|
+
globals()['ExternalPreferredLineItemUpdateModelV2'] = ExternalPreferredLineItemUpdateModelV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,9 +87,9 @@ class ResourceOfCreative202210(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'attributes': (Creative202210,), # noqa: E501
|
|
91
90
|
'id': (str, none_type,), # noqa: E501
|
|
92
91
|
'type': (str, none_type,), # noqa: E501
|
|
92
|
+
'attributes': (ExternalPreferredLineItemUpdateModelV2,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -98,9 +98,9 @@ class ResourceOfCreative202210(ModelNormal):
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
attribute_map = {
|
|
101
|
-
'attributes': 'attributes', # noqa: E501
|
|
102
101
|
'id': 'id', # noqa: E501
|
|
103
102
|
'type': 'type', # noqa: E501
|
|
103
|
+
'attributes': 'attributes', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
read_only_vars = {
|
|
@@ -111,7 +111,7 @@ class ResourceOfCreative202210(ModelNormal):
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
113
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
-
"""
|
|
114
|
+
"""ResourceOfPreferredLineItemUpdateModelV2 - a model defined in OpenAPI
|
|
115
115
|
|
|
116
116
|
Keyword Args:
|
|
117
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -144,9 +144,9 @@ class ResourceOfCreative202210(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
-
attributes (Creative202210): [optional] # noqa: E501
|
|
148
147
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
148
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
149
|
+
attributes (ExternalPreferredLineItemUpdateModelV2): [optional] # noqa: E501
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -199,7 +199,7 @@ class ResourceOfCreative202210(ModelNormal):
|
|
|
199
199
|
|
|
200
200
|
@convert_js_args_to_python_args
|
|
201
201
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
-
"""
|
|
202
|
+
"""ResourceOfPreferredLineItemUpdateModelV2 - a model defined in OpenAPI
|
|
203
203
|
|
|
204
204
|
Keyword Args:
|
|
205
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -232,9 +232,9 @@ class ResourceOfCreative202210(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
-
attributes (Creative202210): [optional] # noqa: E501
|
|
236
235
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
236
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
237
|
+
attributes (ExternalPreferredLineItemUpdateModelV2): [optional] # noqa: E501
|
|
238
238
|
"""
|
|
239
239
|
|
|
240
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -30,11 +30,11 @@ 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
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.external_preferred_line_item_v2 import ExternalPreferredLineItemV2
|
|
34
|
+
globals()['ExternalPreferredLineItemV2'] = ExternalPreferredLineItemV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ResourceOfPreferredLineItemV2(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,9 +87,9 @@ class ResourceOfTemplate(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'attributes': (Template,), # noqa: E501
|
|
91
90
|
'id': (str, none_type,), # noqa: E501
|
|
92
91
|
'type': (str, none_type,), # noqa: E501
|
|
92
|
+
'attributes': (ExternalPreferredLineItemV2,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -98,9 +98,9 @@ class ResourceOfTemplate(ModelNormal):
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
attribute_map = {
|
|
101
|
-
'attributes': 'attributes', # noqa: E501
|
|
102
101
|
'id': 'id', # noqa: E501
|
|
103
102
|
'type': 'type', # noqa: E501
|
|
103
|
+
'attributes': 'attributes', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
read_only_vars = {
|
|
@@ -111,7 +111,7 @@ class ResourceOfTemplate(ModelNormal):
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
113
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
-
"""
|
|
114
|
+
"""ResourceOfPreferredLineItemV2 - a model defined in OpenAPI
|
|
115
115
|
|
|
116
116
|
Keyword Args:
|
|
117
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -144,9 +144,9 @@ class ResourceOfTemplate(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
-
attributes (Template): [optional] # noqa: E501
|
|
148
147
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
148
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
149
|
+
attributes (ExternalPreferredLineItemV2): [optional] # noqa: E501
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -199,7 +199,7 @@ class ResourceOfTemplate(ModelNormal):
|
|
|
199
199
|
|
|
200
200
|
@convert_js_args_to_python_args
|
|
201
201
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
-
"""
|
|
202
|
+
"""ResourceOfPreferredLineItemV2 - a model defined in OpenAPI
|
|
203
203
|
|
|
204
204
|
Keyword Args:
|
|
205
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -232,9 +232,9 @@ class ResourceOfTemplate(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
-
attributes (Template): [optional] # noqa: E501
|
|
236
235
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
236
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
237
|
+
attributes (ExternalPreferredLineItemV2): [optional] # noqa: E501
|
|
238
238
|
"""
|
|
239
239
|
|
|
240
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -88,6 +88,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
88
88
|
"""
|
|
89
89
|
return {
|
|
90
90
|
'name': (str, none_type,), # noqa: E501
|
|
91
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
91
92
|
'type': (str, none_type,), # noqa: E501
|
|
92
93
|
'sub_type': (str, none_type,), # noqa: E501
|
|
93
94
|
'country_ids': ([int], none_type,), # noqa: E501
|
|
@@ -103,6 +104,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
103
104
|
|
|
104
105
|
attribute_map = {
|
|
105
106
|
'name': 'name', # noqa: E501
|
|
107
|
+
'company_name': 'companyName', # noqa: E501
|
|
106
108
|
'type': 'type', # noqa: E501
|
|
107
109
|
'sub_type': 'subType', # noqa: E501
|
|
108
110
|
'country_ids': 'countryIds', # noqa: E501
|
|
@@ -153,6 +155,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
153
155
|
through its discriminator because we passed in
|
|
154
156
|
_visited_composed_classes = (Animal,)
|
|
155
157
|
name (str, none_type): account name. [optional] # noqa: E501
|
|
158
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
156
159
|
type (str, none_type): Type for the account. [optional] # noqa: E501
|
|
157
160
|
sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
|
|
158
161
|
country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
|
|
@@ -245,6 +248,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
245
248
|
through its discriminator because we passed in
|
|
246
249
|
_visited_composed_classes = (Animal,)
|
|
247
250
|
name (str, none_type): account name. [optional] # noqa: E501
|
|
251
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
248
252
|
type (str, none_type): Type for the account. [optional] # noqa: E501
|
|
249
253
|
sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
|
|
250
254
|
country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
|
|
@@ -76,6 +76,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
76
76
|
"""
|
|
77
77
|
return {
|
|
78
78
|
'name': (str, none_type,), # noqa: E501
|
|
79
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
79
80
|
'brands': ([int], none_type,), # noqa: E501
|
|
80
81
|
}
|
|
81
82
|
|
|
@@ -86,6 +87,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
86
87
|
|
|
87
88
|
attribute_map = {
|
|
88
89
|
'name': 'name', # noqa: E501
|
|
90
|
+
'company_name': 'companyName', # noqa: E501
|
|
89
91
|
'brands': 'brands', # noqa: E501
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -131,6 +133,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
131
133
|
through its discriminator because we passed in
|
|
132
134
|
_visited_composed_classes = (Animal,)
|
|
133
135
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
136
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
134
137
|
brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
|
|
135
138
|
"""
|
|
136
139
|
|
|
@@ -218,6 +221,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
218
221
|
through its discriminator because we passed in
|
|
219
222
|
_visited_composed_classes = (Animal,)
|
|
220
223
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
224
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
221
225
|
brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
|
|
222
226
|
"""
|
|
223
227
|
|