criteo-api-retailmedia-sdk 2023.4.0.240118__py3-none-any.whl → 2023.4.0.240404__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 (37) hide show
  1. {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240404.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240404.dist-info}/RECORD +35 -36
  3. {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240404.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_04/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_04/api/audience_api.py +113 -100
  6. criteo_api_retailmedia_v2023_04/api_client.py +1 -1
  7. criteo_api_retailmedia_v2023_04/configuration.py +1 -1
  8. criteo_api_retailmedia_v2023_04/model/async_campaigns_report.py +57 -53
  9. criteo_api_retailmedia_v2023_04/model/async_line_items_report.py +57 -54
  10. criteo_api_retailmedia_v2023_04/model/campaign_attributes_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_04/model/campaign_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py +4 -0
  13. criteo_api_retailmedia_v2023_04/model/external_account.py +4 -0
  14. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  15. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  16. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  17. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  18. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -28
  19. criteo_api_retailmedia_v2023_04/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  20. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  21. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  22. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  23. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
  24. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  25. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  26. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
  27. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -22
  28. criteo_api_retailmedia_v2023_04/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  29. criteo_api_retailmedia_v2023_04/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  30. criteo_api_retailmedia_v2023_04/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  31. criteo_api_retailmedia_v2023_04/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
  32. criteo_api_retailmedia_v2023_04/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  33. criteo_api_retailmedia_v2023_04/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  34. criteo_api_retailmedia_v2023_04/models/__init__.py +20 -21
  35. criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2.py +0 -287
  36. criteo_api_retailmedia_v2023_04/model/get_page_of_audiences_by_account_id_response.py +0 -295
  37. {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240404.dist-info}/top_level.txt +0 -0
@@ -30,15 +30,13 @@ from criteo_api_retailmedia_v2023_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_04.model.common_error import CommonError
34
- from criteo_api_retailmedia_v2023_04.model.common_warning import CommonWarning
35
- from criteo_api_retailmedia_v2023_04.model.create_retail_media_audience import CreateRetailMediaAudience
36
- globals()['CommonError'] = CommonError
37
- globals()['CommonWarning'] = CommonWarning
38
- globals()['CreateRetailMediaAudience'] = CreateRetailMediaAudience
33
+ from criteo_api_retailmedia_v2023_04.model.common_problem import CommonProblem
34
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_get_entity_v1_resource import RmLegacyAudienceGetEntityV1Resource
35
+ globals()['CommonProblem'] = CommonProblem
36
+ globals()['RmLegacyAudienceGetEntityV1Resource'] = RmLegacyAudienceGetEntityV1Resource
39
37
 
40
38
 
41
- class CreateRetailMediaAudienceResponse(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,9 +89,9 @@ class CreateRetailMediaAudienceResponse(ModelNormal):
91
89
  """
92
90
  lazy_import()
93
91
  return {
94
- 'data': (CreateRetailMediaAudience,), # noqa: E501
95
- 'errors': ([CommonError], none_type,), # noqa: E501
96
- 'warnings': ([CommonWarning], none_type,), # noqa: E501
92
+ 'data': ([RmLegacyAudienceGetEntityV1Resource], none_type,), # noqa: E501
93
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
94
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
97
95
  }
98
96
 
99
97
  @cached_property
@@ -103,13 +101,13 @@ class CreateRetailMediaAudienceResponse(ModelNormal):
103
101
 
104
102
  attribute_map = {
105
103
  'data': 'data', # noqa: E501
106
- 'errors': 'errors', # noqa: E501
107
104
  'warnings': 'warnings', # noqa: E501
105
+ 'errors': 'errors', # noqa: E501
108
106
  }
109
107
 
110
108
  read_only_vars = {
111
- 'errors', # noqa: E501
112
109
  'warnings', # noqa: E501
110
+ 'errors', # noqa: E501
113
111
  }
114
112
 
115
113
  _composed_schemas = {}
@@ -117,7 +115,7 @@ class CreateRetailMediaAudienceResponse(ModelNormal):
117
115
  @classmethod
118
116
  @convert_js_args_to_python_args
119
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
120
- """CreateRetailMediaAudienceResponse - a model defined in OpenAPI
118
+ """RmLegacyAudienceGetEntityV1ListResponse - a model defined in OpenAPI
121
119
 
122
120
  Keyword Args:
123
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -150,9 +148,9 @@ class CreateRetailMediaAudienceResponse(ModelNormal):
150
148
  Animal class but this time we won't travel
151
149
  through its discriminator because we passed in
152
150
  _visited_composed_classes = (Animal,)
153
- data (CreateRetailMediaAudience): [optional] # noqa: E501
154
- errors ([CommonError], none_type): errors. [optional] # noqa: E501
155
- warnings ([CommonWarning], 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
156
154
  """
157
155
 
158
156
  _check_type = kwargs.pop('_check_type', True)
@@ -205,7 +203,7 @@ class CreateRetailMediaAudienceResponse(ModelNormal):
205
203
 
206
204
  @convert_js_args_to_python_args
207
205
  def __init__(self, *args, **kwargs): # noqa: E501
208
- """CreateRetailMediaAudienceResponse - a model defined in OpenAPI
206
+ """RmLegacyAudienceGetEntityV1ListResponse - a model defined in OpenAPI
209
207
 
210
208
  Keyword Args:
211
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -238,9 +236,9 @@ class CreateRetailMediaAudienceResponse(ModelNormal):
238
236
  Animal class but this time we won't travel
239
237
  through its discriminator because we passed in
240
238
  _visited_composed_classes = (Animal,)
241
- data (CreateRetailMediaAudience): [optional] # noqa: E501
242
- errors ([CommonError], none_type): errors. [optional] # noqa: E501
243
- warnings ([CommonWarning], 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
244
242
  """
245
243
 
246
244
  _check_type = kwargs.pop('_check_type', True)
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2023_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_04.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes
34
- globals()['RetailMediaAudienceV2Attributes'] = RetailMediaAudienceV2Attributes
33
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_get_entity_v1 import RmLegacyAudienceGetEntityV1
34
+ globals()['RmLegacyAudienceGetEntityV1'] = RmLegacyAudienceGetEntityV1
35
35
 
36
36
 
37
- class RetailMediaAudienceV2(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
 
@@ -59,7 +59,8 @@ class RetailMediaAudienceV2(ModelNormal):
59
59
  """
60
60
 
61
61
  allowed_values = {
62
- ('type',): {
62
+ ('audience_type',): {
63
+ 'None': None,
63
64
  'CUSTOMERLIST': "customerList",
64
65
  'USERBEHAVIOR': "userBehavior",
65
66
  },
@@ -91,9 +92,10 @@ class RetailMediaAudienceV2(ModelNormal):
91
92
  """
92
93
  lazy_import()
93
94
  return {
94
- 'type': (str,), # noqa: E501
95
- 'id': (str,), # noqa: E501
96
- 'attributes': (RetailMediaAudienceV2Attributes,), # 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
97
99
  }
98
100
 
99
101
  @cached_property
@@ -102,9 +104,10 @@ class RetailMediaAudienceV2(ModelNormal):
102
104
 
103
105
 
104
106
  attribute_map = {
105
- 'type': 'type', # noqa: E501
106
- 'id': 'id', # noqa: E501
107
107
  'attributes': 'attributes', # noqa: E501
108
+ 'id': 'id', # noqa: E501
109
+ 'audience_type': 'audienceType', # noqa: E501
110
+ 'type': 'type', # noqa: E501
108
111
  }
109
112
 
110
113
  read_only_vars = {
@@ -114,13 +117,8 @@ class RetailMediaAudienceV2(ModelNormal):
114
117
 
115
118
  @classmethod
116
119
  @convert_js_args_to_python_args
117
- def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E501
118
- """RetailMediaAudienceV2 - a model defined in OpenAPI
119
-
120
- Args:
121
- type (str): Type of the audience
122
- id (str): Unique ID of this audience.
123
- attributes (RetailMediaAudienceV2Attributes):
120
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
121
+ """RmLegacyAudienceGetEntityV1Resource - a model defined in OpenAPI
124
122
 
125
123
  Keyword Args:
126
124
  _check_type (bool): if True, values for parameters in openapi_types
@@ -153,6 +151,10 @@ class RetailMediaAudienceV2(ModelNormal):
153
151
  Animal class but this time we won't travel
154
152
  through its discriminator because we passed in
155
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
156
158
  """
157
159
 
158
160
  _check_type = kwargs.pop('_check_type', True)
@@ -184,9 +186,6 @@ class RetailMediaAudienceV2(ModelNormal):
184
186
  self._configuration = _configuration
185
187
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
188
 
187
- self.type = type
188
- self.id = id
189
- self.attributes = attributes
190
189
  for var_name, var_value in kwargs.items():
191
190
  if var_name not in self.attribute_map and \
192
191
  self._configuration is not None and \
@@ -207,13 +206,8 @@ class RetailMediaAudienceV2(ModelNormal):
207
206
  ])
208
207
 
209
208
  @convert_js_args_to_python_args
210
- def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501
211
- """RetailMediaAudienceV2 - a model defined in OpenAPI
212
-
213
- Args:
214
- type (str): Type of the audience
215
- id (str): Unique ID of this audience.
216
- attributes (RetailMediaAudienceV2Attributes):
209
+ def __init__(self, *args, **kwargs): # noqa: E501
210
+ """RmLegacyAudienceGetEntityV1Resource - a model defined in OpenAPI
217
211
 
218
212
  Keyword Args:
219
213
  _check_type (bool): if True, values for parameters in openapi_types
@@ -246,6 +240,10 @@ class RetailMediaAudienceV2(ModelNormal):
246
240
  Animal class but this time we won't travel
247
241
  through its discriminator because we passed in
248
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
249
247
  """
250
248
 
251
249
  _check_type = kwargs.pop('_check_type', True)
@@ -275,9 +273,6 @@ class RetailMediaAudienceV2(ModelNormal):
275
273
  self._configuration = _configuration
276
274
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
277
275
 
278
- self.type = type
279
- self.id = id
280
- self.attributes = attributes
281
276
  for var_name, var_value in kwargs.items():
282
277
  if var_name not in self.attribute_map and \
283
278
  self._configuration is not None and \
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_v2023_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_04.model.customer_list_details import CustomerListDetails
34
- from criteo_api_retailmedia_v2023_04.model.user_behavior_details import UserBehaviorDetails
35
- globals()['CustomerListDetails'] = CustomerListDetails
36
- globals()['UserBehaviorDetails'] = UserBehaviorDetails
33
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2
34
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
35
+ globals()['RmLegacyAudienceUserBehaviorDetailsV2'] = RmLegacyAudienceUserBehaviorDetailsV2
36
+ globals()['RmLegacySegmentCustomerList'] = RmLegacySegmentCustomerList
37
37
 
38
38
 
39
- class RetailMediaAudienceAttributes(ModelNormal):
39
+ class RmLegacyAudienceGetEntityV2(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -91,8 +91,8 @@ class RetailMediaAudienceAttributes(ModelNormal):
91
91
  return {
92
92
  'retailer_id': (str,), # noqa: E501
93
93
  'name': (str,), # noqa: E501
94
- 'user_behavior_details': (UserBehaviorDetails,), # noqa: E501
95
- 'customer_list_details': (CustomerListDetails,), # noqa: E501
94
+ 'user_behavior_details': (RmLegacyAudienceUserBehaviorDetailsV2,), # noqa: E501
95
+ 'customer_list_details': (RmLegacySegmentCustomerList,), # noqa: E501
96
96
  }
97
97
 
98
98
  @cached_property
@@ -115,11 +115,11 @@ class RetailMediaAudienceAttributes(ModelNormal):
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
117
  def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501
118
- """RetailMediaAudienceAttributes - a model defined in OpenAPI
118
+ """RmLegacyAudienceGetEntityV2 - a model defined in OpenAPI
119
119
 
120
120
  Args:
121
121
  retailer_id (str): ID of the retailer associated with this audience
122
- name (str): Name of the audience.
122
+ name (str): Name of the 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 RetailMediaAudienceAttributes(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 (UserBehaviorDetails): [optional] # noqa: E501
156
- customer_list_details (CustomerListDetails): [optional] # noqa: E501
155
+ user_behavior_details (RmLegacyAudienceUserBehaviorDetailsV2): [optional] # noqa: E501
156
+ customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501
157
157
  """
158
158
 
159
159
  _check_type = kwargs.pop('_check_type', True)
@@ -208,11 +208,11 @@ class RetailMediaAudienceAttributes(ModelNormal):
208
208
 
209
209
  @convert_js_args_to_python_args
210
210
  def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501
211
- """RetailMediaAudienceAttributes - a model defined in OpenAPI
211
+ """RmLegacyAudienceGetEntityV2 - a model defined in OpenAPI
212
212
 
213
213
  Args:
214
214
  retailer_id (str): ID of the retailer associated with this audience
215
- name (str): Name of the audience.
215
+ name (str): Name of the 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 RetailMediaAudienceAttributes(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 (UserBehaviorDetails): [optional] # noqa: E501
249
- customer_list_details (CustomerListDetails): [optional] # noqa: E501
248
+ user_behavior_details (RmLegacyAudienceUserBehaviorDetailsV2): [optional] # noqa: E501
249
+ customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501
250
250
  """
251
251
 
252
252
  _check_type = kwargs.pop('_check_type', True)
@@ -31,14 +31,12 @@ from criteo_api_retailmedia_v2023_04.exceptions import ApiAttributeError
31
31
 
32
32
  def lazy_import():
33
33
  from criteo_api_retailmedia_v2023_04.model.common_problem import CommonProblem
34
- from criteo_api_retailmedia_v2023_04.model.page_metadata import PageMetadata
35
- from criteo_api_retailmedia_v2023_04.model.retail_media_audience_v2 import RetailMediaAudienceV2
34
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_get_entity_v2_resource import RmLegacyAudienceGetEntityV2Resource
36
35
  globals()['CommonProblem'] = CommonProblem
37
- globals()['PageMetadata'] = PageMetadata
38
- globals()['RetailMediaAudienceV2'] = RetailMediaAudienceV2
36
+ globals()['RmLegacyAudienceGetEntityV2Resource'] = RmLegacyAudienceGetEntityV2Resource
39
37
 
40
38
 
41
- class RetailMediaAudienceV2ListResponse(ModelNormal):
39
+ class RmLegacyAudienceGetEntityV2ListResponse(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': ([RmLegacyAudienceGetEntityV2Resource], 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
+ """RmLegacyAudienceGetEntityV2ListResponse - 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 ([RmLegacyAudienceGetEntityV2Resource], 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
+ """RmLegacyAudienceGetEntityV2ListResponse - 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 ([RmLegacyAudienceGetEntityV2Resource], 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_v2023_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_04.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes
34
- globals()['CreateRetailMediaAudienceV2Attributes'] = CreateRetailMediaAudienceV2Attributes
33
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_get_entity_v2 import RmLegacyAudienceGetEntityV2
34
+ globals()['RmLegacyAudienceGetEntityV2'] = RmLegacyAudienceGetEntityV2
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceV2Data(ModelNormal):
37
+ class RmLegacyAudienceGetEntityV2Resource(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,8 +87,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'type': (str,), # noqa: E501
91
- 'attributes': (CreateRetailMediaAudienceV2Attributes,), # noqa: E501
90
+ 'attributes': (RmLegacyAudienceGetEntityV2,), # noqa: E501
91
+ 'id': (str, none_type,), # noqa: E501
92
+ 'type': (str, none_type,), # noqa: E501
92
93
  }
93
94
 
94
95
  @cached_property
@@ -97,8 +98,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
97
98
 
98
99
 
99
100
  attribute_map = {
100
- 'type': 'type', # noqa: E501
101
101
  'attributes': 'attributes', # noqa: E501
102
+ 'id': 'id', # noqa: E501
103
+ 'type': 'type', # noqa: E501
102
104
  }
103
105
 
104
106
  read_only_vars = {
@@ -108,12 +110,8 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
108
110
 
109
111
  @classmethod
110
112
  @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501
112
- """CreateRetailMediaAudienceV2Data - a model defined in OpenAPI
113
-
114
- Args:
115
- type (str): the name of the entity type
116
- attributes (CreateRetailMediaAudienceV2Attributes):
113
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
+ """RmLegacyAudienceGetEntityV2Resource - a model defined in OpenAPI
117
115
 
118
116
  Keyword Args:
119
117
  _check_type (bool): if True, values for parameters in openapi_types
@@ -146,6 +144,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
146
144
  Animal class but this time we won't travel
147
145
  through its discriminator because we passed in
148
146
  _visited_composed_classes = (Animal,)
147
+ attributes (RmLegacyAudienceGetEntityV2): [optional] # noqa: E501
148
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
149
+ type (str, none_type): [optional] # noqa: E501
149
150
  """
150
151
 
151
152
  _check_type = kwargs.pop('_check_type', True)
@@ -177,8 +178,6 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
177
178
  self._configuration = _configuration
178
179
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
180
 
180
- self.type = type
181
- self.attributes = attributes
182
181
  for var_name, var_value in kwargs.items():
183
182
  if var_name not in self.attribute_map and \
184
183
  self._configuration is not None and \
@@ -199,12 +198,8 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
199
198
  ])
200
199
 
201
200
  @convert_js_args_to_python_args
202
- def __init__(self, type, attributes, *args, **kwargs): # noqa: E501
203
- """CreateRetailMediaAudienceV2Data - a model defined in OpenAPI
204
-
205
- Args:
206
- type (str): the name of the entity type
207
- attributes (CreateRetailMediaAudienceV2Attributes):
201
+ def __init__(self, *args, **kwargs): # noqa: E501
202
+ """RmLegacyAudienceGetEntityV2Resource - a model defined in OpenAPI
208
203
 
209
204
  Keyword Args:
210
205
  _check_type (bool): if True, values for parameters in openapi_types
@@ -237,6 +232,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
237
232
  Animal class but this time we won't travel
238
233
  through its discriminator because we passed in
239
234
  _visited_composed_classes = (Animal,)
235
+ attributes (RmLegacyAudienceGetEntityV2): [optional] # noqa: E501
236
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
237
+ type (str, none_type): [optional] # noqa: E501
240
238
  """
241
239
 
242
240
  _check_type = kwargs.pop('_check_type', True)
@@ -266,8 +264,6 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
266
264
  self._configuration = _configuration
267
265
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
268
266
 
269
- self.type = type
270
- self.attributes = attributes
271
267
  for var_name, var_value in kwargs.items():
272
268
  if var_name not in self.attribute_map and \
273
269
  self._configuration is not None and \