criteo-api-retailmedia-sdk 2023.10.0.231113__py3-none-any.whl → 2023.10.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 (39) hide show
  1. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/RECORD +34 -38
  3. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_10/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_10/api/audience_api.py +113 -100
  6. criteo_api_retailmedia_v2023_10/api/campaign_api.py +16 -171
  7. criteo_api_retailmedia_v2023_10/api_client.py +1 -1
  8. criteo_api_retailmedia_v2023_10/configuration.py +1 -1
  9. criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py +4 -0
  10. criteo_api_retailmedia_v2023_10/model/campaign_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_10/model/external_account.py +4 -0
  13. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  14. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  15. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  16. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  17. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -22
  18. criteo_api_retailmedia_v2023_10/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  19. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  20. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  21. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  22. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
  23. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  24. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  25. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
  26. criteo_api_retailmedia_v2023_10/model/{resource_of_balance202110.py → rm_legacy_audience_get_entity_v2_resource.py} +11 -11
  27. criteo_api_retailmedia_v2023_10/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  28. criteo_api_retailmedia_v2023_10/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  29. criteo_api_retailmedia_v2023_10/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  30. criteo_api_retailmedia_v2023_10/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
  31. criteo_api_retailmedia_v2023_10/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  32. criteo_api_retailmedia_v2023_10/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  33. criteo_api_retailmedia_v2023_10/models/__init__.py +20 -24
  34. criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py +0 -287
  35. criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py +0 -287
  36. criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py +0 -287
  37. criteo_api_retailmedia_v2023_10/model/external_balance202110.py +0 -333
  38. criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py +0 -295
  39. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/top_level.txt +0 -0
@@ -31,12 +31,12 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
31
31
 
32
32
  def lazy_import():
33
33
  from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem
34
- from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2
34
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v1_resource import RmLegacyAudienceCreateEntityV1Resource
35
35
  globals()['CommonProblem'] = CommonProblem
36
- globals()['CreateRetailMediaAudienceV2'] = CreateRetailMediaAudienceV2
36
+ globals()['RmLegacyAudienceCreateEntityV1Resource'] = RmLegacyAudienceCreateEntityV1Resource
37
37
 
38
38
 
39
- class RetailMediaAudienceV2Response(ModelNormal):
39
+ class RmLegacyAudienceCreateEntityV1Response(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -89,9 +89,9 @@ class RetailMediaAudienceV2Response(ModelNormal):
89
89
  """
90
90
  lazy_import()
91
91
  return {
92
- 'data': (CreateRetailMediaAudienceV2,), # noqa: E501
93
- 'errors': ([CommonProblem], none_type,), # noqa: E501
92
+ 'data': (RmLegacyAudienceCreateEntityV1Resource,), # noqa: E501
94
93
  'warnings': ([CommonProblem], none_type,), # noqa: E501
94
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
95
95
  }
96
96
 
97
97
  @cached_property
@@ -101,13 +101,13 @@ class RetailMediaAudienceV2Response(ModelNormal):
101
101
 
102
102
  attribute_map = {
103
103
  'data': 'data', # noqa: E501
104
- 'errors': 'errors', # noqa: E501
105
104
  'warnings': 'warnings', # noqa: E501
105
+ 'errors': 'errors', # noqa: E501
106
106
  }
107
107
 
108
108
  read_only_vars = {
109
- 'errors', # noqa: E501
110
109
  'warnings', # noqa: E501
110
+ 'errors', # noqa: E501
111
111
  }
112
112
 
113
113
  _composed_schemas = {}
@@ -115,7 +115,7 @@ class RetailMediaAudienceV2Response(ModelNormal):
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
- """RetailMediaAudienceV2Response - a model defined in OpenAPI
118
+ """RmLegacyAudienceCreateEntityV1Response - a model defined in OpenAPI
119
119
 
120
120
  Keyword Args:
121
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -148,9 +148,9 @@ class RetailMediaAudienceV2Response(ModelNormal):
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
- data (CreateRetailMediaAudienceV2): [optional] # noqa: E501
152
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
153
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
151
+ data (RmLegacyAudienceCreateEntityV1Resource): [optional] # noqa: E501
152
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
153
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
154
154
  """
155
155
 
156
156
  _check_type = kwargs.pop('_check_type', True)
@@ -203,7 +203,7 @@ class RetailMediaAudienceV2Response(ModelNormal):
203
203
 
204
204
  @convert_js_args_to_python_args
205
205
  def __init__(self, *args, **kwargs): # noqa: E501
206
- """RetailMediaAudienceV2Response - a model defined in OpenAPI
206
+ """RmLegacyAudienceCreateEntityV1Response - a model defined in OpenAPI
207
207
 
208
208
  Keyword Args:
209
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,9 +236,9 @@ class RetailMediaAudienceV2Response(ModelNormal):
236
236
  Animal class but this time we won't travel
237
237
  through its discriminator because we passed in
238
238
  _visited_composed_classes = (Animal,)
239
- data (CreateRetailMediaAudienceV2): [optional] # noqa: E501
240
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
241
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
239
+ data (RmLegacyAudienceCreateEntityV1Resource): [optional] # noqa: E501
240
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
241
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
242
242
  """
243
243
 
244
244
  _check_type = kwargs.pop('_check_type', True)
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_10.model.user_behavior_details_v2 import UserBehaviorDetailsV2
34
- globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2
33
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_user_behavior_create_v2 import RmLegacyAudienceUserBehaviorCreateV2
34
+ globals()['RmLegacyAudienceUserBehaviorCreateV2'] = RmLegacyAudienceUserBehaviorCreateV2
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceV2Attributes(ModelNormal):
37
+ class RmLegacyAudienceCreateEntityV2(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -88,7 +88,7 @@ class CreateRetailMediaAudienceV2Attributes(ModelNormal):
88
88
  lazy_import()
89
89
  return {
90
90
  'retailer_id': (int,), # noqa: E501
91
- 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501
91
+ 'user_behavior_details': (RmLegacyAudienceUserBehaviorCreateV2,), # noqa: E501
92
92
  'name': (str,), # noqa: E501
93
93
  }
94
94
 
@@ -111,12 +111,12 @@ class CreateRetailMediaAudienceV2Attributes(ModelNormal):
111
111
  @classmethod
112
112
  @convert_js_args_to_python_args
113
113
  def _from_openapi_data(cls, retailer_id, user_behavior_details, name, *args, **kwargs): # noqa: E501
114
- """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI
114
+ """RmLegacyAudienceCreateEntityV2 - a model defined in OpenAPI
115
115
 
116
116
  Args:
117
117
  retailer_id (int): ID of the retailer associated with this audience
118
- user_behavior_details (UserBehaviorDetailsV2):
119
- name (str): Name of the audience.
118
+ user_behavior_details (RmLegacyAudienceUserBehaviorCreateV2):
119
+ name (str): Name of the audience
120
120
 
121
121
  Keyword Args:
122
122
  _check_type (bool): if True, values for parameters in openapi_types
@@ -204,12 +204,12 @@ class CreateRetailMediaAudienceV2Attributes(ModelNormal):
204
204
 
205
205
  @convert_js_args_to_python_args
206
206
  def __init__(self, retailer_id, user_behavior_details, name, *args, **kwargs): # noqa: E501
207
- """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI
207
+ """RmLegacyAudienceCreateEntityV2 - a model defined in OpenAPI
208
208
 
209
209
  Args:
210
210
  retailer_id (int): ID of the retailer associated with this audience
211
- user_behavior_details (UserBehaviorDetailsV2):
212
- name (str): Name of the audience.
211
+ user_behavior_details (RmLegacyAudienceUserBehaviorCreateV2):
212
+ name (str): Name of the audience
213
213
 
214
214
  Keyword Args:
215
215
  _check_type (bool): if True, values for parameters in openapi_types
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes
34
- globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes
33
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v2 import RmLegacyAudienceCreateEntityV2
34
+ globals()['RmLegacyAudienceCreateEntityV2'] = RmLegacyAudienceCreateEntityV2
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceBody(ModelNormal):
37
+ class RmLegacyAudienceCreateEntityV2Resource(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 CreateRetailMediaAudienceBody(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'type': (str,), # noqa: E501
91
- 'attributes': (CreateRetailMediaAudienceAttributes,), # noqa: E501
90
+ 'attributes': (RmLegacyAudienceCreateEntityV2,), # 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 CreateRetailMediaAudienceBody(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 CreateRetailMediaAudienceBody(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
- """CreateRetailMediaAudienceBody - a model defined in OpenAPI
113
-
114
- Args:
115
- type (str): the name of the entity type
116
- attributes (CreateRetailMediaAudienceAttributes):
113
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
+ """RmLegacyAudienceCreateEntityV2Resource - 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 CreateRetailMediaAudienceBody(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 (RmLegacyAudienceCreateEntityV2): [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 CreateRetailMediaAudienceBody(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 CreateRetailMediaAudienceBody(ModelNormal):
199
198
  ])
200
199
 
201
200
  @convert_js_args_to_python_args
202
- def __init__(self, type, attributes, *args, **kwargs): # noqa: E501
203
- """CreateRetailMediaAudienceBody - a model defined in OpenAPI
204
-
205
- Args:
206
- type (str): the name of the entity type
207
- attributes (CreateRetailMediaAudienceAttributes):
201
+ def __init__(self, *args, **kwargs): # noqa: E501
202
+ """RmLegacyAudienceCreateEntityV2Resource - 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 CreateRetailMediaAudienceBody(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 (RmLegacyAudienceCreateEntityV2): [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 CreateRetailMediaAudienceBody(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 \
@@ -31,10 +31,12 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
31
31
 
32
32
  def lazy_import():
33
33
  from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem
34
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v2_resource import RmLegacyAudienceCreateEntityV2Resource
34
35
  globals()['CommonProblem'] = CommonProblem
36
+ globals()['RmLegacyAudienceCreateEntityV2Resource'] = RmLegacyAudienceCreateEntityV2Resource
35
37
 
36
38
 
37
- class CommonStatusCodeResponse(ModelNormal):
39
+ class RmLegacyAudienceCreateEntityV2Response(ModelNormal):
38
40
  """NOTE: This class is auto generated by OpenAPI Generator.
39
41
  Ref: https://openapi-generator.tech
40
42
 
@@ -87,8 +89,9 @@ class CommonStatusCodeResponse(ModelNormal):
87
89
  """
88
90
  lazy_import()
89
91
  return {
90
- 'errors': ([CommonProblem], none_type,), # noqa: E501
92
+ 'data': (RmLegacyAudienceCreateEntityV2Resource,), # noqa: E501
91
93
  'warnings': ([CommonProblem], none_type,), # noqa: E501
94
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
92
95
  }
93
96
 
94
97
  @cached_property
@@ -97,13 +100,14 @@ class CommonStatusCodeResponse(ModelNormal):
97
100
 
98
101
 
99
102
  attribute_map = {
100
- 'errors': 'errors', # noqa: E501
103
+ 'data': 'data', # noqa: E501
101
104
  'warnings': 'warnings', # noqa: E501
105
+ 'errors': 'errors', # noqa: E501
102
106
  }
103
107
 
104
108
  read_only_vars = {
105
- 'errors', # noqa: E501
106
109
  'warnings', # noqa: E501
110
+ 'errors', # noqa: E501
107
111
  }
108
112
 
109
113
  _composed_schemas = {}
@@ -111,7 +115,7 @@ class CommonStatusCodeResponse(ModelNormal):
111
115
  @classmethod
112
116
  @convert_js_args_to_python_args
113
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """CommonStatusCodeResponse - a model defined in OpenAPI
118
+ """RmLegacyAudienceCreateEntityV2Response - a model defined in OpenAPI
115
119
 
116
120
  Keyword Args:
117
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -144,8 +148,9 @@ class CommonStatusCodeResponse(ModelNormal):
144
148
  Animal class but this time we won't travel
145
149
  through its discriminator because we passed in
146
150
  _visited_composed_classes = (Animal,)
147
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
148
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
151
+ data (RmLegacyAudienceCreateEntityV2Resource): [optional] # noqa: E501
152
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
153
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
149
154
  """
150
155
 
151
156
  _check_type = kwargs.pop('_check_type', True)
@@ -198,7 +203,7 @@ class CommonStatusCodeResponse(ModelNormal):
198
203
 
199
204
  @convert_js_args_to_python_args
200
205
  def __init__(self, *args, **kwargs): # noqa: E501
201
- """CommonStatusCodeResponse - a model defined in OpenAPI
206
+ """RmLegacyAudienceCreateEntityV2Response - a model defined in OpenAPI
202
207
 
203
208
  Keyword Args:
204
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -231,8 +236,9 @@ class CommonStatusCodeResponse(ModelNormal):
231
236
  Animal class but this time we won't travel
232
237
  through its discriminator because we passed in
233
238
  _visited_composed_classes = (Animal,)
234
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
235
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
239
+ data (RmLegacyAudienceCreateEntityV2Resource): [optional] # noqa: E501
240
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
241
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
236
242
  """
237
243
 
238
244
  _check_type = kwargs.pop('_check_type', True)
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody
34
- globals()['CreateRetailMediaAudienceBody'] = CreateRetailMediaAudienceBody
33
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v1_resource import RmLegacyAudienceCreateEntityV1Resource
34
+ globals()['RmLegacyAudienceCreateEntityV1Resource'] = RmLegacyAudienceCreateEntityV1Resource
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceRequest(ModelNormal):
37
+ class RmLegacyAudienceCreateInputEntityV1(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,7 +87,7 @@ class CreateRetailMediaAudienceRequest(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (CreateRetailMediaAudienceBody,), # noqa: E501
90
+ 'data': (RmLegacyAudienceCreateEntityV1Resource,), # noqa: E501
91
91
  }
92
92
 
93
93
  @cached_property
@@ -106,11 +106,8 @@ class CreateRetailMediaAudienceRequest(ModelNormal):
106
106
 
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
- def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
110
- """CreateRetailMediaAudienceRequest - a model defined in OpenAPI
111
-
112
- Args:
113
- data (CreateRetailMediaAudienceBody):
109
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
+ """RmLegacyAudienceCreateInputEntityV1 - a model defined in OpenAPI
114
111
 
115
112
  Keyword Args:
116
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -143,6 +140,7 @@ class CreateRetailMediaAudienceRequest(ModelNormal):
143
140
  Animal class but this time we won't travel
144
141
  through its discriminator because we passed in
145
142
  _visited_composed_classes = (Animal,)
143
+ data (RmLegacyAudienceCreateEntityV1Resource): [optional] # noqa: E501
146
144
  """
147
145
 
148
146
  _check_type = kwargs.pop('_check_type', True)
@@ -174,7 +172,6 @@ class CreateRetailMediaAudienceRequest(ModelNormal):
174
172
  self._configuration = _configuration
175
173
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
174
 
177
- self.data = data
178
175
  for var_name, var_value in kwargs.items():
179
176
  if var_name not in self.attribute_map and \
180
177
  self._configuration is not None and \
@@ -195,11 +192,8 @@ class CreateRetailMediaAudienceRequest(ModelNormal):
195
192
  ])
196
193
 
197
194
  @convert_js_args_to_python_args
198
- def __init__(self, data, *args, **kwargs): # noqa: E501
199
- """CreateRetailMediaAudienceRequest - a model defined in OpenAPI
200
-
201
- Args:
202
- data (CreateRetailMediaAudienceBody):
195
+ def __init__(self, *args, **kwargs): # noqa: E501
196
+ """RmLegacyAudienceCreateInputEntityV1 - a model defined in OpenAPI
203
197
 
204
198
  Keyword Args:
205
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -232,6 +226,7 @@ class CreateRetailMediaAudienceRequest(ModelNormal):
232
226
  Animal class but this time we won't travel
233
227
  through its discriminator because we passed in
234
228
  _visited_composed_classes = (Animal,)
229
+ data (RmLegacyAudienceCreateEntityV1Resource): [optional] # noqa: E501
235
230
  """
236
231
 
237
232
  _check_type = kwargs.pop('_check_type', True)
@@ -261,7 +256,6 @@ class CreateRetailMediaAudienceRequest(ModelNormal):
261
256
  self._configuration = _configuration
262
257
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
258
 
264
- self.data = data
265
259
  for var_name, var_value in kwargs.items():
266
260
  if var_name not in self.attribute_map and \
267
261
  self._configuration is not None and \
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data
34
- globals()['CreateRetailMediaAudienceV2Data'] = CreateRetailMediaAudienceV2Data
33
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v2_resource import RmLegacyAudienceCreateEntityV2Resource
34
+ globals()['RmLegacyAudienceCreateEntityV2Resource'] = RmLegacyAudienceCreateEntityV2Resource
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceV2Request(ModelNormal):
37
+ class RmLegacyAudienceCreateInputEntityV2(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,7 +87,7 @@ class CreateRetailMediaAudienceV2Request(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (CreateRetailMediaAudienceV2Data,), # noqa: E501
90
+ 'data': (RmLegacyAudienceCreateEntityV2Resource,), # noqa: E501
91
91
  }
92
92
 
93
93
  @cached_property
@@ -106,11 +106,8 @@ class CreateRetailMediaAudienceV2Request(ModelNormal):
106
106
 
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
- def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
110
- """CreateRetailMediaAudienceV2Request - a model defined in OpenAPI
111
-
112
- Args:
113
- data (CreateRetailMediaAudienceV2Data):
109
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
+ """RmLegacyAudienceCreateInputEntityV2 - a model defined in OpenAPI
114
111
 
115
112
  Keyword Args:
116
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -143,6 +140,7 @@ class CreateRetailMediaAudienceV2Request(ModelNormal):
143
140
  Animal class but this time we won't travel
144
141
  through its discriminator because we passed in
145
142
  _visited_composed_classes = (Animal,)
143
+ data (RmLegacyAudienceCreateEntityV2Resource): [optional] # noqa: E501
146
144
  """
147
145
 
148
146
  _check_type = kwargs.pop('_check_type', True)
@@ -174,7 +172,6 @@ class CreateRetailMediaAudienceV2Request(ModelNormal):
174
172
  self._configuration = _configuration
175
173
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
174
 
177
- self.data = data
178
175
  for var_name, var_value in kwargs.items():
179
176
  if var_name not in self.attribute_map and \
180
177
  self._configuration is not None and \
@@ -195,11 +192,8 @@ class CreateRetailMediaAudienceV2Request(ModelNormal):
195
192
  ])
196
193
 
197
194
  @convert_js_args_to_python_args
198
- def __init__(self, data, *args, **kwargs): # noqa: E501
199
- """CreateRetailMediaAudienceV2Request - a model defined in OpenAPI
200
-
201
- Args:
202
- data (CreateRetailMediaAudienceV2Data):
195
+ def __init__(self, *args, **kwargs): # noqa: E501
196
+ """RmLegacyAudienceCreateInputEntityV2 - a model defined in OpenAPI
203
197
 
204
198
  Keyword Args:
205
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -232,6 +226,7 @@ class CreateRetailMediaAudienceV2Request(ModelNormal):
232
226
  Animal class but this time we won't travel
233
227
  through its discriminator because we passed in
234
228
  _visited_composed_classes = (Animal,)
229
+ data (RmLegacyAudienceCreateEntityV2Resource): [optional] # noqa: E501
235
230
  """
236
231
 
237
232
  _check_type = kwargs.pop('_check_type', True)
@@ -261,7 +256,6 @@ class CreateRetailMediaAudienceV2Request(ModelNormal):
261
256
  self._configuration = _configuration
262
257
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
258
 
264
- self.data = data
265
259
  for var_name, var_value in kwargs.items():
266
260
  if var_name not in self.attribute_map and \
267
261
  self._configuration is not None and \
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_10.model.customer_list_details import CustomerListDetails
34
- from criteo_api_retailmedia_v2023_10.model.user_behavior_details_v2 import UserBehaviorDetailsV2
35
- globals()['CustomerListDetails'] = CustomerListDetails
36
- globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2
33
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
34
+ from criteo_api_retailmedia_v2023_10.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 \