criteo-api-retailmedia-sdk 0.0.240404__py3-none-any.whl → 0.0.240618__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 (77) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +284 -0
  3. criteo_api_retailmedia_preview/api/campaign_api.py +1755 -448
  4. criteo_api_retailmedia_preview/api_client.py +1 -1
  5. criteo_api_retailmedia_preview/configuration.py +1 -1
  6. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keyword_model.py → add_remove_keyword_model.py} +12 -19
  7. criteo_api_retailmedia_preview/model/add_remove_keywords_model.py +262 -0
  8. criteo_api_retailmedia_preview/model/add_remove_keywords_model_request.py +262 -0
  9. criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +270 -0
  10. criteo_api_retailmedia_preview/model/approval_status_model.py +292 -0
  11. criteo_api_retailmedia_preview/model/async_accounts_report.py +39 -27
  12. criteo_api_retailmedia_preview/model/async_campaigns_report.py +24 -13
  13. criteo_api_retailmedia_preview/model/async_line_items_report.py +24 -13
  14. criteo_api_retailmedia_preview/model/audience_error.py +310 -0
  15. criteo_api_retailmedia_preview/model/audience_warning.py +312 -0
  16. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_response.py → creative_v2_list_response.py} +16 -16
  17. criteo_api_retailmedia_preview/model/{retail_media_externalv1_resource_outcome.py → creative_v2_response.py} +19 -17
  18. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_request.py → error_code_response.py} +23 -11
  19. criteo_api_retailmedia_preview/model/external_choice_variable_value.py +269 -0
  20. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model.py → external_color_variable_value.py} +11 -14
  21. criteo_api_retailmedia_preview/model/external_creative_create_model_v2.py +297 -0
  22. criteo_api_retailmedia_preview/model/external_creative_update_model_v2.py +297 -0
  23. criteo_api_retailmedia_preview/model/external_creative_v2.py +361 -0
  24. criteo_api_retailmedia_preview/model/external_files_variable_value.py +272 -0
  25. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_request.py → external_hyperlink_variable_value.py} +7 -13
  26. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers.py → external_line_item_bid_multipliers_v2.py} +41 -29
  27. criteo_api_retailmedia_preview/model/external_page_type_environment.py +293 -0
  28. criteo_api_retailmedia_preview/model/external_template_variable_value.py +309 -0
  29. criteo_api_retailmedia_preview/model/external_text_variable_value.py +263 -0
  30. criteo_api_retailmedia_preview/model/external_video_variable_value.py +293 -0
  31. criteo_api_retailmedia_preview/model/{retail_media_externalv1_input_keywords_model.py → input_keywords_model.py} +4 -16
  32. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py → json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py} +8 -8
  33. criteo_api_retailmedia_preview/model/{json_api_single_response_of_line_item_bid_multipliers.py → json_api_single_response_of_line_item_bid_multipliers_v2.py} +14 -14
  34. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keyword_data_model.py → keyword_data_model.py} +19 -37
  35. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model.py → keywords_model.py} +9 -18
  36. criteo_api_retailmedia_preview/model/keywords_model_resource.py +270 -0
  37. criteo_api_retailmedia_preview/model/keywords_model_response.py +274 -0
  38. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_request.py → line_item_bid_multipliers_v2_request.py} +8 -8
  39. criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +281 -0
  40. criteo_api_retailmedia_preview/model/line_item_product_status.py +291 -0
  41. criteo_api_retailmedia_preview/model/match_type_model.py +291 -0
  42. criteo_api_retailmedia_preview/model/negotiation_state_model.py +293 -0
  43. criteo_api_retailmedia_preview/model/product_metadata.py +269 -0
  44. criteo_api_retailmedia_preview/model/product_resource_outcome.py +266 -0
  45. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model.py → promoted_product.py} +18 -19
  46. criteo_api_retailmedia_preview/model/promoted_product_resource.py +270 -0
  47. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +262 -0
  48. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +278 -0
  49. criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model.py → proposal_status_model.py} +22 -50
  50. criteo_api_retailmedia_preview/model/proposal_status_model_resource.py +270 -0
  51. criteo_api_retailmedia_preview/model/proposal_status_model_response.py +274 -0
  52. criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers.py → resource_of_creative_v2.py} +8 -8
  53. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_resource.py → resource_of_line_item_bid_multipliers_v2.py} +17 -23
  54. criteo_api_retailmedia_preview/model/resource_outcome.py +268 -0
  55. criteo_api_retailmedia_preview/model/retail_media_account.py +6 -6
  56. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_resource.py → retail_media_contactlist_amendment.py} +16 -20
  57. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_resource.py → retail_media_contactlist_amendment_attributes.py} +34 -25
  58. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_request.py +275 -0
  59. criteo_api_retailmedia_preview/model/retail_media_contactlist_operation.py +291 -0
  60. criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model_resource.py → retail_media_contactlist_operation_response_attributes.py} +14 -16
  61. criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes_attributes.py +297 -0
  62. criteo_api_retailmedia_preview/model/review_state_model.py +294 -0
  63. criteo_api_retailmedia_preview/model/{retail_media_externalv1_problem_details.py → rmca_common_problem.py} +41 -30
  64. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bid_model.py → set_bid_model.py} +4 -10
  65. criteo_api_retailmedia_preview/model/set_bids_model.py +262 -0
  66. criteo_api_retailmedia_preview/model/set_bids_model_request.py +262 -0
  67. criteo_api_retailmedia_preview/model/set_bids_model_resource.py +270 -0
  68. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +12 -10
  69. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +24 -13
  70. criteo_api_retailmedia_preview/model/sync_line_items_report.py +24 -13
  71. criteo_api_retailmedia_preview/models/__init__.py +58 -24
  72. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/METADATA +3 -3
  73. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/RECORD +75 -41
  74. criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_response.py +0 -285
  75. criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py +0 -285
  76. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/WHEEL +0 -0
  77. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,293 @@
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
+
33
+ class ExternalVideoVariableValue(ModelNormal):
34
+ """NOTE: This class is auto generated by OpenAPI Generator.
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+
39
+ Attributes:
40
+ allowed_values (dict): The key is the tuple path to the attribute
41
+ and the for var_name this is (var_name,). The value is a dict
42
+ with a capitalized key describing the allowed value and an allowed
43
+ value. These dicts store the allowed enum values.
44
+ attribute_map (dict): The key is attribute name
45
+ and the value is json key in definition.
46
+ discriminator_value_class_map (dict): A dict to go from the discriminator
47
+ variable value to the discriminator class name.
48
+ validations (dict): The key is the tuple path to the attribute
49
+ and the for var_name this is (var_name,). The value is a dict
50
+ that stores validations for max_length, min_length, max_items,
51
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
+ inclusive_minimum, and regex.
53
+ additional_properties_type (tuple): A tuple of classes accepted
54
+ as additional properties values.
55
+ """
56
+
57
+ allowed_values = {
58
+ }
59
+
60
+ validations = {
61
+ ('url',): {
62
+ 'min_length': 1,
63
+ },
64
+ ('duration',): {
65
+ 'min_length': 1,
66
+ },
67
+ }
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
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ return {
90
+ 'url': (str,), # noqa: E501
91
+ 'width': (int,), # noqa: E501
92
+ 'height': (int,), # noqa: E501
93
+ 'duration': (str,), # noqa: E501
94
+ }
95
+
96
+ @cached_property
97
+ def discriminator():
98
+ return None
99
+
100
+
101
+ attribute_map = {
102
+ 'url': 'url', # noqa: E501
103
+ 'width': 'width', # noqa: E501
104
+ 'height': 'height', # noqa: E501
105
+ 'duration': 'duration', # noqa: E501
106
+ }
107
+
108
+ read_only_vars = {
109
+ }
110
+
111
+ _composed_schemas = {}
112
+
113
+ @classmethod
114
+ @convert_js_args_to_python_args
115
+ def _from_openapi_data(cls, url, width, height, duration, *args, **kwargs): # noqa: E501
116
+ """ExternalVideoVariableValue - a model defined in OpenAPI
117
+
118
+ Args:
119
+ url (str): The vast video url
120
+ width (int): The video's width
121
+ height (int): The video's height
122
+ duration (str): The video's duration
123
+
124
+ Keyword Args:
125
+ _check_type (bool): if True, values for parameters in openapi_types
126
+ will be type checked and a TypeError will be
127
+ raised if the wrong type is input.
128
+ Defaults to True
129
+ _path_to_item (tuple/list): This is a list of keys or values to
130
+ drill down to the model in received_data
131
+ when deserializing a response
132
+ _spec_property_naming (bool): True if the variable names in the input data
133
+ are serialized names, as specified in the OpenAPI document.
134
+ False if the variable names in the input data
135
+ are pythonic names, e.g. snake case (default)
136
+ _configuration (Configuration): the instance to use when
137
+ deserializing a file_type parameter.
138
+ If passed, type conversion is attempted
139
+ If omitted no type conversion is done.
140
+ _visited_composed_classes (tuple): This stores a tuple of
141
+ classes that we have traveled through so that
142
+ if we see that class again we will not use its
143
+ discriminator again.
144
+ When traveling through a discriminator, the
145
+ composed schema that is
146
+ is traveled through is added to this set.
147
+ For example if Animal has a discriminator
148
+ petType and we pass in "Dog", and the class Dog
149
+ allOf includes Animal, we move through Animal
150
+ once using the discriminator, and pick Dog.
151
+ Then in Dog, we will make an instance of the
152
+ Animal class but this time we won't travel
153
+ through its discriminator because we passed in
154
+ _visited_composed_classes = (Animal,)
155
+ """
156
+
157
+ _check_type = kwargs.pop('_check_type', True)
158
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
159
+ _path_to_item = kwargs.pop('_path_to_item', ())
160
+ _configuration = kwargs.pop('_configuration', None)
161
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
162
+
163
+ self = super(OpenApiModel, cls).__new__(cls)
164
+
165
+ if args:
166
+ for arg in args:
167
+ if isinstance(arg, dict):
168
+ kwargs.update(arg)
169
+ else:
170
+ raise ApiTypeError(
171
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
172
+ args,
173
+ self.__class__.__name__,
174
+ ),
175
+ path_to_item=_path_to_item,
176
+ valid_classes=(self.__class__,),
177
+ )
178
+
179
+ self._data_store = {}
180
+ self._check_type = _check_type
181
+ self._spec_property_naming = _spec_property_naming
182
+ self._path_to_item = _path_to_item
183
+ self._configuration = _configuration
184
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
185
+
186
+ self.url = url
187
+ self.width = width
188
+ self.height = height
189
+ self.duration = duration
190
+ for var_name, var_value in kwargs.items():
191
+ if var_name not in self.attribute_map and \
192
+ self._configuration is not None and \
193
+ self._configuration.discard_unknown_keys and \
194
+ self.additional_properties_type is None:
195
+ # discard variable.
196
+ continue
197
+ setattr(self, var_name, var_value)
198
+ return self
199
+
200
+ required_properties = set([
201
+ '_data_store',
202
+ '_check_type',
203
+ '_spec_property_naming',
204
+ '_path_to_item',
205
+ '_configuration',
206
+ '_visited_composed_classes',
207
+ ])
208
+
209
+ @convert_js_args_to_python_args
210
+ def __init__(self, url, width, height, duration, *args, **kwargs): # noqa: E501
211
+ """ExternalVideoVariableValue - a model defined in OpenAPI
212
+
213
+ Args:
214
+ url (str): The vast video url
215
+ width (int): The video's width
216
+ height (int): The video's height
217
+ duration (str): The video's duration
218
+
219
+ Keyword Args:
220
+ _check_type (bool): if True, values for parameters in openapi_types
221
+ will be type checked and a TypeError will be
222
+ raised if the wrong type is input.
223
+ Defaults to True
224
+ _path_to_item (tuple/list): This is a list of keys or values to
225
+ drill down to the model in received_data
226
+ when deserializing a response
227
+ _spec_property_naming (bool): True if the variable names in the input data
228
+ are serialized names, as specified in the OpenAPI document.
229
+ False if the variable names in the input data
230
+ are pythonic names, e.g. snake case (default)
231
+ _configuration (Configuration): the instance to use when
232
+ deserializing a file_type parameter.
233
+ If passed, type conversion is attempted
234
+ If omitted no type conversion is done.
235
+ _visited_composed_classes (tuple): This stores a tuple of
236
+ classes that we have traveled through so that
237
+ if we see that class again we will not use its
238
+ discriminator again.
239
+ When traveling through a discriminator, the
240
+ composed schema that is
241
+ is traveled through is added to this set.
242
+ For example if Animal has a discriminator
243
+ petType and we pass in "Dog", and the class Dog
244
+ allOf includes Animal, we move through Animal
245
+ once using the discriminator, and pick Dog.
246
+ Then in Dog, we will make an instance of the
247
+ Animal class but this time we won't travel
248
+ through its discriminator because we passed in
249
+ _visited_composed_classes = (Animal,)
250
+ """
251
+
252
+ _check_type = kwargs.pop('_check_type', True)
253
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
254
+ _path_to_item = kwargs.pop('_path_to_item', ())
255
+ _configuration = kwargs.pop('_configuration', None)
256
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
257
+
258
+ if args:
259
+ for arg in args:
260
+ if isinstance(arg, dict):
261
+ kwargs.update(arg)
262
+ else:
263
+ raise ApiTypeError(
264
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
265
+ args,
266
+ self.__class__.__name__,
267
+ ),
268
+ path_to_item=_path_to_item,
269
+ valid_classes=(self.__class__,),
270
+ )
271
+
272
+ self._data_store = {}
273
+ self._check_type = _check_type
274
+ self._spec_property_naming = _spec_property_naming
275
+ self._path_to_item = _path_to_item
276
+ self._configuration = _configuration
277
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
278
+
279
+ self.url = url
280
+ self.width = width
281
+ self.height = height
282
+ self.duration = duration
283
+ for var_name, var_value in kwargs.items():
284
+ if var_name not in self.attribute_map and \
285
+ self._configuration is not None and \
286
+ self._configuration.discard_unknown_keys and \
287
+ self.additional_properties_type is None:
288
+ # discard variable.
289
+ continue
290
+ setattr(self, var_name, var_value)
291
+ if var_name in self.read_only_vars:
292
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
293
+ 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 RetailMediaExternalv1InputKeywordsModel(ModelNormal):
33
+ class InputKeywordsModel(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -58,21 +58,9 @@ class RetailMediaExternalv1InputKeywordsModel(ModelNormal):
58
58
  }
59
59
 
60
60
  validations = {
61
- ('negative_broad',): {
62
- },
63
- ('negative_exact',): {
64
- },
65
- ('positive_exact',): {
66
- },
67
61
  }
68
62
 
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
63
+ additional_properties_type = None
76
64
 
77
65
  _nullable = False
78
66
 
@@ -111,7 +99,7 @@ class RetailMediaExternalv1InputKeywordsModel(ModelNormal):
111
99
  @classmethod
112
100
  @convert_js_args_to_python_args
113
101
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """RetailMediaExternalv1InputKeywordsModel - a model defined in OpenAPI
102
+ """InputKeywordsModel - a model defined in OpenAPI
115
103
 
116
104
  Keyword Args:
117
105
  _check_type (bool): if True, values for parameters in openapi_types
@@ -199,7 +187,7 @@ class RetailMediaExternalv1InputKeywordsModel(ModelNormal):
199
187
 
200
188
  @convert_js_args_to_python_args
201
189
  def __init__(self, *args, **kwargs): # noqa: E501
202
- """RetailMediaExternalv1InputKeywordsModel - a model defined in OpenAPI
190
+ """InputKeywordsModel - a model defined in OpenAPI
203
191
 
204
192
  Keyword Args:
205
193
  _check_type (bool): if True, values for parameters in openapi_types
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.line_item_bid_multipliers import LineItemBidMultipliers
34
- globals()['LineItemBidMultipliers'] = LineItemBidMultipliers
33
+ from criteo_api_retailmedia_preview.model.external_line_item_bid_multipliers_v2 import ExternalLineItemBidMultipliersV2
34
+ globals()['ExternalLineItemBidMultipliersV2'] = ExternalLineItemBidMultipliersV2
35
35
 
36
36
 
37
- class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers(ModelNormal):
37
+ class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -89,7 +89,7 @@ class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers
89
89
  return {
90
90
  'id': (str,), # noqa: E501
91
91
  'type': (str,), # noqa: E501
92
- 'attributes': (LineItemBidMultipliers,), # noqa: E501
92
+ 'attributes': (ExternalLineItemBidMultipliersV2,), # noqa: E501
93
93
  }
94
94
 
95
95
  @cached_property
@@ -111,7 +111,7 @@ class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers
111
111
  @classmethod
112
112
  @convert_js_args_to_python_args
113
113
  def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501
114
- """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - a model defined in OpenAPI
114
+ """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 - a model defined in OpenAPI
115
115
 
116
116
  Args:
117
117
  id (str):
@@ -148,7 +148,7 @@ class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers
148
148
  Animal class but this time we won't travel
149
149
  through its discriminator because we passed in
150
150
  _visited_composed_classes = (Animal,)
151
- attributes (LineItemBidMultipliers): [optional] # noqa: E501
151
+ attributes (ExternalLineItemBidMultipliersV2): [optional] # noqa: E501
152
152
  """
153
153
 
154
154
  _check_type = kwargs.pop('_check_type', True)
@@ -203,7 +203,7 @@ class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers
203
203
 
204
204
  @convert_js_args_to_python_args
205
205
  def __init__(self, id, type, *args, **kwargs): # noqa: E501
206
- """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - a model defined in OpenAPI
206
+ """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 - a model defined in OpenAPI
207
207
 
208
208
  Args:
209
209
  id (str):
@@ -240,7 +240,7 @@ class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers
240
240
  Animal class but this time we won't travel
241
241
  through its discriminator because we passed in
242
242
  _visited_composed_classes = (Animal,)
243
- attributes (LineItemBidMultipliers): [optional] # noqa: E501
243
+ attributes (ExternalLineItemBidMultipliersV2): [optional] # noqa: E501
244
244
  """
245
245
 
246
246
  _check_type = kwargs.pop('_check_type', True)
@@ -32,13 +32,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
32
32
  def lazy_import():
33
33
  from criteo_api_retailmedia_preview.model.common_error import CommonError
34
34
  from criteo_api_retailmedia_preview.model.common_warning import CommonWarning
35
- from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers import JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers
35
+ from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2 import JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2
36
36
  globals()['CommonError'] = CommonError
37
37
  globals()['CommonWarning'] = CommonWarning
38
- globals()['JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers'] = JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers
38
+ globals()['JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2'] = JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2
39
39
 
40
40
 
41
- class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal):
41
+ class JsonApiSingleResponseOfLineItemBidMultipliersV2(ModelNormal):
42
42
  """NOTE: This class is auto generated by OpenAPI Generator.
43
43
  Ref: https://openapi-generator.tech
44
44
 
@@ -91,9 +91,9 @@ class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal):
91
91
  """
92
92
  lazy_import()
93
93
  return {
94
- 'data': (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers,), # noqa: E501
95
- 'errors': ([CommonError],), # noqa: E501
96
- 'warnings': ([CommonWarning],), # noqa: E501
94
+ 'data': (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2,), # noqa: E501
95
+ 'errors': ([CommonError], none_type,), # noqa: E501
96
+ 'warnings': ([CommonWarning], none_type,), # noqa: E501
97
97
  }
98
98
 
99
99
  @cached_property
@@ -115,10 +115,10 @@ class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal):
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
117
  def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
118
- """JsonApiSingleResponseOfLineItemBidMultipliers - a model defined in OpenAPI
118
+ """JsonApiSingleResponseOfLineItemBidMultipliersV2 - a model defined in OpenAPI
119
119
 
120
120
  Args:
121
- data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers):
121
+ data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2):
122
122
 
123
123
  Keyword Args:
124
124
  _check_type (bool): if True, values for parameters in openapi_types
@@ -151,8 +151,8 @@ class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal):
151
151
  Animal class but this time we won't travel
152
152
  through its discriminator because we passed in
153
153
  _visited_composed_classes = (Animal,)
154
- errors ([CommonError]): [optional] # noqa: E501
155
- warnings ([CommonWarning]): [optional] # noqa: E501
154
+ errors ([CommonError], none_type): [optional] # noqa: E501
155
+ warnings ([CommonWarning], none_type): [optional] # noqa: E501
156
156
  """
157
157
 
158
158
  _check_type = kwargs.pop('_check_type', True)
@@ -206,10 +206,10 @@ class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal):
206
206
 
207
207
  @convert_js_args_to_python_args
208
208
  def __init__(self, data, *args, **kwargs): # noqa: E501
209
- """JsonApiSingleResponseOfLineItemBidMultipliers - a model defined in OpenAPI
209
+ """JsonApiSingleResponseOfLineItemBidMultipliersV2 - a model defined in OpenAPI
210
210
 
211
211
  Args:
212
- data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers):
212
+ data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2):
213
213
 
214
214
  Keyword Args:
215
215
  _check_type (bool): if True, values for parameters in openapi_types
@@ -242,8 +242,8 @@ class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal):
242
242
  Animal class but this time we won't travel
243
243
  through its discriminator because we passed in
244
244
  _visited_composed_classes = (Animal,)
245
- errors ([CommonError]): [optional] # noqa: E501
246
- warnings ([CommonWarning]): [optional] # noqa: E501
245
+ errors ([CommonError], none_type): [optional] # noqa: E501
246
+ warnings ([CommonWarning], none_type): [optional] # noqa: E501
247
247
  """
248
248
 
249
249
  _check_type = kwargs.pop('_check_type', True)
@@ -30,11 +30,15 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.retail_media_externalv1_input_keywords_model import RetailMediaExternalv1InputKeywordsModel
34
- globals()['RetailMediaExternalv1InputKeywordsModel'] = RetailMediaExternalv1InputKeywordsModel
33
+ from criteo_api_retailmedia_preview.model.input_keywords_model import InputKeywordsModel
34
+ from criteo_api_retailmedia_preview.model.match_type_model import MatchTypeModel
35
+ from criteo_api_retailmedia_preview.model.review_state_model import ReviewStateModel
36
+ globals()['InputKeywordsModel'] = InputKeywordsModel
37
+ globals()['MatchTypeModel'] = MatchTypeModel
38
+ globals()['ReviewStateModel'] = ReviewStateModel
35
39
 
36
40
 
37
- class RetailMediaExternalv1KeywordDataModel(ModelNormal):
41
+ class KeywordDataModel(ModelNormal):
38
42
  """NOTE: This class is auto generated by OpenAPI Generator.
39
43
  Ref: https://openapi-generator.tech
40
44
 
@@ -59,34 +63,12 @@ class RetailMediaExternalv1KeywordDataModel(ModelNormal):
59
63
  """
60
64
 
61
65
  allowed_values = {
62
- ('review_state',): {
63
- 'None': None,
64
- 'INREVIEW': "InReview",
65
- 'RECOMMENDED': "Recommended",
66
- 'APPROVED': "Approved",
67
- 'AUTOAPPROVED': "AutoApproved",
68
- 'REJECTED': "Rejected",
69
- 'AUTOREJECTED': "AutoRejected",
70
- },
71
- ('match_type',): {
72
- 'None': None,
73
- 'POSITIVEEXACTMATCH': "PositiveExactMatch",
74
- 'NEGATIVEEXACTMATCH': "NegativeExactMatch",
75
- 'NEGATIVEBROADMATCH': "NegativeBroadMatch",
76
- },
77
66
  }
78
67
 
79
68
  validations = {
80
69
  }
81
70
 
82
- @cached_property
83
- def additional_properties_type():
84
- """
85
- This must be a method because a model may have properties that are
86
- of type self, this must run after the class is loaded
87
- """
88
- lazy_import()
89
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
71
+ additional_properties_type = None
90
72
 
91
73
  _nullable = False
92
74
 
@@ -102,10 +84,10 @@ class RetailMediaExternalv1KeywordDataModel(ModelNormal):
102
84
  """
103
85
  lazy_import()
104
86
  return {
105
- 'review_state': (str, none_type,), # noqa: E501
106
- 'match_type': (str, none_type,), # noqa: E501
87
+ 'review_state': (ReviewStateModel,), # noqa: E501
88
+ 'match_type': (MatchTypeModel,), # noqa: E501
107
89
  'bid': (float, none_type,), # noqa: E501
108
- 'input_keywords': (RetailMediaExternalv1InputKeywordsModel,), # noqa: E501
90
+ 'input_keywords': (InputKeywordsModel,), # noqa: E501
109
91
  'created_at': (datetime, none_type,), # noqa: E501
110
92
  'updated_at': (datetime, none_type,), # noqa: E501
111
93
  }
@@ -132,7 +114,7 @@ class RetailMediaExternalv1KeywordDataModel(ModelNormal):
132
114
  @classmethod
133
115
  @convert_js_args_to_python_args
134
116
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
135
- """RetailMediaExternalv1KeywordDataModel - a model defined in OpenAPI
117
+ """KeywordDataModel - a model defined in OpenAPI
136
118
 
137
119
  Keyword Args:
138
120
  _check_type (bool): if True, values for parameters in openapi_types
@@ -165,10 +147,10 @@ class RetailMediaExternalv1KeywordDataModel(ModelNormal):
165
147
  Animal class but this time we won't travel
166
148
  through its discriminator because we passed in
167
149
  _visited_composed_classes = (Animal,)
168
- review_state (str, none_type): [optional] # noqa: E501
169
- match_type (str, none_type): [optional] # noqa: E501
150
+ review_state (ReviewStateModel): [optional] # noqa: E501
151
+ match_type (MatchTypeModel): [optional] # noqa: E501
170
152
  bid (float, none_type): [optional] # noqa: E501
171
- input_keywords (RetailMediaExternalv1InputKeywordsModel): [optional] # noqa: E501
153
+ input_keywords (InputKeywordsModel): [optional] # noqa: E501
172
154
  created_at (datetime, none_type): [optional] # noqa: E501
173
155
  updated_at (datetime, none_type): [optional] # noqa: E501
174
156
  """
@@ -223,7 +205,7 @@ class RetailMediaExternalv1KeywordDataModel(ModelNormal):
223
205
 
224
206
  @convert_js_args_to_python_args
225
207
  def __init__(self, *args, **kwargs): # noqa: E501
226
- """RetailMediaExternalv1KeywordDataModel - a model defined in OpenAPI
208
+ """KeywordDataModel - a model defined in OpenAPI
227
209
 
228
210
  Keyword Args:
229
211
  _check_type (bool): if True, values for parameters in openapi_types
@@ -256,10 +238,10 @@ class RetailMediaExternalv1KeywordDataModel(ModelNormal):
256
238
  Animal class but this time we won't travel
257
239
  through its discriminator because we passed in
258
240
  _visited_composed_classes = (Animal,)
259
- review_state (str, none_type): [optional] # noqa: E501
260
- match_type (str, none_type): [optional] # noqa: E501
241
+ review_state (ReviewStateModel): [optional] # noqa: E501
242
+ match_type (MatchTypeModel): [optional] # noqa: E501
261
243
  bid (float, none_type): [optional] # noqa: E501
262
- input_keywords (RetailMediaExternalv1InputKeywordsModel): [optional] # noqa: E501
244
+ input_keywords (InputKeywordsModel): [optional] # noqa: E501
263
245
  created_at (datetime, none_type): [optional] # noqa: E501
264
246
  updated_at (datetime, none_type): [optional] # noqa: E501
265
247
  """
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.retail_media_externalv1_keyword_data_model import RetailMediaExternalv1KeywordDataModel
34
- globals()['RetailMediaExternalv1KeywordDataModel'] = RetailMediaExternalv1KeywordDataModel
33
+ from criteo_api_retailmedia_preview.model.keyword_data_model import KeywordDataModel
34
+ globals()['KeywordDataModel'] = KeywordDataModel
35
35
 
36
36
 
37
- class RetailMediaExternalv1KeywordsModel(ModelNormal):
37
+ class KeywordsModel(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -62,18 +62,9 @@ class RetailMediaExternalv1KeywordsModel(ModelNormal):
62
62
  }
63
63
 
64
64
  validations = {
65
- ('rank',): {
66
- },
67
65
  }
68
66
 
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
67
+ additional_properties_type = None
77
68
 
78
69
  _nullable = False
79
70
 
@@ -89,7 +80,7 @@ class RetailMediaExternalv1KeywordsModel(ModelNormal):
89
80
  """
90
81
  lazy_import()
91
82
  return {
92
- 'keywords': (RetailMediaExternalv1KeywordDataModel,), # noqa: E501
83
+ 'keywords': ({str: (KeywordDataModel,)}, none_type,), # noqa: E501
93
84
  'rank': ([str], none_type,), # noqa: E501
94
85
  }
95
86
 
@@ -111,7 +102,7 @@ class RetailMediaExternalv1KeywordsModel(ModelNormal):
111
102
  @classmethod
112
103
  @convert_js_args_to_python_args
113
104
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """RetailMediaExternalv1KeywordsModel - a model defined in OpenAPI
105
+ """KeywordsModel - a model defined in OpenAPI
115
106
 
116
107
  Keyword Args:
117
108
  _check_type (bool): if True, values for parameters in openapi_types
@@ -144,7 +135,7 @@ class RetailMediaExternalv1KeywordsModel(ModelNormal):
144
135
  Animal class but this time we won't travel
145
136
  through its discriminator because we passed in
146
137
  _visited_composed_classes = (Animal,)
147
- keywords (RetailMediaExternalv1KeywordDataModel): [optional] # noqa: E501
138
+ keywords ({str: (KeywordDataModel,)}, none_type): [optional] # noqa: E501
148
139
  rank ([str], none_type): [optional] # noqa: E501
149
140
  """
150
141
 
@@ -198,7 +189,7 @@ class RetailMediaExternalv1KeywordsModel(ModelNormal):
198
189
 
199
190
  @convert_js_args_to_python_args
200
191
  def __init__(self, *args, **kwargs): # noqa: E501
201
- """RetailMediaExternalv1KeywordsModel - a model defined in OpenAPI
192
+ """KeywordsModel - a model defined in OpenAPI
202
193
 
203
194
  Keyword Args:
204
195
  _check_type (bool): if True, values for parameters in openapi_types
@@ -231,7 +222,7 @@ class RetailMediaExternalv1KeywordsModel(ModelNormal):
231
222
  Animal class but this time we won't travel
232
223
  through its discriminator because we passed in
233
224
  _visited_composed_classes = (Animal,)
234
- keywords (RetailMediaExternalv1KeywordDataModel): [optional] # noqa: E501
225
+ keywords ({str: (KeywordDataModel,)}, none_type): [optional] # noqa: E501
235
226
  rank ([str], none_type): [optional] # noqa: E501
236
227
  """
237
228