criteo-api-retailmedia-sdk 0.0.240404__py3-none-any.whl → 0.0.240515__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.
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.240515.dist-info}/METADATA +3 -3
  73. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240515.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.240515.dist-info}/WHEEL +0 -0
  77. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,268 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: Preview
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
+ ApiTypeError,
16
+ ModelComposed,
17
+ ModelNormal,
18
+ ModelSimple,
19
+ cached_property,
20
+ change_keys_js_to_python,
21
+ convert_js_args_to_python_args,
22
+ date,
23
+ datetime,
24
+ file_type,
25
+ none_type,
26
+ validate_get_composed_info,
27
+ OpenApiModel
28
+ )
29
+ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
+
31
+
32
+ def lazy_import():
33
+ from criteo_api_retailmedia_preview.model.rmca_common_problem import RmcaCommonProblem
34
+ globals()['RmcaCommonProblem'] = RmcaCommonProblem
35
+
36
+
37
+ class ResourceOutcome(ModelNormal):
38
+ """NOTE: This class is auto generated by OpenAPI Generator.
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+
43
+ Attributes:
44
+ allowed_values (dict): The key is the tuple path to the attribute
45
+ and the for var_name this is (var_name,). The value is a dict
46
+ with a capitalized key describing the allowed value and an allowed
47
+ value. These dicts store the allowed enum values.
48
+ attribute_map (dict): The key is attribute name
49
+ and the value is json key in definition.
50
+ discriminator_value_class_map (dict): A dict to go from the discriminator
51
+ variable value to the discriminator class name.
52
+ validations (dict): The key is the tuple path to the attribute
53
+ and the for var_name this is (var_name,). The value is a dict
54
+ that stores validations for max_length, min_length, max_items,
55
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
+ inclusive_minimum, and regex.
57
+ additional_properties_type (tuple): A tuple of classes accepted
58
+ as additional properties values.
59
+ """
60
+
61
+ allowed_values = {
62
+ }
63
+
64
+ validations = {
65
+ }
66
+
67
+ additional_properties_type = None
68
+
69
+ _nullable = False
70
+
71
+ @cached_property
72
+ def openapi_types():
73
+ """
74
+ This must be a method because a model may have properties that are
75
+ of type self, this must run after the class is loaded
76
+
77
+ Returns
78
+ openapi_types (dict): The key is attribute name
79
+ and the value is attribute type.
80
+ """
81
+ lazy_import()
82
+ return {
83
+ 'errors': ([RmcaCommonProblem], none_type,), # noqa: E501
84
+ 'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501
85
+ }
86
+
87
+ @cached_property
88
+ def discriminator():
89
+ return None
90
+
91
+
92
+ attribute_map = {
93
+ 'errors': 'errors', # noqa: E501
94
+ 'warnings': 'warnings', # noqa: E501
95
+ }
96
+
97
+ read_only_vars = {
98
+ 'errors', # noqa: E501
99
+ 'warnings', # noqa: E501
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
+ """ResourceOutcome - a model defined in OpenAPI
108
+
109
+ Keyword Args:
110
+ _check_type (bool): if True, values for parameters in openapi_types
111
+ will be type checked and a TypeError will be
112
+ raised if the wrong type is input.
113
+ Defaults to True
114
+ _path_to_item (tuple/list): This is a list of keys or values to
115
+ drill down to the model in received_data
116
+ when deserializing a response
117
+ _spec_property_naming (bool): True if the variable names in the input data
118
+ are serialized names, as specified in the OpenAPI document.
119
+ False if the variable names in the input data
120
+ are pythonic names, e.g. snake case (default)
121
+ _configuration (Configuration): the instance to use when
122
+ deserializing a file_type parameter.
123
+ If passed, type conversion is attempted
124
+ If omitted no type conversion is done.
125
+ _visited_composed_classes (tuple): This stores a tuple of
126
+ classes that we have traveled through so that
127
+ if we see that class again we will not use its
128
+ discriminator again.
129
+ When traveling through a discriminator, the
130
+ composed schema that is
131
+ is traveled through is added to this set.
132
+ For example if Animal has a discriminator
133
+ petType and we pass in "Dog", and the class Dog
134
+ allOf includes Animal, we move through Animal
135
+ once using the discriminator, and pick Dog.
136
+ Then in Dog, we will make an instance of the
137
+ Animal class but this time we won't travel
138
+ through its discriminator because we passed in
139
+ _visited_composed_classes = (Animal,)
140
+ errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
141
+ warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
142
+ """
143
+
144
+ _check_type = kwargs.pop('_check_type', True)
145
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
146
+ _path_to_item = kwargs.pop('_path_to_item', ())
147
+ _configuration = kwargs.pop('_configuration', None)
148
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
149
+
150
+ self = super(OpenApiModel, cls).__new__(cls)
151
+
152
+ if args:
153
+ for arg in args:
154
+ if isinstance(arg, dict):
155
+ kwargs.update(arg)
156
+ else:
157
+ raise ApiTypeError(
158
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
159
+ args,
160
+ self.__class__.__name__,
161
+ ),
162
+ path_to_item=_path_to_item,
163
+ valid_classes=(self.__class__,),
164
+ )
165
+
166
+ self._data_store = {}
167
+ self._check_type = _check_type
168
+ self._spec_property_naming = _spec_property_naming
169
+ self._path_to_item = _path_to_item
170
+ self._configuration = _configuration
171
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172
+
173
+ for var_name, var_value in kwargs.items():
174
+ if var_name not in self.attribute_map and \
175
+ self._configuration is not None and \
176
+ self._configuration.discard_unknown_keys and \
177
+ self.additional_properties_type is None:
178
+ # discard variable.
179
+ continue
180
+ setattr(self, var_name, var_value)
181
+ return self
182
+
183
+ required_properties = set([
184
+ '_data_store',
185
+ '_check_type',
186
+ '_spec_property_naming',
187
+ '_path_to_item',
188
+ '_configuration',
189
+ '_visited_composed_classes',
190
+ ])
191
+
192
+ @convert_js_args_to_python_args
193
+ def __init__(self, *args, **kwargs): # noqa: E501
194
+ """ResourceOutcome - a model defined in OpenAPI
195
+
196
+ Keyword Args:
197
+ _check_type (bool): if True, values for parameters in openapi_types
198
+ will be type checked and a TypeError will be
199
+ raised if the wrong type is input.
200
+ Defaults to True
201
+ _path_to_item (tuple/list): This is a list of keys or values to
202
+ drill down to the model in received_data
203
+ when deserializing a response
204
+ _spec_property_naming (bool): True if the variable names in the input data
205
+ are serialized names, as specified in the OpenAPI document.
206
+ False if the variable names in the input data
207
+ are pythonic names, e.g. snake case (default)
208
+ _configuration (Configuration): the instance to use when
209
+ deserializing a file_type parameter.
210
+ If passed, type conversion is attempted
211
+ If omitted no type conversion is done.
212
+ _visited_composed_classes (tuple): This stores a tuple of
213
+ classes that we have traveled through so that
214
+ if we see that class again we will not use its
215
+ discriminator again.
216
+ When traveling through a discriminator, the
217
+ composed schema that is
218
+ is traveled through is added to this set.
219
+ For example if Animal has a discriminator
220
+ petType and we pass in "Dog", and the class Dog
221
+ allOf includes Animal, we move through Animal
222
+ once using the discriminator, and pick Dog.
223
+ Then in Dog, we will make an instance of the
224
+ Animal class but this time we won't travel
225
+ through its discriminator because we passed in
226
+ _visited_composed_classes = (Animal,)
227
+ errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
228
+ warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
229
+ """
230
+
231
+ _check_type = kwargs.pop('_check_type', True)
232
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
233
+ _path_to_item = kwargs.pop('_path_to_item', ())
234
+ _configuration = kwargs.pop('_configuration', None)
235
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
236
+
237
+ if args:
238
+ for arg in args:
239
+ if isinstance(arg, dict):
240
+ kwargs.update(arg)
241
+ else:
242
+ raise ApiTypeError(
243
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
244
+ args,
245
+ self.__class__.__name__,
246
+ ),
247
+ path_to_item=_path_to_item,
248
+ valid_classes=(self.__class__,),
249
+ )
250
+
251
+ self._data_store = {}
252
+ self._check_type = _check_type
253
+ self._spec_property_naming = _spec_property_naming
254
+ self._path_to_item = _path_to_item
255
+ self._configuration = _configuration
256
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
+
258
+ for var_name, var_value in kwargs.items():
259
+ if var_name not in self.attribute_map and \
260
+ self._configuration is not None and \
261
+ self._configuration.discard_unknown_keys and \
262
+ self.additional_properties_type is None:
263
+ # discard variable.
264
+ continue
265
+ setattr(self, var_name, var_value)
266
+ if var_name in self.read_only_vars:
267
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
268
+ f"class with read only attributes.")
@@ -91,8 +91,8 @@ class RetailMediaAccount(ModelNormal):
91
91
  'company_name': (str, none_type,), # noqa: E501
92
92
  'type': (str, none_type,), # noqa: E501
93
93
  'sub_type': (str, none_type,), # noqa: E501
94
- 'country_ids': ([int], none_type,), # noqa: E501
95
- 'currency_id': (int, none_type,), # noqa: E501
94
+ 'country_ids': ([str], none_type,), # noqa: E501
95
+ 'currency_id': (str, none_type,), # noqa: E501
96
96
  'parent_account_label': (str, none_type,), # noqa: E501
97
97
  'time_zone': (str, none_type,), # noqa: E501
98
98
  }
@@ -158,8 +158,8 @@ class RetailMediaAccount(ModelNormal):
158
158
  company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
159
159
  type (str, none_type): Type for the account. [optional] # noqa: E501
160
160
  sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
161
- country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
162
- currency_id (int, none_type): the currency for the account. [optional] # noqa: E501
161
+ country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
162
+ currency_id (str, none_type): the currency for the account. [optional] # noqa: E501
163
163
  parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501
164
164
  time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
165
165
  """
@@ -251,8 +251,8 @@ class RetailMediaAccount(ModelNormal):
251
251
  company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
252
252
  type (str, none_type): Type for the account. [optional] # noqa: E501
253
253
  sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
254
- country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
255
- currency_id (int, none_type): the currency for the account. [optional] # noqa: E501
254
+ country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
255
+ currency_id (str, none_type): the currency for the account. [optional] # noqa: E501
256
256
  parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501
257
257
  time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
258
258
  """
@@ -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_set_bids_model import RetailMediaExternalv1SetBidsModel
34
- globals()['RetailMediaExternalv1SetBidsModel'] = RetailMediaExternalv1SetBidsModel
33
+ from criteo_api_retailmedia_preview.model.retail_media_contactlist_amendment_attributes import RetailMediaContactlistAmendmentAttributes
34
+ globals()['RetailMediaContactlistAmendmentAttributes'] = RetailMediaContactlistAmendmentAttributes
35
35
 
36
36
 
37
- class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
37
+ class RetailMediaContactlistAmendment(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,9 +87,8 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'type': (str,), # noqa: E501
91
- 'id': (str, none_type,), # noqa: E501
92
- 'attributes': (RetailMediaExternalv1SetBidsModel,), # noqa: E501
90
+ 'attributes': (RetailMediaContactlistAmendmentAttributes,), # noqa: E501
91
+ 'type': (str, none_type,), # noqa: E501
93
92
  }
94
93
 
95
94
  @cached_property
@@ -98,9 +97,8 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
98
97
 
99
98
 
100
99
  attribute_map = {
101
- 'type': 'type', # noqa: E501
102
- 'id': 'id', # noqa: E501
103
100
  'attributes': 'attributes', # noqa: E501
101
+ 'type': 'type', # noqa: E501
104
102
  }
105
103
 
106
104
  read_only_vars = {
@@ -110,11 +108,11 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
110
108
 
111
109
  @classmethod
112
110
  @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501
114
- """RetailMediaExternalv1SetBidsModelResource - a model defined in OpenAPI
111
+ def _from_openapi_data(cls, attributes, *args, **kwargs): # noqa: E501
112
+ """RetailMediaContactlistAmendment - a model defined in OpenAPI
115
113
 
116
114
  Args:
117
- type (str):
115
+ attributes (RetailMediaContactlistAmendmentAttributes):
118
116
 
119
117
  Keyword Args:
120
118
  _check_type (bool): if True, values for parameters in openapi_types
@@ -147,8 +145,7 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
147
145
  Animal class but this time we won't travel
148
146
  through its discriminator because we passed in
149
147
  _visited_composed_classes = (Animal,)
150
- id (str, none_type): [optional] # noqa: E501
151
- attributes (RetailMediaExternalv1SetBidsModel): [optional] # noqa: E501
148
+ type (str, none_type): User List. [optional] # noqa: E501
152
149
  """
153
150
 
154
151
  _check_type = kwargs.pop('_check_type', True)
@@ -180,7 +177,7 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
180
177
  self._configuration = _configuration
181
178
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
179
 
183
- self.type = type
180
+ self.attributes = attributes
184
181
  for var_name, var_value in kwargs.items():
185
182
  if var_name not in self.attribute_map and \
186
183
  self._configuration is not None and \
@@ -201,11 +198,11 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
201
198
  ])
202
199
 
203
200
  @convert_js_args_to_python_args
204
- def __init__(self, type, *args, **kwargs): # noqa: E501
205
- """RetailMediaExternalv1SetBidsModelResource - a model defined in OpenAPI
201
+ def __init__(self, attributes, *args, **kwargs): # noqa: E501
202
+ """RetailMediaContactlistAmendment - a model defined in OpenAPI
206
203
 
207
204
  Args:
208
- type (str):
205
+ attributes (RetailMediaContactlistAmendmentAttributes):
209
206
 
210
207
  Keyword Args:
211
208
  _check_type (bool): if True, values for parameters in openapi_types
@@ -238,8 +235,7 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
238
235
  Animal class but this time we won't travel
239
236
  through its discriminator because we passed in
240
237
  _visited_composed_classes = (Animal,)
241
- id (str, none_type): [optional] # noqa: E501
242
- attributes (RetailMediaExternalv1SetBidsModel): [optional] # noqa: E501
238
+ type (str, none_type): User List. [optional] # noqa: E501
243
239
  """
244
240
 
245
241
  _check_type = kwargs.pop('_check_type', True)
@@ -269,7 +265,7 @@ class RetailMediaExternalv1SetBidsModelResource(ModelNormal):
269
265
  self._configuration = _configuration
270
266
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
271
267
 
272
- self.type = type
268
+ self.attributes = attributes
273
269
  for var_name, var_value in kwargs.items():
274
270
  if var_name not in self.attribute_map and \
275
271
  self._configuration is not None and \
@@ -29,12 +29,8 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
29
29
  from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel
34
- globals()['RetailMediaExternalv1AddRemoveKeywordsModel'] = RetailMediaExternalv1AddRemoveKeywordsModel
35
32
 
36
-
37
- class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
33
+ class RetailMediaContactlistAmendmentAttributes(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
39
35
  Ref: https://openapi-generator.tech
40
36
 
@@ -59,6 +55,19 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
59
55
  """
60
56
 
61
57
  allowed_values = {
58
+ ('operation',): {
59
+ 'ADD': "add",
60
+ 'REMOVE': "remove",
61
+ },
62
+ ('identifier_type',): {
63
+ 'None': None,
64
+ 'EMAIL': "email",
65
+ 'MADID': "madid",
66
+ 'IDENTITYLINK': "identityLink",
67
+ 'GUM': "gum",
68
+ 'CUSTOMERID': "customerid",
69
+ 'PHONENUMBER': "phoneNumber",
70
+ },
62
71
  }
63
72
 
64
73
  validations = {
@@ -70,7 +79,6 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
70
79
  This must be a method because a model may have properties that are
71
80
  of type self, this must run after the class is loaded
72
81
  """
73
- lazy_import()
74
82
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
83
 
76
84
  _nullable = False
@@ -85,11 +93,10 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
85
93
  openapi_types (dict): The key is attribute name
86
94
  and the value is attribute type.
87
95
  """
88
- lazy_import()
89
96
  return {
90
- 'type': (str,), # noqa: E501
91
- 'id': (str, none_type,), # noqa: E501
92
- 'attributes': (RetailMediaExternalv1AddRemoveKeywordsModel,), # noqa: E501
97
+ 'operation': (str,), # noqa: E501
98
+ 'identifiers': ([str],), # noqa: E501
99
+ 'identifier_type': (str, none_type,), # noqa: E501
93
100
  }
94
101
 
95
102
  @cached_property
@@ -98,9 +105,9 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
98
105
 
99
106
 
100
107
  attribute_map = {
101
- 'type': 'type', # noqa: E501
102
- 'id': 'id', # noqa: E501
103
- 'attributes': 'attributes', # noqa: E501
108
+ 'operation': 'operation', # noqa: E501
109
+ 'identifiers': 'identifiers', # noqa: E501
110
+ 'identifier_type': 'identifierType', # noqa: E501
104
111
  }
105
112
 
106
113
  read_only_vars = {
@@ -110,11 +117,12 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
110
117
 
111
118
  @classmethod
112
119
  @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501
114
- """RetailMediaExternalv1AddRemoveKeywordsModelResource - a model defined in OpenAPI
120
+ def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E501
121
+ """RetailMediaContactlistAmendmentAttributes - a model defined in OpenAPI
115
122
 
116
123
  Args:
117
- type (str):
124
+ operation (str): Whether to add or remove users
125
+ identifiers ([str]): The users to add or remove, each in the schema specified
118
126
 
119
127
  Keyword Args:
120
128
  _check_type (bool): if True, values for parameters in openapi_types
@@ -147,8 +155,7 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
147
155
  Animal class but this time we won't travel
148
156
  through its discriminator because we passed in
149
157
  _visited_composed_classes = (Animal,)
150
- id (str, none_type): [optional] # noqa: E501
151
- attributes (RetailMediaExternalv1AddRemoveKeywordsModel): [optional] # noqa: E501
158
+ identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
152
159
  """
153
160
 
154
161
  _check_type = kwargs.pop('_check_type', True)
@@ -180,7 +187,8 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
180
187
  self._configuration = _configuration
181
188
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
189
 
183
- self.type = type
190
+ self.operation = operation
191
+ self.identifiers = identifiers
184
192
  for var_name, var_value in kwargs.items():
185
193
  if var_name not in self.attribute_map and \
186
194
  self._configuration is not None and \
@@ -201,11 +209,12 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
201
209
  ])
202
210
 
203
211
  @convert_js_args_to_python_args
204
- def __init__(self, type, *args, **kwargs): # noqa: E501
205
- """RetailMediaExternalv1AddRemoveKeywordsModelResource - a model defined in OpenAPI
212
+ def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501
213
+ """RetailMediaContactlistAmendmentAttributes - a model defined in OpenAPI
206
214
 
207
215
  Args:
208
- type (str):
216
+ operation (str): Whether to add or remove users
217
+ identifiers ([str]): The users to add or remove, each in the schema specified
209
218
 
210
219
  Keyword Args:
211
220
  _check_type (bool): if True, values for parameters in openapi_types
@@ -238,8 +247,7 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
238
247
  Animal class but this time we won't travel
239
248
  through its discriminator because we passed in
240
249
  _visited_composed_classes = (Animal,)
241
- id (str, none_type): [optional] # noqa: E501
242
- attributes (RetailMediaExternalv1AddRemoveKeywordsModel): [optional] # noqa: E501
250
+ identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
243
251
  """
244
252
 
245
253
  _check_type = kwargs.pop('_check_type', True)
@@ -269,7 +277,8 @@ class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal):
269
277
  self._configuration = _configuration
270
278
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
271
279
 
272
- self.type = type
280
+ self.operation = operation
281
+ self.identifiers = identifiers
273
282
  for var_name, var_value in kwargs.items():
274
283
  if var_name not in self.attribute_map and \
275
284
  self._configuration is not None and \