criteo-api-retailmedia-sdk 0.0.231113__py3-none-any.whl → 0.0.240207__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 (37) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/__init__.py +1 -1
  3. criteo_api_retailmedia_preview/api/accounts_api.py +767 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +35 -32
  5. criteo_api_retailmedia_preview/api_client.py +5 -5
  6. criteo_api_retailmedia_preview/apis/__init__.py +2 -1
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/external_account.py +4 -0
  9. criteo_api_retailmedia_preview/model/{common_status_code_response.py → grant_consent_input.py} +9 -15
  10. criteo_api_retailmedia_preview/model/grant_consent_model.py +279 -0
  11. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +273 -0
  12. criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py +270 -0
  13. criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py +274 -0
  14. criteo_api_retailmedia_preview/model/retail_media_account.py +297 -0
  15. criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +265 -0
  16. criteo_api_retailmedia_preview/model/retail_media_seller.py +261 -0
  17. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +270 -0
  18. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  19. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +17 -29
  20. criteo_api_retailmedia_preview/model/{retail_media_audience.py → rm_legacy_audience_get_entity_v1_resource.py} +22 -33
  21. criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  22. criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py +281 -0
  23. criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -32
  24. criteo_api_retailmedia_preview/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  25. criteo_api_retailmedia_preview/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  26. criteo_api_retailmedia_preview/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  27. criteo_api_retailmedia_preview/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  28. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_int64.py +274 -0
  29. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +274 -0
  30. criteo_api_retailmedia_preview/model/value_resource_of_int64.py +261 -0
  31. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +266 -0
  32. criteo_api_retailmedia_preview/models/__init__.py +23 -11
  33. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/METADATA +3 -3
  34. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/RECORD +36 -23
  35. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/WHEEL +1 -1
  36. criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
  37. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,270 @@
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.retail_media_seller import RetailMediaSeller
34
+ globals()['RetailMediaSeller'] = RetailMediaSeller
35
+
36
+
37
+ class RetailMediaSellerAccountCreation(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
+ 'name': (str, none_type,), # noqa: E501
84
+ 'company_name': (str, none_type,), # noqa: E501
85
+ 'sellers': ([RetailMediaSeller], none_type,), # noqa: E501
86
+ }
87
+
88
+ @cached_property
89
+ def discriminator():
90
+ return None
91
+
92
+
93
+ attribute_map = {
94
+ 'name': 'name', # noqa: E501
95
+ 'company_name': 'companyName', # noqa: E501
96
+ 'sellers': 'sellers', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
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
+ """RetailMediaSellerAccountCreation - 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
+ name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
141
+ 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
142
+ sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501
143
+ """
144
+
145
+ _check_type = kwargs.pop('_check_type', True)
146
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
147
+ _path_to_item = kwargs.pop('_path_to_item', ())
148
+ _configuration = kwargs.pop('_configuration', None)
149
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
150
+
151
+ self = super(OpenApiModel, cls).__new__(cls)
152
+
153
+ if args:
154
+ for arg in args:
155
+ if isinstance(arg, dict):
156
+ kwargs.update(arg)
157
+ else:
158
+ raise ApiTypeError(
159
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
160
+ args,
161
+ self.__class__.__name__,
162
+ ),
163
+ path_to_item=_path_to_item,
164
+ valid_classes=(self.__class__,),
165
+ )
166
+
167
+ self._data_store = {}
168
+ self._check_type = _check_type
169
+ self._spec_property_naming = _spec_property_naming
170
+ self._path_to_item = _path_to_item
171
+ self._configuration = _configuration
172
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
+
174
+ for var_name, var_value in kwargs.items():
175
+ if var_name not in self.attribute_map and \
176
+ self._configuration is not None and \
177
+ self._configuration.discard_unknown_keys and \
178
+ self.additional_properties_type is None:
179
+ # discard variable.
180
+ continue
181
+ setattr(self, var_name, var_value)
182
+ return self
183
+
184
+ required_properties = set([
185
+ '_data_store',
186
+ '_check_type',
187
+ '_spec_property_naming',
188
+ '_path_to_item',
189
+ '_configuration',
190
+ '_visited_composed_classes',
191
+ ])
192
+
193
+ @convert_js_args_to_python_args
194
+ def __init__(self, *args, **kwargs): # noqa: E501
195
+ """RetailMediaSellerAccountCreation - a model defined in OpenAPI
196
+
197
+ Keyword Args:
198
+ _check_type (bool): if True, values for parameters in openapi_types
199
+ will be type checked and a TypeError will be
200
+ raised if the wrong type is input.
201
+ Defaults to True
202
+ _path_to_item (tuple/list): This is a list of keys or values to
203
+ drill down to the model in received_data
204
+ when deserializing a response
205
+ _spec_property_naming (bool): True if the variable names in the input data
206
+ are serialized names, as specified in the OpenAPI document.
207
+ False if the variable names in the input data
208
+ are pythonic names, e.g. snake case (default)
209
+ _configuration (Configuration): the instance to use when
210
+ deserializing a file_type parameter.
211
+ If passed, type conversion is attempted
212
+ If omitted no type conversion is done.
213
+ _visited_composed_classes (tuple): This stores a tuple of
214
+ classes that we have traveled through so that
215
+ if we see that class again we will not use its
216
+ discriminator again.
217
+ When traveling through a discriminator, the
218
+ composed schema that is
219
+ is traveled through is added to this set.
220
+ For example if Animal has a discriminator
221
+ petType and we pass in "Dog", and the class Dog
222
+ allOf includes Animal, we move through Animal
223
+ once using the discriminator, and pick Dog.
224
+ Then in Dog, we will make an instance of the
225
+ Animal class but this time we won't travel
226
+ through its discriminator because we passed in
227
+ _visited_composed_classes = (Animal,)
228
+ name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
229
+ 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
230
+ sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501
231
+ """
232
+
233
+ _check_type = kwargs.pop('_check_type', True)
234
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
235
+ _path_to_item = kwargs.pop('_path_to_item', ())
236
+ _configuration = kwargs.pop('_configuration', None)
237
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
238
+
239
+ if args:
240
+ for arg in args:
241
+ if isinstance(arg, dict):
242
+ kwargs.update(arg)
243
+ else:
244
+ raise ApiTypeError(
245
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
246
+ args,
247
+ self.__class__.__name__,
248
+ ),
249
+ path_to_item=_path_to_item,
250
+ valid_classes=(self.__class__,),
251
+ )
252
+
253
+ self._data_store = {}
254
+ self._check_type = _check_type
255
+ self._spec_property_naming = _spec_property_naming
256
+ self._path_to_item = _path_to_item
257
+ self._configuration = _configuration
258
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
+
260
+ for var_name, var_value in kwargs.items():
261
+ if var_name not in self.attribute_map and \
262
+ self._configuration is not None and \
263
+ self._configuration.discard_unknown_keys and \
264
+ self.additional_properties_type is None:
265
+ # discard variable.
266
+ continue
267
+ setattr(self, var_name, var_value)
268
+ if var_name in self.read_only_vars:
269
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
270
+ f"class with read only attributes.")
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.customer_list_details import CustomerListDetails
34
- from criteo_api_retailmedia_preview.model.user_behavior_details_v2 import UserBehaviorDetailsV2
35
- globals()['CustomerListDetails'] = CustomerListDetails
36
- globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2
33
+ from criteo_api_retailmedia_preview.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
34
+ from criteo_api_retailmedia_preview.model.rm_legacy_segment_user_behavior_v1 import RmLegacySegmentUserBehaviorV1
35
+ globals()['RmLegacySegmentCustomerList'] = RmLegacySegmentCustomerList
36
+ globals()['RmLegacySegmentUserBehaviorV1'] = RmLegacySegmentUserBehaviorV1
37
37
 
38
38
 
39
- class RetailMediaAudienceV2Attributes(ModelNormal):
39
+ class RmLegacyAudienceGetEntityV1(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -89,10 +89,10 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
89
89
  """
90
90
  lazy_import()
91
91
  return {
92
- 'retailer_id': (int,), # noqa: E501
93
92
  'name': (str,), # noqa: E501
94
- 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501
95
- 'customer_list_details': (CustomerListDetails,), # noqa: E501
93
+ 'retailer_id': (str,), # noqa: E501
94
+ 'user_behavior_details': (RmLegacySegmentUserBehaviorV1,), # noqa: E501
95
+ 'customer_list_details': (RmLegacySegmentCustomerList,), # noqa: E501
96
96
  }
97
97
 
98
98
  @cached_property
@@ -101,8 +101,8 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
101
101
 
102
102
 
103
103
  attribute_map = {
104
- 'retailer_id': 'retailerId', # noqa: E501
105
104
  'name': 'name', # noqa: E501
105
+ 'retailer_id': 'retailerId', # noqa: E501
106
106
  'user_behavior_details': 'userBehaviorDetails', # noqa: E501
107
107
  'customer_list_details': 'customerListDetails', # noqa: E501
108
108
  }
@@ -114,12 +114,12 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
114
114
 
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
- def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501
118
- """RetailMediaAudienceV2Attributes - a model defined in OpenAPI
117
+ def _from_openapi_data(cls, name, retailer_id, *args, **kwargs): # noqa: E501
118
+ """RmLegacyAudienceGetEntityV1 - a model defined in OpenAPI
119
119
 
120
120
  Args:
121
- retailer_id (int): ID of the retailer associated with this audience
122
- name (str): Name of the audience.
121
+ name (str): Name of the audience
122
+ retailer_id (str): ID of the retailer associated with this audience
123
123
 
124
124
  Keyword Args:
125
125
  _check_type (bool): if True, values for parameters in openapi_types
@@ -152,8 +152,8 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
152
152
  Animal class but this time we won't travel
153
153
  through its discriminator because we passed in
154
154
  _visited_composed_classes = (Animal,)
155
- user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501
156
- customer_list_details (CustomerListDetails): [optional] # noqa: E501
155
+ user_behavior_details (RmLegacySegmentUserBehaviorV1): [optional] # noqa: E501
156
+ customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501
157
157
  """
158
158
 
159
159
  _check_type = kwargs.pop('_check_type', True)
@@ -185,8 +185,8 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
185
185
  self._configuration = _configuration
186
186
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
187
187
 
188
- self.retailer_id = retailer_id
189
188
  self.name = name
189
+ self.retailer_id = retailer_id
190
190
  for var_name, var_value in kwargs.items():
191
191
  if var_name not in self.attribute_map and \
192
192
  self._configuration is not None and \
@@ -207,12 +207,12 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
207
207
  ])
208
208
 
209
209
  @convert_js_args_to_python_args
210
- def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501
211
- """RetailMediaAudienceV2Attributes - a model defined in OpenAPI
210
+ def __init__(self, name, retailer_id, *args, **kwargs): # noqa: E501
211
+ """RmLegacyAudienceGetEntityV1 - a model defined in OpenAPI
212
212
 
213
213
  Args:
214
- retailer_id (int): ID of the retailer associated with this audience
215
- name (str): Name of the audience.
214
+ name (str): Name of the audience
215
+ retailer_id (str): ID of the retailer associated with this audience
216
216
 
217
217
  Keyword Args:
218
218
  _check_type (bool): if True, values for parameters in openapi_types
@@ -245,8 +245,8 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
245
245
  Animal class but this time we won't travel
246
246
  through its discriminator because we passed in
247
247
  _visited_composed_classes = (Animal,)
248
- user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501
249
- customer_list_details (CustomerListDetails): [optional] # noqa: E501
248
+ user_behavior_details (RmLegacySegmentUserBehaviorV1): [optional] # noqa: E501
249
+ customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501
250
250
  """
251
251
 
252
252
  _check_type = kwargs.pop('_check_type', True)
@@ -276,8 +276,8 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
276
276
  self._configuration = _configuration
277
277
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
278
278
 
279
- self.retailer_id = retailer_id
280
279
  self.name = name
280
+ self.retailer_id = retailer_id
281
281
  for var_name, var_value in kwargs.items():
282
282
  if var_name not in self.attribute_map and \
283
283
  self._configuration is not None and \
@@ -31,14 +31,12 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
31
31
 
32
32
  def lazy_import():
33
33
  from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
34
- from criteo_api_retailmedia_preview.model.page_metadata import PageMetadata
35
- from criteo_api_retailmedia_preview.model.retail_media_audience_v2 import RetailMediaAudienceV2
34
+ from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1_resource import RmLegacyAudienceGetEntityV1Resource
36
35
  globals()['CommonProblem'] = CommonProblem
37
- globals()['PageMetadata'] = PageMetadata
38
- globals()['RetailMediaAudienceV2'] = RetailMediaAudienceV2
36
+ globals()['RmLegacyAudienceGetEntityV1Resource'] = RmLegacyAudienceGetEntityV1Resource
39
37
 
40
38
 
41
- class RetailMediaAudienceV2ListResponse(ModelNormal):
39
+ class RmLegacyAudienceGetEntityV1ListResponse(ModelNormal):
42
40
  """NOTE: This class is auto generated by OpenAPI Generator.
43
41
  Ref: https://openapi-generator.tech
44
42
 
@@ -91,10 +89,9 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
91
89
  """
92
90
  lazy_import()
93
91
  return {
94
- 'data': ([RetailMediaAudienceV2],), # noqa: E501
95
- 'metadata': (PageMetadata,), # noqa: E501
96
- 'errors': ([CommonProblem], none_type,), # noqa: E501
92
+ 'data': ([RmLegacyAudienceGetEntityV1Resource], none_type,), # noqa: E501
97
93
  'warnings': ([CommonProblem], none_type,), # noqa: E501
94
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
98
95
  }
99
96
 
100
97
  @cached_property
@@ -104,27 +101,21 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
104
101
 
105
102
  attribute_map = {
106
103
  'data': 'data', # noqa: E501
107
- 'metadata': 'metadata', # noqa: E501
108
- 'errors': 'errors', # noqa: E501
109
104
  'warnings': 'warnings', # noqa: E501
105
+ 'errors': 'errors', # noqa: E501
110
106
  }
111
107
 
112
108
  read_only_vars = {
113
- 'data', # noqa: E501
114
- 'errors', # noqa: E501
115
109
  'warnings', # noqa: E501
110
+ 'errors', # noqa: E501
116
111
  }
117
112
 
118
113
  _composed_schemas = {}
119
114
 
120
115
  @classmethod
121
116
  @convert_js_args_to_python_args
122
- def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501
123
- """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI
124
-
125
- Args:
126
- data ([RetailMediaAudienceV2]): data
127
- metadata (PageMetadata):
117
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
+ """RmLegacyAudienceGetEntityV1ListResponse - a model defined in OpenAPI
128
119
 
129
120
  Keyword Args:
130
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -157,8 +148,9 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
157
148
  Animal class but this time we won't travel
158
149
  through its discriminator because we passed in
159
150
  _visited_composed_classes = (Animal,)
160
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
161
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
151
+ data ([RmLegacyAudienceGetEntityV1Resource], none_type): [optional] # noqa: E501
152
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
153
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
162
154
  """
163
155
 
164
156
  _check_type = kwargs.pop('_check_type', True)
@@ -190,8 +182,6 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
190
182
  self._configuration = _configuration
191
183
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192
184
 
193
- self.data = data
194
- self.metadata = metadata
195
185
  for var_name, var_value in kwargs.items():
196
186
  if var_name not in self.attribute_map and \
197
187
  self._configuration is not None and \
@@ -212,10 +202,8 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
212
202
  ])
213
203
 
214
204
  @convert_js_args_to_python_args
215
- def __init__(self, metadata, *args, **kwargs): # noqa: E501
216
- """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI
217
-
218
- metadata (PageMetadata):
205
+ def __init__(self, *args, **kwargs): # noqa: E501
206
+ """RmLegacyAudienceGetEntityV1ListResponse - a model defined in OpenAPI
219
207
 
220
208
  Keyword Args:
221
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -248,8 +236,9 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
248
236
  Animal class but this time we won't travel
249
237
  through its discriminator because we passed in
250
238
  _visited_composed_classes = (Animal,)
251
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
252
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
239
+ data ([RmLegacyAudienceGetEntityV1Resource], none_type): [optional] # noqa: E501
240
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
241
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
253
242
  """
254
243
 
255
244
  _check_type = kwargs.pop('_check_type', True)
@@ -279,7 +268,6 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
279
268
  self._configuration = _configuration
280
269
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
270
 
282
- self.metadata = metadata
283
271
  for var_name, var_value in kwargs.items():
284
272
  if var_name not in self.attribute_map and \
285
273
  self._configuration is not None and \
@@ -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_audience_attributes import RetailMediaAudienceAttributes
34
- globals()['RetailMediaAudienceAttributes'] = RetailMediaAudienceAttributes
33
+ from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1 import RmLegacyAudienceGetEntityV1
34
+ globals()['RmLegacyAudienceGetEntityV1'] = RmLegacyAudienceGetEntityV1
35
35
 
36
36
 
37
- class RetailMediaAudience(ModelNormal):
37
+ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -60,6 +60,7 @@ class RetailMediaAudience(ModelNormal):
60
60
 
61
61
  allowed_values = {
62
62
  ('audience_type',): {
63
+ 'None': None,
63
64
  'CUSTOMERLIST': "customerList",
64
65
  'USERBEHAVIOR': "userBehavior",
65
66
  },
@@ -91,10 +92,10 @@ class RetailMediaAudience(ModelNormal):
91
92
  """
92
93
  lazy_import()
93
94
  return {
94
- 'audience_type': (str,), # noqa: E501
95
- 'id': (str,), # noqa: E501
96
- 'type': (str,), # noqa: E501
97
- 'attributes': (RetailMediaAudienceAttributes,), # noqa: E501
95
+ 'attributes': (RmLegacyAudienceGetEntityV1,), # noqa: E501
96
+ 'id': (str, none_type,), # noqa: E501
97
+ 'audience_type': (str, none_type,), # noqa: E501
98
+ 'type': (str, none_type,), # noqa: E501
98
99
  }
99
100
 
100
101
  @cached_property
@@ -103,10 +104,10 @@ class RetailMediaAudience(ModelNormal):
103
104
 
104
105
 
105
106
  attribute_map = {
106
- 'audience_type': 'audienceType', # noqa: E501
107
+ 'attributes': 'attributes', # noqa: E501
107
108
  'id': 'id', # noqa: E501
109
+ 'audience_type': 'audienceType', # noqa: E501
108
110
  'type': 'type', # noqa: E501
109
- 'attributes': 'attributes', # noqa: E501
110
111
  }
111
112
 
112
113
  read_only_vars = {
@@ -116,14 +117,8 @@ class RetailMediaAudience(ModelNormal):
116
117
 
117
118
  @classmethod
118
119
  @convert_js_args_to_python_args
119
- def _from_openapi_data(cls, audience_type, id, type, attributes, *args, **kwargs): # noqa: E501
120
- """RetailMediaAudience - a model defined in OpenAPI
121
-
122
- Args:
123
- audience_type (str): Type of the audience
124
- id (str): Unique ID of this audience.
125
- type (str): Name of the entity i.e. RetailMediaAudienceSummary
126
- attributes (RetailMediaAudienceAttributes):
120
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
121
+ """RmLegacyAudienceGetEntityV1Resource - a model defined in OpenAPI
127
122
 
128
123
  Keyword Args:
129
124
  _check_type (bool): if True, values for parameters in openapi_types
@@ -156,6 +151,10 @@ class RetailMediaAudience(ModelNormal):
156
151
  Animal class but this time we won't travel
157
152
  through its discriminator because we passed in
158
153
  _visited_composed_classes = (Animal,)
154
+ attributes (RmLegacyAudienceGetEntityV1): [optional] # noqa: E501
155
+ id (str, none_type): [optional] # noqa: E501
156
+ audience_type (str, none_type): [optional] # noqa: E501
157
+ type (str, none_type): [optional] # noqa: E501
159
158
  """
160
159
 
161
160
  _check_type = kwargs.pop('_check_type', True)
@@ -187,10 +186,6 @@ class RetailMediaAudience(ModelNormal):
187
186
  self._configuration = _configuration
188
187
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
189
188
 
190
- self.audience_type = audience_type
191
- self.id = id
192
- self.type = type
193
- self.attributes = attributes
194
189
  for var_name, var_value in kwargs.items():
195
190
  if var_name not in self.attribute_map and \
196
191
  self._configuration is not None and \
@@ -211,14 +206,8 @@ class RetailMediaAudience(ModelNormal):
211
206
  ])
212
207
 
213
208
  @convert_js_args_to_python_args
214
- def __init__(self, audience_type, id, type, attributes, *args, **kwargs): # noqa: E501
215
- """RetailMediaAudience - a model defined in OpenAPI
216
-
217
- Args:
218
- audience_type (str): Type of the audience
219
- id (str): Unique ID of this audience.
220
- type (str): Name of the entity i.e. RetailMediaAudienceSummary
221
- attributes (RetailMediaAudienceAttributes):
209
+ def __init__(self, *args, **kwargs): # noqa: E501
210
+ """RmLegacyAudienceGetEntityV1Resource - a model defined in OpenAPI
222
211
 
223
212
  Keyword Args:
224
213
  _check_type (bool): if True, values for parameters in openapi_types
@@ -251,6 +240,10 @@ class RetailMediaAudience(ModelNormal):
251
240
  Animal class but this time we won't travel
252
241
  through its discriminator because we passed in
253
242
  _visited_composed_classes = (Animal,)
243
+ attributes (RmLegacyAudienceGetEntityV1): [optional] # noqa: E501
244
+ id (str, none_type): [optional] # noqa: E501
245
+ audience_type (str, none_type): [optional] # noqa: E501
246
+ type (str, none_type): [optional] # noqa: E501
254
247
  """
255
248
 
256
249
  _check_type = kwargs.pop('_check_type', True)
@@ -280,10 +273,6 @@ class RetailMediaAudience(ModelNormal):
280
273
  self._configuration = _configuration
281
274
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
282
275
 
283
- self.audience_type = audience_type
284
- self.id = id
285
- self.type = type
286
- self.attributes = attributes
287
276
  for var_name, var_value in kwargs.items():
288
277
  if var_name not in self.attribute_map and \
289
278
  self._configuration is not None and \