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.

Files changed (86) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
  3. criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +2 -313
  5. criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
  6. criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
  7. criteo_api_retailmedia_preview/api_client.py +4 -4
  8. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  9. criteo_api_retailmedia_preview/configuration.py +1 -1
  10. criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
  11. criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
  12. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
  13. criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
  14. criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
  15. criteo_api_retailmedia_preview/model/{customer_list_details.py → batch_accepted_response.py} +11 -11
  16. criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
  17. criteo_api_retailmedia_preview/model/{color_variable_value.py → custom_attribute.py} +17 -16
  18. criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
  19. criteo_api_retailmedia_preview/model/external_account.py +4 -0
  20. criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
  21. criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
  22. criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
  23. criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → external_preferred_line_item_create_model_v2.py} +79 -25
  24. criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
  25. criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
  26. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
  27. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +273 -0
  28. criteo_api_retailmedia_preview/model/{retail_media_audience.py → insertion_order_history_change_data_capture.py} +48 -42
  29. criteo_api_retailmedia_preview/model/installment.py +273 -0
  30. criteo_api_retailmedia_preview/model/{creative202210_response.py → loyalty_points.py} +15 -25
  31. criteo_api_retailmedia_preview/model/metadata.py +273 -0
  32. criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
  33. criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
  34. criteo_api_retailmedia_preview/model/{common_status_code_response.py → preferred_line_item_update_model_v2_request.py} +9 -15
  35. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → preferred_line_item_v2_paged_list_response.py} +21 -27
  36. criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
  37. criteo_api_retailmedia_preview/model/price.py +267 -0
  38. criteo_api_retailmedia_preview/model/product.py +626 -0
  39. criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → product_importer_error.py} +37 -29
  40. criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
  41. criteo_api_retailmedia_preview/model/product_shipping.py +293 -0
  42. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
  43. criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
  44. criteo_api_retailmedia_preview/model/product_tax.py +283 -0
  45. criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
  46. criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
  47. criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
  48. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → products_custom_batch_request_entry.py} +43 -29
  49. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → report_detail_error.py} +35 -15
  50. criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
  51. criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
  52. criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
  53. criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
  54. criteo_api_retailmedia_preview/model/retail_media_account.py +4 -0
  55. criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +4 -0
  56. criteo_api_retailmedia_preview/model/{text_variable_value.py → retail_media_brands.py} +10 -22
  57. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +4 -0
  58. criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +3 -3
  59. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
  60. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
  61. criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
  62. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  63. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
  64. criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → value_resource_input_of_retail_media_brands.py} +15 -22
  65. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
  66. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
  67. criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
  68. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
  69. criteo_api_retailmedia_preview/models/__init__.py +48 -42
  70. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
  71. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +73 -66
  72. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
  73. criteo_api_retailmedia_preview/model/choice_option.py +0 -281
  74. criteo_api_retailmedia_preview/model/choice_variable_specification.py +0 -283
  75. criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
  76. criteo_api_retailmedia_preview/model/creative_create_model202207.py +0 -297
  77. criteo_api_retailmedia_preview/model/creative_update_model202207.py +0 -297
  78. criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
  79. criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
  80. criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
  81. criteo_api_retailmedia_preview/model/template_list_response.py +0 -281
  82. criteo_api_retailmedia_preview/model/template_response.py +0 -281
  83. criteo_api_retailmedia_preview/model/template_variable.py +0 -310
  84. criteo_api_retailmedia_preview/model/user_behavior_details.py +0 -306
  85. criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +0 -279
  86. {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,276 @@
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.insertion_order_history_change_data_capture import InsertionOrderHistoryChangeDataCapture
34
+ from criteo_api_retailmedia_preview.model.metadata import Metadata
35
+ globals()['InsertionOrderHistoryChangeDataCapture'] = InsertionOrderHistoryChangeDataCapture
36
+ globals()['Metadata'] = Metadata
37
+
38
+
39
+ class PageOfInsertionOrderHistoryChangeDataCapture(ModelNormal):
40
+ """NOTE: This class is auto generated by OpenAPI Generator.
41
+ Ref: https://openapi-generator.tech
42
+
43
+ Do not edit the class manually.
44
+
45
+ Attributes:
46
+ allowed_values (dict): The key is the tuple path to the attribute
47
+ and the for var_name this is (var_name,). The value is a dict
48
+ with a capitalized key describing the allowed value and an allowed
49
+ value. These dicts store the allowed enum values.
50
+ attribute_map (dict): The key is attribute name
51
+ and the value is json key in definition.
52
+ discriminator_value_class_map (dict): A dict to go from the discriminator
53
+ variable value to the discriminator class name.
54
+ validations (dict): The key is the tuple path to the attribute
55
+ and the for var_name this is (var_name,). The value is a dict
56
+ that stores validations for max_length, min_length, max_items,
57
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
+ inclusive_minimum, and regex.
59
+ additional_properties_type (tuple): A tuple of classes accepted
60
+ as additional properties values.
61
+ """
62
+
63
+ allowed_values = {
64
+ }
65
+
66
+ validations = {
67
+ }
68
+
69
+ additional_properties_type = None
70
+
71
+ _nullable = False
72
+
73
+ @cached_property
74
+ def openapi_types():
75
+ """
76
+ This must be a method because a model may have properties that are
77
+ of type self, this must run after the class is loaded
78
+
79
+ Returns
80
+ openapi_types (dict): The key is attribute name
81
+ and the value is attribute type.
82
+ """
83
+ lazy_import()
84
+ return {
85
+ 'meta': (Metadata,), # noqa: E501
86
+ 'data': ([InsertionOrderHistoryChangeDataCapture],), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'meta': 'meta', # noqa: E501
96
+ 'data': 'data', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, meta, data, *args, **kwargs): # noqa: E501
107
+ """PageOfInsertionOrderHistoryChangeDataCapture - a model defined in OpenAPI
108
+
109
+ Args:
110
+ meta (Metadata):
111
+ data ([InsertionOrderHistoryChangeDataCapture]):
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
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
+ self.meta = meta
176
+ self.data = data
177
+ for var_name, var_value in kwargs.items():
178
+ if var_name not in self.attribute_map and \
179
+ self._configuration is not None and \
180
+ self._configuration.discard_unknown_keys and \
181
+ self.additional_properties_type is None:
182
+ # discard variable.
183
+ continue
184
+ setattr(self, var_name, var_value)
185
+ return self
186
+
187
+ required_properties = set([
188
+ '_data_store',
189
+ '_check_type',
190
+ '_spec_property_naming',
191
+ '_path_to_item',
192
+ '_configuration',
193
+ '_visited_composed_classes',
194
+ ])
195
+
196
+ @convert_js_args_to_python_args
197
+ def __init__(self, meta, data, *args, **kwargs): # noqa: E501
198
+ """PageOfInsertionOrderHistoryChangeDataCapture - a model defined in OpenAPI
199
+
200
+ Args:
201
+ meta (Metadata):
202
+ data ([InsertionOrderHistoryChangeDataCapture]):
203
+
204
+ Keyword Args:
205
+ _check_type (bool): if True, values for parameters in openapi_types
206
+ will be type checked and a TypeError will be
207
+ raised if the wrong type is input.
208
+ Defaults to True
209
+ _path_to_item (tuple/list): This is a list of keys or values to
210
+ drill down to the model in received_data
211
+ when deserializing a response
212
+ _spec_property_naming (bool): True if the variable names in the input data
213
+ are serialized names, as specified in the OpenAPI document.
214
+ False if the variable names in the input data
215
+ are pythonic names, e.g. snake case (default)
216
+ _configuration (Configuration): the instance to use when
217
+ deserializing a file_type parameter.
218
+ If passed, type conversion is attempted
219
+ If omitted no type conversion is done.
220
+ _visited_composed_classes (tuple): This stores a tuple of
221
+ classes that we have traveled through so that
222
+ if we see that class again we will not use its
223
+ discriminator again.
224
+ When traveling through a discriminator, the
225
+ composed schema that is
226
+ is traveled through is added to this set.
227
+ For example if Animal has a discriminator
228
+ petType and we pass in "Dog", and the class Dog
229
+ allOf includes Animal, we move through Animal
230
+ once using the discriminator, and pick Dog.
231
+ Then in Dog, we will make an instance of the
232
+ Animal class but this time we won't travel
233
+ through its discriminator because we passed in
234
+ _visited_composed_classes = (Animal,)
235
+ """
236
+
237
+ _check_type = kwargs.pop('_check_type', True)
238
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
239
+ _path_to_item = kwargs.pop('_path_to_item', ())
240
+ _configuration = kwargs.pop('_configuration', None)
241
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
242
+
243
+ if args:
244
+ for arg in args:
245
+ if isinstance(arg, dict):
246
+ kwargs.update(arg)
247
+ else:
248
+ raise ApiTypeError(
249
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
250
+ args,
251
+ self.__class__.__name__,
252
+ ),
253
+ path_to_item=_path_to_item,
254
+ valid_classes=(self.__class__,),
255
+ )
256
+
257
+ self._data_store = {}
258
+ self._check_type = _check_type
259
+ self._spec_property_naming = _spec_property_naming
260
+ self._path_to_item = _path_to_item
261
+ self._configuration = _configuration
262
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
+
264
+ self.meta = meta
265
+ self.data = data
266
+ for var_name, var_value in kwargs.items():
267
+ if var_name not in self.attribute_map and \
268
+ self._configuration is not None and \
269
+ self._configuration.discard_unknown_keys and \
270
+ self.additional_properties_type is None:
271
+ # discard variable.
272
+ continue
273
+ setattr(self, var_name, var_value)
274
+ if var_name in self.read_only_vars:
275
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
276
+ f"class with read only attributes.")
@@ -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.json_api_body_without_id_of_catalog_request_and_catalog_request_preview import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview
34
- globals()['JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview'] = JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview
33
+ from criteo_api_retailmedia_preview.model.input_resource_of_preferred_line_item_create_model_v2 import InputResourceOfPreferredLineItemCreateModelV2
34
+ globals()['InputResourceOfPreferredLineItemCreateModelV2'] = InputResourceOfPreferredLineItemCreateModelV2
35
35
 
36
36
 
37
- class JsonApiRequestOfCatalogRequestPreview(ModelNormal):
37
+ class PreferredLineItemCreateModelV2Request(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,7 +87,7 @@ class JsonApiRequestOfCatalogRequestPreview(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview,), # noqa: E501
90
+ 'data': (InputResourceOfPreferredLineItemCreateModelV2,), # noqa: E501
91
91
  }
92
92
 
93
93
  @cached_property
@@ -107,7 +107,7 @@ class JsonApiRequestOfCatalogRequestPreview(ModelNormal):
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
109
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
- """JsonApiRequestOfCatalogRequestPreview - a model defined in OpenAPI
110
+ """PreferredLineItemCreateModelV2Request - a model defined in OpenAPI
111
111
 
112
112
  Keyword Args:
113
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -140,7 +140,7 @@ class JsonApiRequestOfCatalogRequestPreview(ModelNormal):
140
140
  Animal class but this time we won't travel
141
141
  through its discriminator because we passed in
142
142
  _visited_composed_classes = (Animal,)
143
- data (JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview): [optional] # noqa: E501
143
+ data (InputResourceOfPreferredLineItemCreateModelV2): [optional] # noqa: E501
144
144
  """
145
145
 
146
146
  _check_type = kwargs.pop('_check_type', True)
@@ -193,7 +193,7 @@ class JsonApiRequestOfCatalogRequestPreview(ModelNormal):
193
193
 
194
194
  @convert_js_args_to_python_args
195
195
  def __init__(self, *args, **kwargs): # noqa: E501
196
- """JsonApiRequestOfCatalogRequestPreview - a model defined in OpenAPI
196
+ """PreferredLineItemCreateModelV2Request - a model defined in OpenAPI
197
197
 
198
198
  Keyword Args:
199
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -226,7 +226,7 @@ class JsonApiRequestOfCatalogRequestPreview(ModelNormal):
226
226
  Animal class but this time we won't travel
227
227
  through its discriminator because we passed in
228
228
  _visited_composed_classes = (Animal,)
229
- data (JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview): [optional] # noqa: E501
229
+ data (InputResourceOfPreferredLineItemCreateModelV2): [optional] # noqa: E501
230
230
  """
231
231
 
232
232
  _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.common_problem import CommonProblem
34
- globals()['CommonProblem'] = CommonProblem
33
+ from criteo_api_retailmedia_preview.model.resource_of_preferred_line_item_update_model_v2 import ResourceOfPreferredLineItemUpdateModelV2
34
+ globals()['ResourceOfPreferredLineItemUpdateModelV2'] = ResourceOfPreferredLineItemUpdateModelV2
35
35
 
36
36
 
37
- class CommonStatusCodeResponse(ModelNormal):
37
+ class PreferredLineItemUpdateModelV2Request(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,8 +87,7 @@ class CommonStatusCodeResponse(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'errors': ([CommonProblem], none_type,), # noqa: E501
91
- 'warnings': ([CommonProblem], none_type,), # noqa: E501
90
+ 'data': (ResourceOfPreferredLineItemUpdateModelV2,), # noqa: E501
92
91
  }
93
92
 
94
93
  @cached_property
@@ -97,13 +96,10 @@ class CommonStatusCodeResponse(ModelNormal):
97
96
 
98
97
 
99
98
  attribute_map = {
100
- 'errors': 'errors', # noqa: E501
101
- 'warnings': 'warnings', # noqa: E501
99
+ 'data': 'data', # noqa: E501
102
100
  }
103
101
 
104
102
  read_only_vars = {
105
- 'errors', # noqa: E501
106
- 'warnings', # noqa: E501
107
103
  }
108
104
 
109
105
  _composed_schemas = {}
@@ -111,7 +107,7 @@ class CommonStatusCodeResponse(ModelNormal):
111
107
  @classmethod
112
108
  @convert_js_args_to_python_args
113
109
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """CommonStatusCodeResponse - a model defined in OpenAPI
110
+ """PreferredLineItemUpdateModelV2Request - a model defined in OpenAPI
115
111
 
116
112
  Keyword Args:
117
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -144,8 +140,7 @@ class CommonStatusCodeResponse(ModelNormal):
144
140
  Animal class but this time we won't travel
145
141
  through its discriminator because we passed in
146
142
  _visited_composed_classes = (Animal,)
147
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
148
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
143
+ data (ResourceOfPreferredLineItemUpdateModelV2): [optional] # noqa: E501
149
144
  """
150
145
 
151
146
  _check_type = kwargs.pop('_check_type', True)
@@ -198,7 +193,7 @@ class CommonStatusCodeResponse(ModelNormal):
198
193
 
199
194
  @convert_js_args_to_python_args
200
195
  def __init__(self, *args, **kwargs): # noqa: E501
201
- """CommonStatusCodeResponse - a model defined in OpenAPI
196
+ """PreferredLineItemUpdateModelV2Request - a model defined in OpenAPI
202
197
 
203
198
  Keyword Args:
204
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -231,8 +226,7 @@ class CommonStatusCodeResponse(ModelNormal):
231
226
  Animal class but this time we won't travel
232
227
  through its discriminator because we passed in
233
228
  _visited_composed_classes = (Animal,)
234
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
235
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
229
+ data (ResourceOfPreferredLineItemUpdateModelV2): [optional] # noqa: E501
236
230
  """
237
231
 
238
232
  _check_type = kwargs.pop('_check_type', True)
@@ -32,13 +32,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
32
32
  def lazy_import():
33
33
  from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
34
34
  from criteo_api_retailmedia_preview.model.page_metadata import PageMetadata
35
- from criteo_api_retailmedia_preview.model.retail_media_audience_v2 import RetailMediaAudienceV2
35
+ from criteo_api_retailmedia_preview.model.resource_of_preferred_line_item_v2 import ResourceOfPreferredLineItemV2
36
36
  globals()['CommonProblem'] = CommonProblem
37
37
  globals()['PageMetadata'] = PageMetadata
38
- globals()['RetailMediaAudienceV2'] = RetailMediaAudienceV2
38
+ globals()['ResourceOfPreferredLineItemV2'] = ResourceOfPreferredLineItemV2
39
39
 
40
40
 
41
- class RetailMediaAudienceV2ListResponse(ModelNormal):
41
+ class PreferredLineItemV2PagedListResponse(ModelNormal):
42
42
  """NOTE: This class is auto generated by OpenAPI Generator.
43
43
  Ref: https://openapi-generator.tech
44
44
 
@@ -91,10 +91,10 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
91
91
  """
92
92
  lazy_import()
93
93
  return {
94
- 'data': ([RetailMediaAudienceV2],), # noqa: E501
95
94
  'metadata': (PageMetadata,), # noqa: E501
96
- 'errors': ([CommonProblem], none_type,), # noqa: E501
97
- 'warnings': ([CommonProblem], none_type,), # noqa: E501
95
+ 'data': ([ResourceOfPreferredLineItemV2],), # noqa: E501
96
+ 'warnings': ([CommonProblem],), # noqa: E501
97
+ 'errors': ([CommonProblem],), # noqa: E501
98
98
  }
99
99
 
100
100
  @cached_property
@@ -103,28 +103,23 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
103
103
 
104
104
 
105
105
  attribute_map = {
106
- 'data': 'data', # noqa: E501
107
106
  'metadata': 'metadata', # noqa: E501
108
- 'errors': 'errors', # noqa: E501
107
+ 'data': 'data', # noqa: E501
109
108
  'warnings': 'warnings', # noqa: E501
109
+ 'errors': 'errors', # noqa: E501
110
110
  }
111
111
 
112
112
  read_only_vars = {
113
- 'data', # noqa: E501
114
- 'errors', # noqa: E501
115
113
  'warnings', # noqa: E501
114
+ 'errors', # noqa: E501
116
115
  }
117
116
 
118
117
  _composed_schemas = {}
119
118
 
120
119
  @classmethod
121
120
  @convert_js_args_to_python_args
122
- def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501
123
- """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI
124
-
125
- Args:
126
- data ([RetailMediaAudienceV2]): data
127
- metadata (PageMetadata):
121
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
122
+ """PreferredLineItemV2PagedListResponse - a model defined in OpenAPI
128
123
 
129
124
  Keyword Args:
130
125
  _check_type (bool): if True, values for parameters in openapi_types
@@ -157,8 +152,10 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
157
152
  Animal class but this time we won't travel
158
153
  through its discriminator because we passed in
159
154
  _visited_composed_classes = (Animal,)
160
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
161
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
155
+ metadata (PageMetadata): [optional] # noqa: E501
156
+ data ([ResourceOfPreferredLineItemV2]): [optional] # noqa: E501
157
+ warnings ([CommonProblem]): [optional] # noqa: E501
158
+ errors ([CommonProblem]): [optional] # noqa: E501
162
159
  """
163
160
 
164
161
  _check_type = kwargs.pop('_check_type', True)
@@ -190,8 +187,6 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
190
187
  self._configuration = _configuration
191
188
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192
189
 
193
- self.data = data
194
- self.metadata = metadata
195
190
  for var_name, var_value in kwargs.items():
196
191
  if var_name not in self.attribute_map and \
197
192
  self._configuration is not None and \
@@ -212,10 +207,8 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
212
207
  ])
213
208
 
214
209
  @convert_js_args_to_python_args
215
- def __init__(self, metadata, *args, **kwargs): # noqa: E501
216
- """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI
217
-
218
- metadata (PageMetadata):
210
+ def __init__(self, *args, **kwargs): # noqa: E501
211
+ """PreferredLineItemV2PagedListResponse - a model defined in OpenAPI
219
212
 
220
213
  Keyword Args:
221
214
  _check_type (bool): if True, values for parameters in openapi_types
@@ -248,8 +241,10 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
248
241
  Animal class but this time we won't travel
249
242
  through its discriminator because we passed in
250
243
  _visited_composed_classes = (Animal,)
251
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
252
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
244
+ metadata (PageMetadata): [optional] # noqa: E501
245
+ data ([ResourceOfPreferredLineItemV2]): [optional] # noqa: E501
246
+ warnings ([CommonProblem]): [optional] # noqa: E501
247
+ errors ([CommonProblem]): [optional] # noqa: E501
253
248
  """
254
249
 
255
250
  _check_type = kwargs.pop('_check_type', True)
@@ -279,7 +274,6 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
279
274
  self._configuration = _configuration
280
275
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
276
 
282
- self.metadata = metadata
283
277
  for var_name, var_value in kwargs.items():
284
278
  if var_name not in self.attribute_map and \
285
279
  self._configuration is not None and \
@@ -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.problem_details import ProblemDetails
34
- from criteo_api_retailmedia_preview.model.resource_of_creative202210 import ResourceOfCreative202210
35
- globals()['ProblemDetails'] = ProblemDetails
36
- globals()['ResourceOfCreative202210'] = ResourceOfCreative202210
33
+ from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
34
+ from criteo_api_retailmedia_preview.model.resource_of_preferred_line_item_v2 import ResourceOfPreferredLineItemV2
35
+ globals()['CommonProblem'] = CommonProblem
36
+ globals()['ResourceOfPreferredLineItemV2'] = ResourceOfPreferredLineItemV2
37
37
 
38
38
 
39
- class Creative202210ListResponse(ModelNormal):
39
+ class PreferredLineItemV2Response(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -89,9 +89,9 @@ class Creative202210ListResponse(ModelNormal):
89
89
  """
90
90
  lazy_import()
91
91
  return {
92
- 'data': ([ResourceOfCreative202210],), # noqa: E501
93
- 'warnings': ([ProblemDetails],), # noqa: E501
94
- 'errors': ([ProblemDetails],), # noqa: E501
92
+ 'data': (ResourceOfPreferredLineItemV2,), # noqa: E501
93
+ 'warnings': ([CommonProblem],), # noqa: E501
94
+ 'errors': ([CommonProblem],), # noqa: E501
95
95
  }
96
96
 
97
97
  @cached_property
@@ -115,7 +115,7 @@ class Creative202210ListResponse(ModelNormal):
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
- """Creative202210ListResponse - a model defined in OpenAPI
118
+ """PreferredLineItemV2Response - a model defined in OpenAPI
119
119
 
120
120
  Keyword Args:
121
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -148,9 +148,9 @@ class Creative202210ListResponse(ModelNormal):
148
148
  Animal class but this time we won't travel
149
149
  through its discriminator because we passed in
150
150
  _visited_composed_classes = (Animal,)
151
- data ([ResourceOfCreative202210]): [optional] # noqa: E501
152
- warnings ([ProblemDetails]): [optional] # noqa: E501
153
- errors ([ProblemDetails]): [optional] # noqa: E501
151
+ data (ResourceOfPreferredLineItemV2): [optional] # noqa: E501
152
+ warnings ([CommonProblem]): [optional] # noqa: E501
153
+ errors ([CommonProblem]): [optional] # noqa: E501
154
154
  """
155
155
 
156
156
  _check_type = kwargs.pop('_check_type', True)
@@ -203,7 +203,7 @@ class Creative202210ListResponse(ModelNormal):
203
203
 
204
204
  @convert_js_args_to_python_args
205
205
  def __init__(self, *args, **kwargs): # noqa: E501
206
- """Creative202210ListResponse - a model defined in OpenAPI
206
+ """PreferredLineItemV2Response - a model defined in OpenAPI
207
207
 
208
208
  Keyword Args:
209
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,9 +236,9 @@ class Creative202210ListResponse(ModelNormal):
236
236
  Animal class but this time we won't travel
237
237
  through its discriminator because we passed in
238
238
  _visited_composed_classes = (Animal,)
239
- data ([ResourceOfCreative202210]): [optional] # noqa: E501
240
- warnings ([ProblemDetails]): [optional] # noqa: E501
241
- errors ([ProblemDetails]): [optional] # noqa: E501
239
+ data (ResourceOfPreferredLineItemV2): [optional] # noqa: E501
240
+ warnings ([CommonProblem]): [optional] # noqa: E501
241
+ errors ([CommonProblem]): [optional] # noqa: E501
242
242
  """
243
243
 
244
244
  _check_type = kwargs.pop('_check_type', True)