criteo-api-retailmedia-sdk 0.0.250811__py3-none-any.whl → 0.0.250819__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 (46) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +4 -4
  3. criteo_api_retailmedia_preview/api/balance_api.py +50 -50
  4. criteo_api_retailmedia_preview/api/campaign_api.py +424 -398
  5. criteo_api_retailmedia_preview/api_client.py +1 -1
  6. criteo_api_retailmedia_preview/configuration.py +1 -1
  7. criteo_api_retailmedia_preview/model/balance_response_v2.py +6 -6
  8. criteo_api_retailmedia_preview/model/{paged_resource_collection_outcome_of_balance_response_v2.py → balance_response_v2_paged_list_response.py} +3 -3
  9. criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py +9 -9
  10. criteo_api_retailmedia_preview/model/create_balance_v2.py +6 -6
  11. criteo_api_retailmedia_preview/model/flight_leg.py +6 -6
  12. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +5 -5
  13. criteo_api_retailmedia_preview/model/{external_line_item_capping_v2.py → line_item_capping_v2.py} +4 -4
  14. criteo_api_retailmedia_preview/model/{external_line_item_page_category_v2.py → line_item_page_category_v2.py} +3 -3
  15. criteo_api_retailmedia_preview/model/{external_line_item_page_v2.py → line_item_page_v2.py} +9 -9
  16. criteo_api_retailmedia_preview/model/page_metadata.py +1 -1
  17. criteo_api_retailmedia_preview/model/{external_preferred_line_item_create_model_v2.py → preferred_line_item_create_model_v2.py} +16 -16
  18. criteo_api_retailmedia_preview/model/{external_preferred_line_item_update_model_v2.py → preferred_line_item_update_model_v2.py} +16 -16
  19. criteo_api_retailmedia_preview/model/{external_preferred_line_item_v2.py → preferred_line_item_v2.py} +29 -35
  20. criteo_api_retailmedia_preview/model/product_button_request.py +30 -12
  21. criteo_api_retailmedia_preview/model/{product_button_list_request.py → product_button_request_list_request.py} +4 -4
  22. criteo_api_retailmedia_preview/model/product_button_request_request.py +269 -0
  23. criteo_api_retailmedia_preview/model/{external_product_button_response.py → product_button_response.py} +3 -3
  24. criteo_api_retailmedia_preview/model/{product_button_list_response.py → product_button_response_list_response.py} +15 -15
  25. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +5 -5
  26. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +5 -5
  27. criteo_api_retailmedia_preview/model/resource_of_product_button_request.py +6 -6
  28. criteo_api_retailmedia_preview/model/resource_of_product_button_response.py +6 -6
  29. criteo_api_retailmedia_preview/model/{rm_audience_compute_sizes_entity_v1.py → rm_audience_compute_size_entity_v1.py} +3 -4
  30. criteo_api_retailmedia_preview/model/{rm_audience_compute_sizes_entity_v1_resource.py → rm_audience_compute_size_entity_v1_resource.py} +8 -8
  31. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +5 -5
  32. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +0 -1
  33. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +0 -1
  34. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +0 -1
  35. criteo_api_retailmedia_preview/model/rm_events_create_v1.py +0 -2
  36. criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +0 -2
  37. criteo_api_retailmedia_preview/model/rm_events_update_v1.py +0 -2
  38. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +4 -4
  39. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +6 -6
  40. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +9 -9
  41. criteo_api_retailmedia_preview/models/__init__.py +13 -13
  42. {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250819.dist-info}/METADATA +3 -3
  43. {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250819.dist-info}/RECORD +45 -45
  44. criteo_api_retailmedia_preview/model/external_product_button_request.py +0 -287
  45. {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250819.dist-info}/WHEEL +0 -0
  46. {criteo_api_retailmedia_sdk-0.0.250811.dist-info → criteo_api_retailmedia_sdk-0.0.250819.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.external_line_item_capping_v2 import ExternalLineItemCappingV2
34
- from criteo_api_retailmedia_preview.model.external_line_item_page_v2 import ExternalLineItemPageV2
35
- globals()['ExternalLineItemCappingV2'] = ExternalLineItemCappingV2
36
- globals()['ExternalLineItemPageV2'] = ExternalLineItemPageV2
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 ExternalPreferredLineItemV2(ModelNormal):
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,21 @@ 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': (ExternalLineItemCappingV2,), # noqa: E501
122
+ 'capping': (LineItemCappingV2,), # noqa: E501
123
+ 'created_at': (datetime,), # noqa: E501
125
124
  'creative_id': (str, none_type,), # noqa: E501
126
- 'id': (str, none_type,), # noqa: E501
127
125
  'pacing': (str, none_type,), # noqa: E501
128
- 'page': (ExternalLineItemPageV2,), # noqa: E501
126
+ 'page': (LineItemPageV2,), # noqa: E501
127
+ 'updated_at': (datetime,), # noqa: E501
129
128
  }
130
129
 
131
130
  @cached_property
@@ -134,22 +133,21 @@ class ExternalPreferredLineItemV2(ModelNormal):
134
133
 
135
134
 
136
135
  attribute_map = {
136
+ 'budget': 'budget', # noqa: E501
137
137
  'campaign_id': 'campaignId', # noqa: E501
138
- 'created_at': 'createdAt', # noqa: E501
139
138
  'end_date': 'endDate', # noqa: E501
140
139
  'name': 'name', # noqa: E501
141
140
  'start_date': 'startDate', # noqa: E501
142
141
  'status': 'status', # noqa: E501
143
142
  'target_retailer_id': 'targetRetailerId', # noqa: E501
144
- 'updated_at': 'updatedAt', # noqa: E501
145
- 'budget': 'budget', # noqa: E501
146
143
  'budget_remaining': 'budgetRemaining', # noqa: E501
147
144
  'budget_spent': 'budgetSpent', # noqa: E501
148
145
  'capping': 'capping', # noqa: E501
146
+ 'created_at': 'createdAt', # noqa: E501
149
147
  'creative_id': 'creativeId', # noqa: E501
150
- 'id': 'id', # noqa: E501
151
148
  'pacing': 'pacing', # noqa: E501
152
149
  'page': 'page', # noqa: E501
150
+ 'updated_at': 'updatedAt', # noqa: E501
153
151
  }
154
152
 
155
153
  read_only_vars = {
@@ -159,18 +157,17 @@ class ExternalPreferredLineItemV2(ModelNormal):
159
157
 
160
158
  @classmethod
161
159
  @convert_js_args_to_python_args
162
- def _from_openapi_data(cls, campaign_id, created_at, end_date, name, start_date, status, target_retailer_id, updated_at, *args, **kwargs): # noqa: E501
163
- """ExternalPreferredLineItemV2 - a model defined in OpenAPI
160
+ def _from_openapi_data(cls, budget, campaign_id, end_date, name, start_date, status, target_retailer_id, *args, **kwargs): # noqa: E501
161
+ """PreferredLineItemV2 - a model defined in OpenAPI
164
162
 
165
163
  Args:
164
+ budget (float):
166
165
  campaign_id (str):
167
- created_at (datetime):
168
166
  end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
169
167
  name (str):
170
168
  start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
171
169
  status (str): Line Item Status Enum
172
170
  target_retailer_id (str):
173
- updated_at (datetime):
174
171
 
175
172
  Keyword Args:
176
173
  _check_type (bool): if True, values for parameters in openapi_types
@@ -203,14 +200,14 @@ class ExternalPreferredLineItemV2(ModelNormal):
203
200
  Animal class but this time we won't travel
204
201
  through its discriminator because we passed in
205
202
  _visited_composed_classes = (Animal,)
206
- budget (float, none_type): [optional] # noqa: E501
207
203
  budget_remaining (float, none_type): [optional] # noqa: E501
208
204
  budget_spent (float, none_type): [optional] # noqa: E501
209
- capping (ExternalLineItemCappingV2): [optional] # noqa: E501
205
+ capping (LineItemCappingV2): [optional] # noqa: E501
206
+ created_at (datetime): [optional] # noqa: E501
210
207
  creative_id (str, none_type): External creative Id. [optional] # noqa: E501
211
- id (str, none_type): Id of the entity. [optional] # noqa: E501
212
208
  pacing (str, none_type): [optional] # noqa: E501
213
- page (ExternalLineItemPageV2): [optional] # noqa: E501
209
+ page (LineItemPageV2): [optional] # noqa: E501
210
+ updated_at (datetime): [optional] # noqa: E501
214
211
  """
215
212
 
216
213
  _check_type = kwargs.pop('_check_type', True)
@@ -242,14 +239,13 @@ class ExternalPreferredLineItemV2(ModelNormal):
242
239
  self._configuration = _configuration
243
240
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
244
241
 
242
+ self.budget = budget
245
243
  self.campaign_id = campaign_id
246
- self.created_at = created_at
247
244
  self.end_date = end_date
248
245
  self.name = name
249
246
  self.start_date = start_date
250
247
  self.status = status
251
248
  self.target_retailer_id = target_retailer_id
252
- self.updated_at = updated_at
253
249
  for var_name, var_value in kwargs.items():
254
250
  if var_name not in self.attribute_map and \
255
251
  self._configuration is not None and \
@@ -270,18 +266,17 @@ class ExternalPreferredLineItemV2(ModelNormal):
270
266
  ])
271
267
 
272
268
  @convert_js_args_to_python_args
273
- def __init__(self, campaign_id, created_at, end_date, name, start_date, status, target_retailer_id, updated_at, *args, **kwargs): # noqa: E501
274
- """ExternalPreferredLineItemV2 - a model defined in OpenAPI
269
+ def __init__(self, budget, campaign_id, end_date, name, start_date, status, target_retailer_id, *args, **kwargs): # noqa: E501
270
+ """PreferredLineItemV2 - a model defined in OpenAPI
275
271
 
276
272
  Args:
273
+ budget (float):
277
274
  campaign_id (str):
278
- created_at (datetime):
279
275
  end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
280
276
  name (str):
281
277
  start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
282
278
  status (str): Line Item Status Enum
283
279
  target_retailer_id (str):
284
- updated_at (datetime):
285
280
 
286
281
  Keyword Args:
287
282
  _check_type (bool): if True, values for parameters in openapi_types
@@ -314,14 +309,14 @@ class ExternalPreferredLineItemV2(ModelNormal):
314
309
  Animal class but this time we won't travel
315
310
  through its discriminator because we passed in
316
311
  _visited_composed_classes = (Animal,)
317
- budget (float, none_type): [optional] # noqa: E501
318
312
  budget_remaining (float, none_type): [optional] # noqa: E501
319
313
  budget_spent (float, none_type): [optional] # noqa: E501
320
- capping (ExternalLineItemCappingV2): [optional] # noqa: E501
314
+ capping (LineItemCappingV2): [optional] # noqa: E501
315
+ created_at (datetime): [optional] # noqa: E501
321
316
  creative_id (str, none_type): External creative Id. [optional] # noqa: E501
322
- id (str, none_type): Id of the entity. [optional] # noqa: E501
323
317
  pacing (str, none_type): [optional] # noqa: E501
324
- page (ExternalLineItemPageV2): [optional] # noqa: E501
318
+ page (LineItemPageV2): [optional] # noqa: E501
319
+ updated_at (datetime): [optional] # noqa: E501
325
320
  """
326
321
 
327
322
  _check_type = kwargs.pop('_check_type', True)
@@ -351,14 +346,13 @@ class ExternalPreferredLineItemV2(ModelNormal):
351
346
  self._configuration = _configuration
352
347
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
353
348
 
349
+ self.budget = budget
354
350
  self.campaign_id = campaign_id
355
- self.created_at = created_at
356
351
  self.end_date = end_date
357
352
  self.name = name
358
353
  self.start_date = start_date
359
354
  self.status = status
360
355
  self.target_retailer_id = target_retailer_id
361
- self.updated_at = updated_at
362
356
  for var_name, var_value in kwargs.items():
363
357
  if var_name not in self.attribute_map and \
364
358
  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
- 'data': (ResourceOfProductButtonRequest,), # noqa: E501
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
- 'data': 'data', # noqa: E501
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 ProductButtonListRequest(ModelNormal):
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 = False
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
- """ProductButtonListRequest - a model defined in OpenAPI
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
- """ProductButtonListRequest - a model defined in OpenAPI
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 ExternalProductButtonResponse(ModelNormal):
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
- """ExternalProductButtonResponse - a model defined in OpenAPI
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
- """ExternalProductButtonResponse - a model defined in OpenAPI
209
+ """ProductButtonResponse - a model defined in OpenAPI
210
210
 
211
211
  Args:
212
212
  background_image (str): URL of the background image