criteo-api-retailmedia-sdk 2024.7.0.240808__py3-none-any.whl → 2024.7.0.250129__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (68) hide show
  1. {criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.7.0.250129.dist-info}/METADATA +14 -5
  2. {criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.7.0.250129.dist-info}/RECORD +65 -68
  3. {criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.7.0.250129.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_07/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_07/api/accounts_api.py +30 -41
  6. criteo_api_retailmedia_v2024_07/api/analytics_api.py +3 -3
  7. criteo_api_retailmedia_v2024_07/api/campaign_api.py +21 -278
  8. criteo_api_retailmedia_v2024_07/api_client.py +1 -1
  9. criteo_api_retailmedia_v2024_07/configuration.py +1 -1
  10. criteo_api_retailmedia_v2024_07/model/async_campaigns_report.py +40 -0
  11. criteo_api_retailmedia_v2024_07/model/async_line_items_report.py +40 -0
  12. criteo_api_retailmedia_v2024_07/model/async_revenue_report.py +29 -2
  13. criteo_api_retailmedia_v2024_07/model/balance_response_v2_response.py +1 -1
  14. criteo_api_retailmedia_v2024_07/model/campaign_attributes_v202301.py +4 -0
  15. criteo_api_retailmedia_v2024_07/model/campaign_v202301.py +4 -0
  16. criteo_api_retailmedia_v2024_07/model/change_details_v1.py +8 -18
  17. criteo_api_retailmedia_v2024_07/model/choice_option.py +1 -8
  18. criteo_api_retailmedia_v2024_07/model/choice_variable_specification.py +1 -8
  19. criteo_api_retailmedia_v2024_07/model/choice_variable_value.py +1 -7
  20. criteo_api_retailmedia_v2024_07/model/color_variable_value.py +7 -19
  21. criteo_api_retailmedia_v2024_07/model/creative202110.py +7 -13
  22. criteo_api_retailmedia_v2024_07/model/creative202110_list_response.py +13 -20
  23. criteo_api_retailmedia_v2024_07/model/creative202210.py +12 -19
  24. criteo_api_retailmedia_v2024_07/model/creative202210_list_response.py +13 -20
  25. criteo_api_retailmedia_v2024_07/model/creative202210_response.py +10 -17
  26. criteo_api_retailmedia_v2024_07/model/creative_create_model202207.py +4 -11
  27. criteo_api_retailmedia_v2024_07/model/creative_update_model202207.py +4 -11
  28. criteo_api_retailmedia_v2024_07/model/editable_campaign_attributes_v202301.py +4 -0
  29. criteo_api_retailmedia_v2024_07/model/{proposal_status_model_resource.py → entity_resource_of_retail_media_account.py} +17 -10
  30. criteo_api_retailmedia_v2024_07/model/{proposal_status_model_response.py → entity_resource_outcome_of_retail_media_account.py} +28 -21
  31. criteo_api_retailmedia_v2024_07/model/external_account.py +4 -0
  32. criteo_api_retailmedia_v2024_07/model/{retail_media_account.py → external_retail_media_account.py} +31 -21
  33. criteo_api_retailmedia_v2024_07/model/{retail_media_brand_account_creation.py → external_retail_media_brand_account_creation.py} +20 -10
  34. criteo_api_retailmedia_v2024_07/model/{retail_media_brands.py → external_retail_media_brands.py} +13 -7
  35. criteo_api_retailmedia_v2024_07/model/{retail_media_seller.py → external_retail_media_seller.py} +17 -11
  36. criteo_api_retailmedia_v2024_07/model/{retail_media_seller_account_creation.py → external_retail_media_seller_account_creation.py} +25 -14
  37. criteo_api_retailmedia_v2024_07/model/files_variable_value.py +2 -7
  38. criteo_api_retailmedia_v2024_07/model/files_variables_specification.py +7 -15
  39. criteo_api_retailmedia_v2024_07/model/hyperlink_variable_value.py +7 -19
  40. criteo_api_retailmedia_v2024_07/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
  41. criteo_api_retailmedia_v2024_07/model/resource_of_creative202110.py +6 -13
  42. criteo_api_retailmedia_v2024_07/model/resource_of_creative202210.py +2 -9
  43. criteo_api_retailmedia_v2024_07/model/resource_of_template.py +2 -9
  44. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v1_resource.py +4 -4
  45. criteo_api_retailmedia_v2024_07/model/section.py +12 -17
  46. criteo_api_retailmedia_v2024_07/model/template.py +13 -24
  47. criteo_api_retailmedia_v2024_07/model/template_list_response.py +13 -20
  48. criteo_api_retailmedia_v2024_07/model/template_response.py +10 -17
  49. criteo_api_retailmedia_v2024_07/model/template_variable.py +1 -8
  50. criteo_api_retailmedia_v2024_07/model/template_variable_value.py +7 -8
  51. criteo_api_retailmedia_v2024_07/model/text_variable_specification.py +2 -8
  52. criteo_api_retailmedia_v2024_07/model/text_variable_value.py +7 -19
  53. criteo_api_retailmedia_v2024_07/model/value_resource_collection_input_of_retail_media_seller.py +12 -5
  54. criteo_api_retailmedia_v2024_07/model/value_resource_collection_outcome_of_retail_media_seller.py +9 -2
  55. criteo_api_retailmedia_v2024_07/model/value_resource_input_of_retail_media_brand_account_creation.py +8 -1
  56. criteo_api_retailmedia_v2024_07/model/value_resource_input_of_retail_media_brands.py +9 -2
  57. criteo_api_retailmedia_v2024_07/model/value_resource_input_of_retail_media_seller_account_creation.py +9 -2
  58. criteo_api_retailmedia_v2024_07/model/value_resource_of_retail_media_brand_account_creation.py +13 -6
  59. criteo_api_retailmedia_v2024_07/model/value_resource_of_retail_media_brands.py +14 -7
  60. criteo_api_retailmedia_v2024_07/model/value_resource_of_retail_media_seller.py +14 -7
  61. criteo_api_retailmedia_v2024_07/model/value_resource_of_retail_media_seller_account_creation.py +14 -7
  62. criteo_api_retailmedia_v2024_07/model/{resource_outcome_of_retail_media_account.py → value_resource_outcome_of_retail_media_brands.py} +17 -10
  63. criteo_api_retailmedia_v2024_07/model/{resource_of_retail_media_account.py → video_variable_value.py} +39 -22
  64. criteo_api_retailmedia_v2024_07/models/__init__.py +10 -13
  65. criteo_api_retailmedia_v2024_07/model/approval_status_model.py +0 -292
  66. criteo_api_retailmedia_v2024_07/model/negotiation_state_model.py +0 -293
  67. criteo_api_retailmedia_v2024_07/model/proposal_status_model.py +0 -284
  68. {criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.7.0.250129.dist-info}/top_level.txt +0 -0
@@ -163,6 +163,7 @@ class AsyncRevenueReport(ModelNormal):
163
163
  'BUYTYPE': "buyType",
164
164
  'SOLDBY': "soldBy",
165
165
  'SALECHANNEL': "saleChannel",
166
+ 'SALESCHANNEL': "salesChannel",
166
167
  'ATTRIBUTIONSETTINGS': "attributionSettings",
167
168
  'ACTIVITYTYPE': "activityType",
168
169
  'KEYWORD': "keyword",
@@ -219,6 +220,16 @@ class AsyncRevenueReport(ModelNormal):
219
220
  'VIDEOSPLAYEDTO100': "videosPlayedTo100",
220
221
  'VIDEOPLAYINGRATE': "videoPlayingRate",
221
222
  'VIDEOCOMPLETIONRATE': "videoCompletionRate",
223
+ 'VIDEOIMPRESSIONS': "videoImpressions",
224
+ 'VIDEOMUTED': "videoMuted",
225
+ 'VIDEOUNMUTED': "videoUnmuted",
226
+ 'VIDEORESUMED': "videoResumed",
227
+ 'VIDEOPAUSED': "videoPaused",
228
+ 'VIDEOAVGINTERACTIONRATE': "videoAvgInteractionRate",
229
+ 'VIDEOVIEWABILITY': "videoViewability",
230
+ 'VIDEOSTARTINGRATE': "videoStartingRate",
231
+ 'VIDEOCPC': "videoCPC",
232
+ 'VIDEOCPCV': "videoCPCV",
222
233
  'UNIQUEVISITORS': "uniqueVisitors",
223
234
  'FREQUENCY': "frequency",
224
235
  },
@@ -252,6 +263,10 @@ class AsyncRevenueReport(ModelNormal):
252
263
  'end_date': (datetime,), # noqa: E501
253
264
  'ids': ([str], none_type,), # noqa: E501
254
265
  'id': (str, none_type,), # noqa: E501
266
+ 'retailer_ids': ([str], none_type,), # noqa: E501
267
+ 'account_ids': ([str], none_type,), # noqa: E501
268
+ 'campaign_ids': ([str], none_type,), # noqa: E501
269
+ 'line_item_ids': ([str], none_type,), # noqa: E501
255
270
  'report_type': (str, none_type,), # noqa: E501
256
271
  'revenue_type': (str, none_type,), # noqa: E501
257
272
  'sold_by': (str, none_type,), # noqa: E501
@@ -278,6 +293,10 @@ class AsyncRevenueReport(ModelNormal):
278
293
  'end_date': 'endDate', # noqa: E501
279
294
  'ids': 'ids', # noqa: E501
280
295
  'id': 'id', # noqa: E501
296
+ 'retailer_ids': 'retailerIds', # noqa: E501
297
+ 'account_ids': 'accountIds', # noqa: E501
298
+ 'campaign_ids': 'campaignIds', # noqa: E501
299
+ 'line_item_ids': 'lineItemIds', # noqa: E501
281
300
  'report_type': 'reportType', # noqa: E501
282
301
  'revenue_type': 'revenueType', # noqa: E501
283
302
  'sold_by': 'soldBy', # noqa: E501
@@ -341,13 +360,17 @@ class AsyncRevenueReport(ModelNormal):
341
360
  _visited_composed_classes = (Animal,)
342
361
  ids ([str], none_type): Supply account ids to report on. [optional] # noqa: E501
343
362
  id (str, none_type): Supply account id to report on. [optional] # noqa: E501
363
+ retailer_ids ([str], none_type): Retailer ids to filter. [optional] # noqa: E501
364
+ account_ids ([str], none_type): Account ids to filter. [optional] # noqa: E501
365
+ campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
366
+ line_item_ids ([str], none_type): Line item ids to filter. [optional] # noqa: E501
344
367
  report_type (str, none_type): Type of report. [optional] # noqa: E501
345
368
  revenue_type (str, none_type): Type of revenue. [optional] # noqa: E501
346
369
  sold_by (str, none_type): Filter on the seller: Indirect Sold, Direct Sold or Private Market. [optional] # noqa: E501
347
370
  buy_type (str, none_type): Filter on buy type: Auction, Preferred Deals or Sponsorship. [optional] # noqa: E501
348
371
  advertiser_types ([str], none_type): Filter on the type of advertiser: retailer, brand, seller. [optional] # noqa: E501
349
372
  sku_relations ([str], none_type): Filter on sku relations: Same SKU, Same Parent SKU, Same Category, Same Brand or Same Seller. [optional] # noqa: E501
350
- format (str, none_type): Format of the output. [optional] # noqa: E501
373
+ format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
351
374
  campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
352
375
  sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] if omitted the server will use the default value of "all" # noqa: E501
353
376
  click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
@@ -448,13 +471,17 @@ class AsyncRevenueReport(ModelNormal):
448
471
  _visited_composed_classes = (Animal,)
449
472
  ids ([str], none_type): Supply account ids to report on. [optional] # noqa: E501
450
473
  id (str, none_type): Supply account id to report on. [optional] # noqa: E501
474
+ retailer_ids ([str], none_type): Retailer ids to filter. [optional] # noqa: E501
475
+ account_ids ([str], none_type): Account ids to filter. [optional] # noqa: E501
476
+ campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
477
+ line_item_ids ([str], none_type): Line item ids to filter. [optional] # noqa: E501
451
478
  report_type (str, none_type): Type of report. [optional] # noqa: E501
452
479
  revenue_type (str, none_type): Type of revenue. [optional] # noqa: E501
453
480
  sold_by (str, none_type): Filter on the seller: Indirect Sold, Direct Sold or Private Market. [optional] # noqa: E501
454
481
  buy_type (str, none_type): Filter on buy type: Auction, Preferred Deals or Sponsorship. [optional] # noqa: E501
455
482
  advertiser_types ([str], none_type): Filter on the type of advertiser: retailer, brand, seller. [optional] # noqa: E501
456
483
  sku_relations ([str], none_type): Filter on sku relations: Same SKU, Same Parent SKU, Same Category, Same Brand or Same Seller. [optional] # noqa: E501
457
- format (str, none_type): Format of the output. [optional] # noqa: E501
484
+ format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
458
485
  campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
459
486
  sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] if omitted the server will use the default value of "all" # noqa: E501
460
487
  click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
@@ -75,7 +75,7 @@ class BalanceResponseV2Response(ModelNormal):
75
75
  lazy_import()
76
76
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
77
 
78
- _nullable = False
78
+ _nullable = True
79
79
 
80
80
  @cached_property
81
81
  def openapi_types():
@@ -132,6 +132,7 @@ class CampaignAttributesV202301(ModelNormal):
132
132
  'click_attribution_scope': (str, none_type,), # noqa: E501
133
133
  'view_attribution_scope': (str, none_type,), # noqa: E501
134
134
  'company_name': (str, none_type,), # noqa: E501
135
+ 'on_behalf_company_name': (str, none_type,), # noqa: E501
135
136
  }
136
137
 
137
138
  @cached_property
@@ -154,6 +155,7 @@ class CampaignAttributesV202301(ModelNormal):
154
155
  'click_attribution_scope': 'clickAttributionScope', # noqa: E501
155
156
  'view_attribution_scope': 'viewAttributionScope', # noqa: E501
156
157
  'company_name': 'companyName', # noqa: E501
158
+ 'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
157
159
  }
158
160
 
159
161
  read_only_vars = {
@@ -213,6 +215,7 @@ class CampaignAttributesV202301(ModelNormal):
213
215
  click_attribution_scope (str, none_type): [optional] # noqa: E501
214
216
  view_attribution_scope (str, none_type): [optional] # noqa: E501
215
217
  company_name (str, none_type): [optional] # noqa: E501
218
+ on_behalf_company_name (str, none_type): [optional] # noqa: E501
216
219
  """
217
220
 
218
221
  _check_type = kwargs.pop('_check_type', True)
@@ -318,6 +321,7 @@ class CampaignAttributesV202301(ModelNormal):
318
321
  click_attribution_scope (str, none_type): [optional] # noqa: E501
319
322
  view_attribution_scope (str, none_type): [optional] # noqa: E501
320
323
  company_name (str, none_type): [optional] # noqa: E501
324
+ on_behalf_company_name (str, none_type): [optional] # noqa: E501
321
325
  """
322
326
 
323
327
  _check_type = kwargs.pop('_check_type', True)
@@ -146,6 +146,7 @@ class CampaignV202301(ModelNormal):
146
146
  'click_attribution_scope': (str, none_type,), # noqa: E501
147
147
  'view_attribution_scope': (str, none_type,), # noqa: E501
148
148
  'company_name': (str, none_type,), # noqa: E501
149
+ 'on_behalf_company_name': (str, none_type,), # noqa: E501
149
150
  }
150
151
 
151
152
  @cached_property
@@ -175,6 +176,7 @@ class CampaignV202301(ModelNormal):
175
176
  'click_attribution_scope': 'clickAttributionScope', # noqa: E501
176
177
  'view_attribution_scope': 'viewAttributionScope', # noqa: E501
177
178
  'company_name': 'companyName', # noqa: E501
179
+ 'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
178
180
  }
179
181
 
180
182
  read_only_vars = {
@@ -241,6 +243,7 @@ class CampaignV202301(ModelNormal):
241
243
  click_attribution_scope (str, none_type): [optional] # noqa: E501
242
244
  view_attribution_scope (str, none_type): [optional] # noqa: E501
243
245
  company_name (str, none_type): [optional] # noqa: E501
246
+ on_behalf_company_name (str, none_type): [optional] # noqa: E501
244
247
  """
245
248
 
246
249
  _check_type = kwargs.pop('_check_type', True)
@@ -359,6 +362,7 @@ class CampaignV202301(ModelNormal):
359
362
  click_attribution_scope (str, none_type): [optional] # noqa: E501
360
363
  view_attribution_scope (str, none_type): [optional] # noqa: E501
361
364
  company_name (str, none_type): [optional] # noqa: E501
365
+ on_behalf_company_name (str, none_type): [optional] # noqa: E501
362
366
  """
363
367
 
364
368
  _check_type = kwargs.pop('_check_type', True)
@@ -98,14 +98,9 @@ class ChangeDetailsV1(ModelNormal):
98
98
 
99
99
  @classmethod
100
100
  @convert_js_args_to_python_args
101
- def _from_openapi_data(cls, previous_value, current_value, change_value, *args, **kwargs): # noqa: E501
101
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
102
102
  """ChangeDetailsV1 - a model defined in OpenAPI
103
103
 
104
- Args:
105
- previous_value (str, none_type): Previous value of a property of the insertion order.
106
- current_value (str, none_type): Current value of a property of the insertion order.
107
- change_value (str, none_type): Change detail of a property of the insertion order.
108
-
109
104
  Keyword Args:
110
105
  _check_type (bool): if True, values for parameters in openapi_types
111
106
  will be type checked and a TypeError will be
@@ -137,6 +132,9 @@ class ChangeDetailsV1(ModelNormal):
137
132
  Animal class but this time we won't travel
138
133
  through its discriminator because we passed in
139
134
  _visited_composed_classes = (Animal,)
135
+ previous_value (str, none_type): Previous value of a property of the insertion order.. [optional] # noqa: E501
136
+ current_value (str, none_type): Current value of a property of the insertion order.. [optional] # noqa: E501
137
+ change_value (str, none_type): Change detail of a property of the insertion order.. [optional] # noqa: E501
140
138
  """
141
139
 
142
140
  _check_type = kwargs.pop('_check_type', True)
@@ -168,9 +166,6 @@ class ChangeDetailsV1(ModelNormal):
168
166
  self._configuration = _configuration
169
167
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
168
 
171
- self.previous_value = previous_value
172
- self.current_value = current_value
173
- self.change_value = change_value
174
169
  for var_name, var_value in kwargs.items():
175
170
  if var_name not in self.attribute_map and \
176
171
  self._configuration is not None and \
@@ -191,14 +186,9 @@ class ChangeDetailsV1(ModelNormal):
191
186
  ])
192
187
 
193
188
  @convert_js_args_to_python_args
194
- def __init__(self, previous_value, current_value, change_value, *args, **kwargs): # noqa: E501
189
+ def __init__(self, *args, **kwargs): # noqa: E501
195
190
  """ChangeDetailsV1 - a model defined in OpenAPI
196
191
 
197
- Args:
198
- previous_value (str, none_type): Previous value of a property of the insertion order.
199
- current_value (str, none_type): Current value of a property of the insertion order.
200
- change_value (str, none_type): Change detail of a property of the insertion order.
201
-
202
192
  Keyword Args:
203
193
  _check_type (bool): if True, values for parameters in openapi_types
204
194
  will be type checked and a TypeError will be
@@ -230,6 +220,9 @@ class ChangeDetailsV1(ModelNormal):
230
220
  Animal class but this time we won't travel
231
221
  through its discriminator because we passed in
232
222
  _visited_composed_classes = (Animal,)
223
+ previous_value (str, none_type): Previous value of a property of the insertion order.. [optional] # noqa: E501
224
+ current_value (str, none_type): Current value of a property of the insertion order.. [optional] # noqa: E501
225
+ change_value (str, none_type): Change detail of a property of the insertion order.. [optional] # noqa: E501
233
226
  """
234
227
 
235
228
  _check_type = kwargs.pop('_check_type', True)
@@ -259,9 +252,6 @@ class ChangeDetailsV1(ModelNormal):
259
252
  self._configuration = _configuration
260
253
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261
254
 
262
- self.previous_value = previous_value
263
- self.current_value = current_value
264
- self.change_value = change_value
265
255
  for var_name, var_value in kwargs.items():
266
256
  if var_name not in self.attribute_map and \
267
257
  self._configuration is not None and \
@@ -64,14 +64,7 @@ class ChoiceOption(ModelNormal):
64
64
  validations = {
65
65
  }
66
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
67
+ additional_properties_type = None
75
68
 
76
69
  _nullable = False
77
70
 
@@ -64,14 +64,7 @@ class ChoiceVariableSpecification(ModelNormal):
64
64
  validations = {
65
65
  }
66
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
67
+ additional_properties_type = None
75
68
 
76
69
  _nullable = False
77
70
 
@@ -60,13 +60,7 @@ class ChoiceVariableValue(ModelNormal):
60
60
  validations = {
61
61
  }
62
62
 
63
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
63
+ additional_properties_type = None
70
64
 
71
65
  _nullable = False
72
66
 
@@ -65,15 +65,9 @@ class ColorVariableValue(ModelNormal):
65
65
  },
66
66
  }
67
67
 
68
- @cached_property
69
- def additional_properties_type():
70
- """
71
- This must be a method because a model may have properties that are
72
- of type self, this must run after the class is loaded
73
- """
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
68
+ additional_properties_type = None
75
69
 
76
- _nullable = False
70
+ _nullable = True
77
71
 
78
72
  @cached_property
79
73
  def openapi_types():
@@ -86,7 +80,7 @@ class ColorVariableValue(ModelNormal):
86
80
  and the value is attribute type.
87
81
  """
88
82
  return {
89
- 'color': (str,), # noqa: E501
83
+ 'color': (str, none_type,), # noqa: E501
90
84
  }
91
85
 
92
86
  @cached_property
@@ -105,12 +99,9 @@ class ColorVariableValue(ModelNormal):
105
99
 
106
100
  @classmethod
107
101
  @convert_js_args_to_python_args
108
- def _from_openapi_data(cls, color, *args, **kwargs): # noqa: E501
102
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
109
103
  """ColorVariableValue - a model defined in OpenAPI
110
104
 
111
- Args:
112
- color (str): The displayed color (HEX format)
113
-
114
105
  Keyword Args:
115
106
  _check_type (bool): if True, values for parameters in openapi_types
116
107
  will be type checked and a TypeError will be
@@ -142,6 +133,7 @@ class ColorVariableValue(ModelNormal):
142
133
  Animal class but this time we won't travel
143
134
  through its discriminator because we passed in
144
135
  _visited_composed_classes = (Animal,)
136
+ color (str, none_type): The displayed color (HEX format). [optional] # noqa: E501
145
137
  """
146
138
 
147
139
  _check_type = kwargs.pop('_check_type', True)
@@ -173,7 +165,6 @@ class ColorVariableValue(ModelNormal):
173
165
  self._configuration = _configuration
174
166
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
175
167
 
176
- self.color = color
177
168
  for var_name, var_value in kwargs.items():
178
169
  if var_name not in self.attribute_map and \
179
170
  self._configuration is not None and \
@@ -194,12 +185,9 @@ class ColorVariableValue(ModelNormal):
194
185
  ])
195
186
 
196
187
  @convert_js_args_to_python_args
197
- def __init__(self, color, *args, **kwargs): # noqa: E501
188
+ def __init__(self, *args, **kwargs): # noqa: E501
198
189
  """ColorVariableValue - a model defined in OpenAPI
199
190
 
200
- Args:
201
- color (str): The displayed color (HEX format)
202
-
203
191
  Keyword Args:
204
192
  _check_type (bool): if True, values for parameters in openapi_types
205
193
  will be type checked and a TypeError will be
@@ -231,6 +219,7 @@ class ColorVariableValue(ModelNormal):
231
219
  Animal class but this time we won't travel
232
220
  through its discriminator because we passed in
233
221
  _visited_composed_classes = (Animal,)
222
+ color (str, none_type): The displayed color (HEX format). [optional] # noqa: E501
234
223
  """
235
224
 
236
225
  _check_type = kwargs.pop('_check_type', True)
@@ -260,7 +249,6 @@ class ColorVariableValue(ModelNormal):
260
249
  self._configuration = _configuration
261
250
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
262
251
 
263
- self.color = color
264
252
  for var_name, var_value in kwargs.items():
265
253
  if var_name not in self.attribute_map and \
266
254
  self._configuration is not None and \
@@ -66,13 +66,7 @@ class Creative202110(ModelNormal):
66
66
  validations = {
67
67
  }
68
68
 
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
76
70
 
77
71
  _nullable = False
78
72
 
@@ -91,8 +85,8 @@ class Creative202110(ModelNormal):
91
85
  'status': (str,), # noqa: E501
92
86
  'retailer_id': (int,), # noqa: E501
93
87
  'brand_id': (int, none_type,), # noqa: E501
94
- 'associated_line_item_ids': ([str],), # noqa: E501
95
- 'updated_at': (datetime,), # noqa: E501
88
+ 'associated_line_item_ids': ([str], none_type,), # noqa: E501
89
+ 'updated_at': (datetime, none_type,), # noqa: E501
96
90
  }
97
91
 
98
92
  @cached_property
@@ -156,8 +150,8 @@ class Creative202110(ModelNormal):
156
150
  through its discriminator because we passed in
157
151
  _visited_composed_classes = (Animal,)
158
152
  brand_id (int, none_type): [optional] # noqa: E501
159
- associated_line_item_ids ([str]): [optional] # noqa: E501
160
- updated_at (datetime): [optional] # noqa: E501
153
+ associated_line_item_ids ([str], none_type): [optional] # noqa: E501
154
+ updated_at (datetime, none_type): [optional] # noqa: E501
161
155
  """
162
156
 
163
157
  _check_type = kwargs.pop('_check_type', True)
@@ -252,8 +246,8 @@ class Creative202110(ModelNormal):
252
246
  through its discriminator because we passed in
253
247
  _visited_composed_classes = (Animal,)
254
248
  brand_id (int, none_type): [optional] # noqa: E501
255
- associated_line_item_ids ([str]): [optional] # noqa: E501
256
- updated_at (datetime): [optional] # noqa: E501
249
+ associated_line_item_ids ([str], none_type): [optional] # noqa: E501
250
+ updated_at (datetime, none_type): [optional] # noqa: E501
257
251
  """
258
252
 
259
253
  _check_type = kwargs.pop('_check_type', True)
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_07.model.problem_details import ProblemDetails
33
+ from criteo_api_retailmedia_v2024_07.model.common_problem import CommonProblem
34
34
  from criteo_api_retailmedia_v2024_07.model.resource_of_creative202110 import ResourceOfCreative202110
35
- globals()['ProblemDetails'] = ProblemDetails
35
+ globals()['CommonProblem'] = CommonProblem
36
36
  globals()['ResourceOfCreative202110'] = ResourceOfCreative202110
37
37
 
38
38
 
@@ -66,16 +66,9 @@ class Creative202110ListResponse(ModelNormal):
66
66
  validations = {
67
67
  }
68
68
 
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
77
70
 
78
- _nullable = False
71
+ _nullable = True
79
72
 
80
73
  @cached_property
81
74
  def openapi_types():
@@ -89,9 +82,9 @@ class Creative202110ListResponse(ModelNormal):
89
82
  """
90
83
  lazy_import()
91
84
  return {
92
- 'data': ([ResourceOfCreative202110],), # noqa: E501
93
- 'warnings': ([ProblemDetails],), # noqa: E501
94
- 'errors': ([ProblemDetails],), # noqa: E501
85
+ 'data': ([ResourceOfCreative202110], none_type,), # noqa: E501
86
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
95
88
  }
96
89
 
97
90
  @cached_property
@@ -148,9 +141,9 @@ class Creative202110ListResponse(ModelNormal):
148
141
  Animal class but this time we won't travel
149
142
  through its discriminator because we passed in
150
143
  _visited_composed_classes = (Animal,)
151
- data ([ResourceOfCreative202110]): [optional] # noqa: E501
152
- warnings ([ProblemDetails]): [optional] # noqa: E501
153
- errors ([ProblemDetails]): [optional] # noqa: E501
144
+ data ([ResourceOfCreative202110], none_type): [optional] # noqa: E501
145
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
146
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
154
147
  """
155
148
 
156
149
  _check_type = kwargs.pop('_check_type', True)
@@ -236,9 +229,9 @@ class Creative202110ListResponse(ModelNormal):
236
229
  Animal class but this time we won't travel
237
230
  through its discriminator because we passed in
238
231
  _visited_composed_classes = (Animal,)
239
- data ([ResourceOfCreative202110]): [optional] # noqa: E501
240
- warnings ([ProblemDetails]): [optional] # noqa: E501
241
- errors ([ProblemDetails]): [optional] # noqa: E501
232
+ data ([ResourceOfCreative202110], none_type): [optional] # noqa: E501
233
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
234
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
242
235
  """
243
236
 
244
237
  _check_type = kwargs.pop('_check_type', True)
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_07.model.page_type_environment import PageTypeEnvironment
33
+ from criteo_api_retailmedia_v2024_07.model.page_type_environment202210 import PageTypeEnvironment202210
34
34
  from criteo_api_retailmedia_v2024_07.model.template_variable_value import TemplateVariableValue
35
- globals()['PageTypeEnvironment'] = PageTypeEnvironment
35
+ globals()['PageTypeEnvironment202210'] = PageTypeEnvironment202210
36
36
  globals()['TemplateVariableValue'] = TemplateVariableValue
37
37
 
38
38
 
@@ -84,14 +84,7 @@ class Creative202210(ModelNormal):
84
84
  validations = {
85
85
  }
86
86
 
87
- @cached_property
88
- def additional_properties_type():
89
- """
90
- This must be a method because a model may have properties that are
91
- of type self, this must run after the class is loaded
92
- """
93
- lazy_import()
94
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
87
+ additional_properties_type = None
95
88
 
96
89
  _nullable = False
97
90
 
@@ -114,11 +107,11 @@ class Creative202210(ModelNormal):
114
107
  'template_name': (str,), # noqa: E501
115
108
  'format_id': (int,), # noqa: E501
116
109
  'creative_format_type': (str,), # noqa: E501
117
- 'environments': ([PageTypeEnvironment],), # noqa: E501
110
+ 'environments': ([PageTypeEnvironment202210],), # noqa: E501
118
111
  'template_variable_values': ([TemplateVariableValue],), # noqa: E501
119
112
  'brand_id': (int, none_type,), # noqa: E501
120
- 'associated_line_item_ids': ([str],), # noqa: E501
121
- 'updated_at': (datetime,), # noqa: E501
113
+ 'associated_line_item_ids': ([str], none_type,), # noqa: E501
114
+ 'updated_at': (datetime, none_type,), # noqa: E501
122
115
  }
123
116
 
124
117
  @cached_property
@@ -159,7 +152,7 @@ class Creative202210(ModelNormal):
159
152
  template_name (str): Template Name
160
153
  format_id (int): Format Id
161
154
  creative_format_type (str): Creative format type
162
- environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app)
155
+ environments ([PageTypeEnvironment202210]): Environment type (e.g. mobile, web, app)
163
156
  template_variable_values ([TemplateVariableValue]): The template chosen values
164
157
 
165
158
  Keyword Args:
@@ -194,8 +187,8 @@ class Creative202210(ModelNormal):
194
187
  through its discriminator because we passed in
195
188
  _visited_composed_classes = (Animal,)
196
189
  brand_id (int, none_type): Brand Id. [optional] # noqa: E501
197
- associated_line_item_ids ([str]): Associated Line Item Ids. [optional] # noqa: E501
198
- updated_at (datetime): Updated at time. [optional] # noqa: E501
190
+ associated_line_item_ids ([str], none_type): Associated Line Item Ids. [optional] # noqa: E501
191
+ updated_at (datetime, none_type): Updated at time. [optional] # noqa: E501
199
192
  """
200
193
 
201
194
  _check_type = kwargs.pop('_check_type', True)
@@ -267,7 +260,7 @@ class Creative202210(ModelNormal):
267
260
  template_name (str): Template Name
268
261
  format_id (int): Format Id
269
262
  creative_format_type (str): Creative format type
270
- environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app)
263
+ environments ([PageTypeEnvironment202210]): Environment type (e.g. mobile, web, app)
271
264
  template_variable_values ([TemplateVariableValue]): The template chosen values
272
265
 
273
266
  Keyword Args:
@@ -302,8 +295,8 @@ class Creative202210(ModelNormal):
302
295
  through its discriminator because we passed in
303
296
  _visited_composed_classes = (Animal,)
304
297
  brand_id (int, none_type): Brand Id. [optional] # noqa: E501
305
- associated_line_item_ids ([str]): Associated Line Item Ids. [optional] # noqa: E501
306
- updated_at (datetime): Updated at time. [optional] # noqa: E501
298
+ associated_line_item_ids ([str], none_type): Associated Line Item Ids. [optional] # noqa: E501
299
+ updated_at (datetime, none_type): Updated at time. [optional] # noqa: E501
307
300
  """
308
301
 
309
302
  _check_type = kwargs.pop('_check_type', True)
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_07.model.problem_details import ProblemDetails
33
+ from criteo_api_retailmedia_v2024_07.model.common_problem import CommonProblem
34
34
  from criteo_api_retailmedia_v2024_07.model.resource_of_creative202210 import ResourceOfCreative202210
35
- globals()['ProblemDetails'] = ProblemDetails
35
+ globals()['CommonProblem'] = CommonProblem
36
36
  globals()['ResourceOfCreative202210'] = ResourceOfCreative202210
37
37
 
38
38
 
@@ -66,16 +66,9 @@ class Creative202210ListResponse(ModelNormal):
66
66
  validations = {
67
67
  }
68
68
 
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
77
70
 
78
- _nullable = False
71
+ _nullable = True
79
72
 
80
73
  @cached_property
81
74
  def openapi_types():
@@ -89,9 +82,9 @@ class Creative202210ListResponse(ModelNormal):
89
82
  """
90
83
  lazy_import()
91
84
  return {
92
- 'data': ([ResourceOfCreative202210],), # noqa: E501
93
- 'warnings': ([ProblemDetails],), # noqa: E501
94
- 'errors': ([ProblemDetails],), # noqa: E501
85
+ 'data': ([ResourceOfCreative202210], none_type,), # noqa: E501
86
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
95
88
  }
96
89
 
97
90
  @cached_property
@@ -148,9 +141,9 @@ class Creative202210ListResponse(ModelNormal):
148
141
  Animal class but this time we won't travel
149
142
  through its discriminator because we passed in
150
143
  _visited_composed_classes = (Animal,)
151
- data ([ResourceOfCreative202210]): [optional] # noqa: E501
152
- warnings ([ProblemDetails]): [optional] # noqa: E501
153
- errors ([ProblemDetails]): [optional] # noqa: E501
144
+ data ([ResourceOfCreative202210], none_type): [optional] # noqa: E501
145
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
146
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
154
147
  """
155
148
 
156
149
  _check_type = kwargs.pop('_check_type', True)
@@ -236,9 +229,9 @@ class Creative202210ListResponse(ModelNormal):
236
229
  Animal class but this time we won't travel
237
230
  through its discriminator because we passed in
238
231
  _visited_composed_classes = (Animal,)
239
- data ([ResourceOfCreative202210]): [optional] # noqa: E501
240
- warnings ([ProblemDetails]): [optional] # noqa: E501
241
- errors ([ProblemDetails]): [optional] # noqa: E501
232
+ data ([ResourceOfCreative202210], none_type): [optional] # noqa: E501
233
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
234
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
242
235
  """
243
236
 
244
237
  _check_type = kwargs.pop('_check_type', True)