criteo-api-retailmedia-sdk 2024.4.0.240808__py3-none-any.whl → 2024.4.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 (59) hide show
  1. {criteo_api_retailmedia_sdk-2024.4.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250129.dist-info}/METADATA +14 -5
  2. {criteo_api_retailmedia_sdk-2024.4.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250129.dist-info}/RECORD +56 -59
  3. {criteo_api_retailmedia_sdk-2024.4.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250129.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_04/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_04/api/accounts_api.py +19 -26
  6. criteo_api_retailmedia_v2024_04/api/analytics_api.py +3 -3
  7. criteo_api_retailmedia_v2024_04/api/campaign_api.py +21 -278
  8. criteo_api_retailmedia_v2024_04/api_client.py +1 -1
  9. criteo_api_retailmedia_v2024_04/configuration.py +1 -1
  10. criteo_api_retailmedia_v2024_04/model/async_campaigns_report.py +40 -0
  11. criteo_api_retailmedia_v2024_04/model/async_line_items_report.py +40 -0
  12. criteo_api_retailmedia_v2024_04/model/async_revenue_report.py +29 -2
  13. criteo_api_retailmedia_v2024_04/model/campaign_attributes_v202301.py +4 -0
  14. criteo_api_retailmedia_v2024_04/model/campaign_v202301.py +4 -0
  15. criteo_api_retailmedia_v2024_04/model/choice_option.py +1 -8
  16. criteo_api_retailmedia_v2024_04/model/choice_variable_specification.py +1 -8
  17. criteo_api_retailmedia_v2024_04/model/choice_variable_value.py +1 -7
  18. criteo_api_retailmedia_v2024_04/model/color_variable_value.py +7 -19
  19. criteo_api_retailmedia_v2024_04/model/creative202110.py +7 -13
  20. criteo_api_retailmedia_v2024_04/model/creative202110_list_response.py +13 -20
  21. criteo_api_retailmedia_v2024_04/model/creative202210.py +12 -19
  22. criteo_api_retailmedia_v2024_04/model/creative202210_list_response.py +13 -20
  23. criteo_api_retailmedia_v2024_04/model/creative202210_response.py +10 -17
  24. criteo_api_retailmedia_v2024_04/model/creative_create_model202207.py +4 -11
  25. criteo_api_retailmedia_v2024_04/model/creative_update_model202207.py +4 -11
  26. criteo_api_retailmedia_v2024_04/model/editable_campaign_attributes_v202301.py +4 -0
  27. criteo_api_retailmedia_v2024_04/model/{proposal_status_model_resource.py → entity_resource_of_retail_media_account.py} +17 -10
  28. criteo_api_retailmedia_v2024_04/model/{proposal_status_model_response.py → entity_resource_outcome_of_retail_media_account.py} +28 -21
  29. criteo_api_retailmedia_v2024_04/model/external_account.py +4 -0
  30. criteo_api_retailmedia_v2024_04/model/{retail_media_account.py → external_retail_media_account.py} +31 -21
  31. criteo_api_retailmedia_v2024_04/model/{retail_media_brand_account_creation.py → external_retail_media_brand_account_creation.py} +20 -10
  32. criteo_api_retailmedia_v2024_04/model/{retail_media_brands.py → external_retail_media_brands.py} +13 -7
  33. criteo_api_retailmedia_v2024_04/model/files_variable_value.py +2 -7
  34. criteo_api_retailmedia_v2024_04/model/files_variables_specification.py +7 -15
  35. criteo_api_retailmedia_v2024_04/model/hyperlink_variable_value.py +7 -19
  36. criteo_api_retailmedia_v2024_04/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
  37. criteo_api_retailmedia_v2024_04/model/resource_of_creative202110.py +6 -13
  38. criteo_api_retailmedia_v2024_04/model/resource_of_creative202210.py +2 -9
  39. criteo_api_retailmedia_v2024_04/model/resource_of_template.py +2 -9
  40. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_get_entity_v1_resource.py +4 -4
  41. criteo_api_retailmedia_v2024_04/model/section.py +12 -17
  42. criteo_api_retailmedia_v2024_04/model/template.py +13 -24
  43. criteo_api_retailmedia_v2024_04/model/template_list_response.py +13 -20
  44. criteo_api_retailmedia_v2024_04/model/template_response.py +10 -17
  45. criteo_api_retailmedia_v2024_04/model/template_variable.py +1 -8
  46. criteo_api_retailmedia_v2024_04/model/template_variable_value.py +7 -8
  47. criteo_api_retailmedia_v2024_04/model/text_variable_specification.py +2 -8
  48. criteo_api_retailmedia_v2024_04/model/text_variable_value.py +7 -19
  49. criteo_api_retailmedia_v2024_04/model/value_resource_input_of_retail_media_brand_account_creation.py +8 -1
  50. criteo_api_retailmedia_v2024_04/model/value_resource_input_of_retail_media_brands.py +9 -2
  51. criteo_api_retailmedia_v2024_04/model/value_resource_of_retail_media_brand_account_creation.py +13 -6
  52. criteo_api_retailmedia_v2024_04/model/value_resource_of_retail_media_brands.py +14 -7
  53. criteo_api_retailmedia_v2024_04/model/{resource_outcome_of_retail_media_account.py → value_resource_outcome_of_retail_media_brands.py} +17 -10
  54. criteo_api_retailmedia_v2024_04/model/{resource_of_retail_media_account.py → video_variable_value.py} +39 -22
  55. criteo_api_retailmedia_v2024_04/models/__init__.py +8 -11
  56. criteo_api_retailmedia_v2024_04/model/approval_status_model.py +0 -292
  57. criteo_api_retailmedia_v2024_04/model/negotiation_state_model.py +0 -293
  58. criteo_api_retailmedia_v2024_04/model/proposal_status_model.py +0 -284
  59. {criteo_api_retailmedia_sdk-2024.4.0.240808.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250129.dist-info}/top_level.txt +0 -0
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_04.model.problem_details import ProblemDetails
33
+ from criteo_api_retailmedia_v2024_04.model.common_problem import CommonProblem
34
34
  from criteo_api_retailmedia_v2024_04.model.resource_of_template import ResourceOfTemplate
35
- globals()['ProblemDetails'] = ProblemDetails
35
+ globals()['CommonProblem'] = CommonProblem
36
36
  globals()['ResourceOfTemplate'] = ResourceOfTemplate
37
37
 
38
38
 
@@ -66,16 +66,9 @@ class TemplateResponse(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():
@@ -90,8 +83,8 @@ class TemplateResponse(ModelNormal):
90
83
  lazy_import()
91
84
  return {
92
85
  'data': (ResourceOfTemplate,), # noqa: E501
93
- 'warnings': ([ProblemDetails],), # noqa: E501
94
- 'errors': ([ProblemDetails],), # noqa: E501
86
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
95
88
  }
96
89
 
97
90
  @cached_property
@@ -149,8 +142,8 @@ class TemplateResponse(ModelNormal):
149
142
  through its discriminator because we passed in
150
143
  _visited_composed_classes = (Animal,)
151
144
  data (ResourceOfTemplate): [optional] # noqa: E501
152
- warnings ([ProblemDetails]): [optional] # noqa: E501
153
- errors ([ProblemDetails]): [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)
@@ -237,8 +230,8 @@ class TemplateResponse(ModelNormal):
237
230
  through its discriminator because we passed in
238
231
  _visited_composed_classes = (Animal,)
239
232
  data (ResourceOfTemplate): [optional] # noqa: E501
240
- warnings ([ProblemDetails]): [optional] # noqa: E501
241
- errors ([ProblemDetails]): [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)
@@ -75,14 +75,7 @@ class TemplateVariable(ModelNormal):
75
75
  validations = {
76
76
  }
77
77
 
78
- @cached_property
79
- def additional_properties_type():
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
- lazy_import()
85
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
78
+ additional_properties_type = None
86
79
 
87
80
  _nullable = False
88
81
 
@@ -35,11 +35,13 @@ def lazy_import():
35
35
  from criteo_api_retailmedia_v2024_04.model.files_variable_value import FilesVariableValue
36
36
  from criteo_api_retailmedia_v2024_04.model.hyperlink_variable_value import HyperlinkVariableValue
37
37
  from criteo_api_retailmedia_v2024_04.model.text_variable_value import TextVariableValue
38
+ from criteo_api_retailmedia_v2024_04.model.video_variable_value import VideoVariableValue
38
39
  globals()['ChoiceVariableValue'] = ChoiceVariableValue
39
40
  globals()['ColorVariableValue'] = ColorVariableValue
40
41
  globals()['FilesVariableValue'] = FilesVariableValue
41
42
  globals()['HyperlinkVariableValue'] = HyperlinkVariableValue
42
43
  globals()['TextVariableValue'] = TextVariableValue
44
+ globals()['VideoVariableValue'] = VideoVariableValue
43
45
 
44
46
 
45
47
  class TemplateVariableValue(ModelNormal):
@@ -72,14 +74,7 @@ class TemplateVariableValue(ModelNormal):
72
74
  validations = {
73
75
  }
74
76
 
75
- @cached_property
76
- def additional_properties_type():
77
- """
78
- This must be a method because a model may have properties that are
79
- of type self, this must run after the class is loaded
80
- """
81
- lazy_import()
82
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
+ additional_properties_type = None
83
78
 
84
79
  _nullable = False
85
80
 
@@ -101,6 +96,7 @@ class TemplateVariableValue(ModelNormal):
101
96
  'color_variable_value': (ColorVariableValue,), # noqa: E501
102
97
  'files_variable_value': (FilesVariableValue,), # noqa: E501
103
98
  'hyperlink_variable_value': (HyperlinkVariableValue,), # noqa: E501
99
+ 'video_variable_value': (VideoVariableValue,), # noqa: E501
104
100
  }
105
101
 
106
102
  @cached_property
@@ -115,6 +111,7 @@ class TemplateVariableValue(ModelNormal):
115
111
  'color_variable_value': 'colorVariableValue', # noqa: E501
116
112
  'files_variable_value': 'filesVariableValue', # noqa: E501
117
113
  'hyperlink_variable_value': 'hyperlinkVariableValue', # noqa: E501
114
+ 'video_variable_value': 'videoVariableValue', # noqa: E501
118
115
  }
119
116
 
120
117
  read_only_vars = {
@@ -166,6 +163,7 @@ class TemplateVariableValue(ModelNormal):
166
163
  color_variable_value (ColorVariableValue): [optional] # noqa: E501
167
164
  files_variable_value (FilesVariableValue): [optional] # noqa: E501
168
165
  hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501
166
+ video_variable_value (VideoVariableValue): [optional] # noqa: E501
169
167
  """
170
168
 
171
169
  _check_type = kwargs.pop('_check_type', True)
@@ -260,6 +258,7 @@ class TemplateVariableValue(ModelNormal):
260
258
  color_variable_value (ColorVariableValue): [optional] # noqa: E501
261
259
  files_variable_value (FilesVariableValue): [optional] # noqa: E501
262
260
  hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501
261
+ video_variable_value (VideoVariableValue): [optional] # noqa: E501
263
262
  """
264
263
 
265
264
  _check_type = kwargs.pop('_check_type', True)
@@ -60,15 +60,9 @@ class TextVariableSpecification(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
- _nullable = False
65
+ _nullable = True
72
66
 
73
67
  @cached_property
74
68
  def openapi_types():
@@ -60,15 +60,9 @@ class TextVariableValue(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
- _nullable = False
65
+ _nullable = True
72
66
 
73
67
  @cached_property
74
68
  def openapi_types():
@@ -81,7 +75,7 @@ class TextVariableValue(ModelNormal):
81
75
  and the value is attribute type.
82
76
  """
83
77
  return {
84
- 'text': (str,), # noqa: E501
78
+ 'text': (str, none_type,), # noqa: E501
85
79
  }
86
80
 
87
81
  @cached_property
@@ -100,12 +94,9 @@ class TextVariableValue(ModelNormal):
100
94
 
101
95
  @classmethod
102
96
  @convert_js_args_to_python_args
103
- def _from_openapi_data(cls, text, *args, **kwargs): # noqa: E501
97
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
98
  """TextVariableValue - a model defined in OpenAPI
105
99
 
106
- Args:
107
- text (str): The displayed text
108
-
109
100
  Keyword Args:
110
101
  _check_type (bool): if True, values for parameters in openapi_types
111
102
  will be type checked and a TypeError will be
@@ -137,6 +128,7 @@ class TextVariableValue(ModelNormal):
137
128
  Animal class but this time we won't travel
138
129
  through its discriminator because we passed in
139
130
  _visited_composed_classes = (Animal,)
131
+ text (str, none_type): The displayed text. [optional] # noqa: E501
140
132
  """
141
133
 
142
134
  _check_type = kwargs.pop('_check_type', True)
@@ -168,7 +160,6 @@ class TextVariableValue(ModelNormal):
168
160
  self._configuration = _configuration
169
161
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
162
 
171
- self.text = text
172
163
  for var_name, var_value in kwargs.items():
173
164
  if var_name not in self.attribute_map and \
174
165
  self._configuration is not None and \
@@ -189,12 +180,9 @@ class TextVariableValue(ModelNormal):
189
180
  ])
190
181
 
191
182
  @convert_js_args_to_python_args
192
- def __init__(self, text, *args, **kwargs): # noqa: E501
183
+ def __init__(self, *args, **kwargs): # noqa: E501
193
184
  """TextVariableValue - a model defined in OpenAPI
194
185
 
195
- Args:
196
- text (str): The displayed text
197
-
198
186
  Keyword Args:
199
187
  _check_type (bool): if True, values for parameters in openapi_types
200
188
  will be type checked and a TypeError will be
@@ -226,6 +214,7 @@ class TextVariableValue(ModelNormal):
226
214
  Animal class but this time we won't travel
227
215
  through its discriminator because we passed in
228
216
  _visited_composed_classes = (Animal,)
217
+ text (str, none_type): The displayed text. [optional] # noqa: E501
229
218
  """
230
219
 
231
220
  _check_type = kwargs.pop('_check_type', True)
@@ -255,7 +244,6 @@ class TextVariableValue(ModelNormal):
255
244
  self._configuration = _configuration
256
245
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
246
 
258
- self.text = text
259
247
  for var_name, var_value in kwargs.items():
260
248
  if var_name not in self.attribute_map and \
261
249
  self._configuration is not None and \
@@ -64,7 +64,14 @@ class ValueResourceInputOfRetailMediaBrandAccountCreation(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- additional_properties_type = None
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
68
75
 
69
76
  _nullable = False
70
77
 
@@ -64,9 +64,16 @@ class ValueResourceInputOfRetailMediaBrands(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- additional_properties_type = None
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
68
75
 
69
- _nullable = False
76
+ _nullable = True
70
77
 
71
78
  @cached_property
72
79
  def openapi_types():
@@ -30,8 +30,8 @@ from criteo_api_retailmedia_v2024_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_04.model.retail_media_brand_account_creation import RetailMediaBrandAccountCreation
34
- globals()['RetailMediaBrandAccountCreation'] = RetailMediaBrandAccountCreation
33
+ from criteo_api_retailmedia_v2024_04.model.external_retail_media_brand_account_creation import ExternalRetailMediaBrandAccountCreation
34
+ globals()['ExternalRetailMediaBrandAccountCreation'] = ExternalRetailMediaBrandAccountCreation
35
35
 
36
36
 
37
37
  class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
@@ -64,7 +64,14 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- additional_properties_type = None
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
68
75
 
69
76
  _nullable = False
70
77
 
@@ -81,7 +88,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
81
88
  lazy_import()
82
89
  return {
83
90
  'type': (str, none_type,), # noqa: E501
84
- 'attributes': (RetailMediaBrandAccountCreation,), # noqa: E501
91
+ 'attributes': (ExternalRetailMediaBrandAccountCreation,), # noqa: E501
85
92
  }
86
93
 
87
94
  @cached_property
@@ -136,7 +143,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
136
143
  through its discriminator because we passed in
137
144
  _visited_composed_classes = (Animal,)
138
145
  type (str, none_type): [optional] # noqa: E501
139
- attributes (RetailMediaBrandAccountCreation): [optional] # noqa: E501
146
+ attributes (ExternalRetailMediaBrandAccountCreation): [optional] # noqa: E501
140
147
  """
141
148
 
142
149
  _check_type = kwargs.pop('_check_type', True)
@@ -223,7 +230,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
223
230
  through its discriminator because we passed in
224
231
  _visited_composed_classes = (Animal,)
225
232
  type (str, none_type): [optional] # noqa: E501
226
- attributes (RetailMediaBrandAccountCreation): [optional] # noqa: E501
233
+ attributes (ExternalRetailMediaBrandAccountCreation): [optional] # noqa: E501
227
234
  """
228
235
 
229
236
  _check_type = kwargs.pop('_check_type', True)
@@ -30,8 +30,8 @@ from criteo_api_retailmedia_v2024_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_04.model.retail_media_brands import RetailMediaBrands
34
- globals()['RetailMediaBrands'] = RetailMediaBrands
33
+ from criteo_api_retailmedia_v2024_04.model.external_retail_media_brands import ExternalRetailMediaBrands
34
+ globals()['ExternalRetailMediaBrands'] = ExternalRetailMediaBrands
35
35
 
36
36
 
37
37
  class ValueResourceOfRetailMediaBrands(ModelNormal):
@@ -64,9 +64,16 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- additional_properties_type = None
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
68
75
 
69
- _nullable = False
76
+ _nullable = True
70
77
 
71
78
  @cached_property
72
79
  def openapi_types():
@@ -81,7 +88,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
81
88
  lazy_import()
82
89
  return {
83
90
  'type': (str, none_type,), # noqa: E501
84
- 'attributes': (RetailMediaBrands,), # noqa: E501
91
+ 'attributes': (ExternalRetailMediaBrands,), # noqa: E501
85
92
  }
86
93
 
87
94
  @cached_property
@@ -136,7 +143,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
136
143
  through its discriminator because we passed in
137
144
  _visited_composed_classes = (Animal,)
138
145
  type (str, none_type): [optional] # noqa: E501
139
- attributes (RetailMediaBrands): [optional] # noqa: E501
146
+ attributes (ExternalRetailMediaBrands): [optional] # noqa: E501
140
147
  """
141
148
 
142
149
  _check_type = kwargs.pop('_check_type', True)
@@ -223,7 +230,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
223
230
  through its discriminator because we passed in
224
231
  _visited_composed_classes = (Animal,)
225
232
  type (str, none_type): [optional] # noqa: E501
226
- attributes (RetailMediaBrands): [optional] # noqa: E501
233
+ attributes (ExternalRetailMediaBrands): [optional] # noqa: E501
227
234
  """
228
235
 
229
236
  _check_type = kwargs.pop('_check_type', True)
@@ -31,12 +31,12 @@ from criteo_api_retailmedia_v2024_04.exceptions import ApiAttributeError
31
31
 
32
32
  def lazy_import():
33
33
  from criteo_api_retailmedia_v2024_04.model.common_problem import CommonProblem
34
- from criteo_api_retailmedia_v2024_04.model.resource_of_retail_media_account import ResourceOfRetailMediaAccount
34
+ from criteo_api_retailmedia_v2024_04.model.value_resource_of_retail_media_brands import ValueResourceOfRetailMediaBrands
35
35
  globals()['CommonProblem'] = CommonProblem
36
- globals()['ResourceOfRetailMediaAccount'] = ResourceOfRetailMediaAccount
36
+ globals()['ValueResourceOfRetailMediaBrands'] = ValueResourceOfRetailMediaBrands
37
37
 
38
38
 
39
- class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
39
+ class ValueResourceOutcomeOfRetailMediaBrands(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -66,9 +66,16 @@ class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
66
66
  validations = {
67
67
  }
68
68
 
69
- additional_properties_type = None
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
70
77
 
71
- _nullable = False
78
+ _nullable = True
72
79
 
73
80
  @cached_property
74
81
  def openapi_types():
@@ -82,7 +89,7 @@ class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
82
89
  """
83
90
  lazy_import()
84
91
  return {
85
- 'data': (ResourceOfRetailMediaAccount,), # noqa: E501
92
+ 'data': (ValueResourceOfRetailMediaBrands,), # noqa: E501
86
93
  'warnings': ([CommonProblem], none_type,), # noqa: E501
87
94
  'errors': ([CommonProblem], none_type,), # noqa: E501
88
95
  }
@@ -108,7 +115,7 @@ class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
108
115
  @classmethod
109
116
  @convert_js_args_to_python_args
110
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
- """ResourceOutcomeOfRetailMediaAccount - a model defined in OpenAPI
118
+ """ValueResourceOutcomeOfRetailMediaBrands - a model defined in OpenAPI
112
119
 
113
120
  Keyword Args:
114
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -141,7 +148,7 @@ class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
141
148
  Animal class but this time we won't travel
142
149
  through its discriminator because we passed in
143
150
  _visited_composed_classes = (Animal,)
144
- data (ResourceOfRetailMediaAccount): [optional] # noqa: E501
151
+ data (ValueResourceOfRetailMediaBrands): [optional] # noqa: E501
145
152
  warnings ([CommonProblem], none_type): [optional] # noqa: E501
146
153
  errors ([CommonProblem], none_type): [optional] # noqa: E501
147
154
  """
@@ -196,7 +203,7 @@ class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
196
203
 
197
204
  @convert_js_args_to_python_args
198
205
  def __init__(self, *args, **kwargs): # noqa: E501
199
- """ResourceOutcomeOfRetailMediaAccount - a model defined in OpenAPI
206
+ """ValueResourceOutcomeOfRetailMediaBrands - a model defined in OpenAPI
200
207
 
201
208
  Keyword Args:
202
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -229,7 +236,7 @@ class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
229
236
  Animal class but this time we won't travel
230
237
  through its discriminator because we passed in
231
238
  _visited_composed_classes = (Animal,)
232
- data (ResourceOfRetailMediaAccount): [optional] # noqa: E501
239
+ data (ValueResourceOfRetailMediaBrands): [optional] # noqa: E501
233
240
  warnings ([CommonProblem], none_type): [optional] # noqa: E501
234
241
  errors ([CommonProblem], none_type): [optional] # noqa: E501
235
242
  """
@@ -29,12 +29,8 @@ from criteo_api_retailmedia_v2024_04.model_utils import ( # noqa: F401
29
29
  from criteo_api_retailmedia_v2024_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2024_04.model.retail_media_account import RetailMediaAccount
34
- globals()['RetailMediaAccount'] = RetailMediaAccount
35
32
 
36
-
37
- class ResourceOfRetailMediaAccount(ModelNormal):
33
+ class VideoVariableValue(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
39
35
  Ref: https://openapi-generator.tech
40
36
 
@@ -62,6 +58,12 @@ class ResourceOfRetailMediaAccount(ModelNormal):
62
58
  }
63
59
 
64
60
  validations = {
61
+ ('url',): {
62
+ 'min_length': 1,
63
+ },
64
+ ('duration',): {
65
+ 'min_length': 1,
66
+ },
65
67
  }
66
68
 
67
69
  additional_properties_type = None
@@ -78,11 +80,11 @@ class ResourceOfRetailMediaAccount(ModelNormal):
78
80
  openapi_types (dict): The key is attribute name
79
81
  and the value is attribute type.
80
82
  """
81
- lazy_import()
82
83
  return {
83
- 'attributes': (RetailMediaAccount,), # noqa: E501
84
- 'id': (str, none_type,), # noqa: E501
85
- 'type': (str, none_type,), # noqa: E501
84
+ 'url': (str,), # noqa: E501
85
+ 'width': (int,), # noqa: E501
86
+ 'height': (int,), # noqa: E501
87
+ 'duration': (str,), # noqa: E501
86
88
  }
87
89
 
88
90
  @cached_property
@@ -91,9 +93,10 @@ class ResourceOfRetailMediaAccount(ModelNormal):
91
93
 
92
94
 
93
95
  attribute_map = {
94
- 'attributes': 'attributes', # noqa: E501
95
- 'id': 'id', # noqa: E501
96
- 'type': 'type', # noqa: E501
96
+ 'url': 'url', # noqa: E501
97
+ 'width': 'width', # noqa: E501
98
+ 'height': 'height', # noqa: E501
99
+ 'duration': 'duration', # noqa: E501
97
100
  }
98
101
 
99
102
  read_only_vars = {
@@ -103,8 +106,14 @@ class ResourceOfRetailMediaAccount(ModelNormal):
103
106
 
104
107
  @classmethod
105
108
  @convert_js_args_to_python_args
106
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
- """ResourceOfRetailMediaAccount - a model defined in OpenAPI
109
+ def _from_openapi_data(cls, url, width, height, duration, *args, **kwargs): # noqa: E501
110
+ """VideoVariableValue - a model defined in OpenAPI
111
+
112
+ Args:
113
+ url (str): The vast video url
114
+ width (int): The video's width
115
+ height (int): The video's height
116
+ duration (str): The video's duration
108
117
 
109
118
  Keyword Args:
110
119
  _check_type (bool): if True, values for parameters in openapi_types
@@ -137,9 +146,6 @@ class ResourceOfRetailMediaAccount(ModelNormal):
137
146
  Animal class but this time we won't travel
138
147
  through its discriminator because we passed in
139
148
  _visited_composed_classes = (Animal,)
140
- attributes (RetailMediaAccount): [optional] # noqa: E501
141
- id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501
142
- type (str, none_type): [optional] # noqa: E501
143
149
  """
144
150
 
145
151
  _check_type = kwargs.pop('_check_type', True)
@@ -171,6 +177,10 @@ class ResourceOfRetailMediaAccount(ModelNormal):
171
177
  self._configuration = _configuration
172
178
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
179
 
180
+ self.url = url
181
+ self.width = width
182
+ self.height = height
183
+ self.duration = duration
174
184
  for var_name, var_value in kwargs.items():
175
185
  if var_name not in self.attribute_map and \
176
186
  self._configuration is not None and \
@@ -191,8 +201,14 @@ class ResourceOfRetailMediaAccount(ModelNormal):
191
201
  ])
192
202
 
193
203
  @convert_js_args_to_python_args
194
- def __init__(self, *args, **kwargs): # noqa: E501
195
- """ResourceOfRetailMediaAccount - a model defined in OpenAPI
204
+ def __init__(self, url, width, height, duration, *args, **kwargs): # noqa: E501
205
+ """VideoVariableValue - a model defined in OpenAPI
206
+
207
+ Args:
208
+ url (str): The vast video url
209
+ width (int): The video's width
210
+ height (int): The video's height
211
+ duration (str): The video's duration
196
212
 
197
213
  Keyword Args:
198
214
  _check_type (bool): if True, values for parameters in openapi_types
@@ -225,9 +241,6 @@ class ResourceOfRetailMediaAccount(ModelNormal):
225
241
  Animal class but this time we won't travel
226
242
  through its discriminator because we passed in
227
243
  _visited_composed_classes = (Animal,)
228
- attributes (RetailMediaAccount): [optional] # noqa: E501
229
- id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501
230
- type (str, none_type): [optional] # noqa: E501
231
244
  """
232
245
 
233
246
  _check_type = kwargs.pop('_check_type', True)
@@ -257,6 +270,10 @@ class ResourceOfRetailMediaAccount(ModelNormal):
257
270
  self._configuration = _configuration
258
271
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
272
 
273
+ self.url = url
274
+ self.width = width
275
+ self.height = height
276
+ self.duration = duration
260
277
  for var_name, var_value in kwargs.items():
261
278
  if var_name not in self.attribute_map and \
262
279
  self._configuration is not None and \