criteo-api-retailmedia-sdk 2023.4.0.231113__py3-none-any.whl → 2023.4.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.
Files changed (36) hide show
  1. {criteo_api_retailmedia_sdk-2023.4.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.4.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.dist-info}/RECORD +34 -35
  3. {criteo_api_retailmedia_sdk-2023.4.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.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/campaign_api.py +4 -4
  7. criteo_api_retailmedia_v2023_04/api_client.py +1 -1
  8. criteo_api_retailmedia_v2023_04/configuration.py +1 -1
  9. criteo_api_retailmedia_v2023_04/model/campaign_attributes_v202301.py +4 -0
  10. criteo_api_retailmedia_v2023_04/model/campaign_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_04/model/external_account.py +4 -0
  13. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  14. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  15. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  16. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  17. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -28
  18. criteo_api_retailmedia_v2023_04/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  19. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  20. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  21. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  22. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
  23. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  24. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  25. criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
  26. criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -22
  27. criteo_api_retailmedia_v2023_04/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  28. criteo_api_retailmedia_v2023_04/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  29. criteo_api_retailmedia_v2023_04/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  30. criteo_api_retailmedia_v2023_04/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
  31. criteo_api_retailmedia_v2023_04/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  32. criteo_api_retailmedia_v2023_04/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  33. criteo_api_retailmedia_v2023_04/models/__init__.py +20 -21
  34. criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2.py +0 -287
  35. criteo_api_retailmedia_v2023_04/model/get_page_of_audiences_by_account_id_response.py +0 -295
  36. {criteo_api_retailmedia_sdk-2023.4.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.dist-info}/top_level.txt +0 -0
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2023_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class CreateRetailMediaAudienceAttributes(ModelNormal):
33
+ class RmLegacyAudienceCreateEntityV1(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -58,6 +58,7 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
58
58
  ('user_type',): {
59
59
  'VIEWER': "viewer",
60
60
  'BUYER': "buyer",
61
+ 'ADDTOCARTER': "addToCarter",
61
62
  },
62
63
  ('lookback_window',): {
63
64
  'P7D': "P7D",
@@ -73,6 +74,10 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
73
74
  }
74
75
 
75
76
  validations = {
77
+ ('brand_ids',): {
78
+ },
79
+ ('category_ids',): {
80
+ },
76
81
  }
77
82
 
78
83
  @cached_property
@@ -126,13 +131,13 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
126
131
  @classmethod
127
132
  @convert_js_args_to_python_args
128
133
  def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args, **kwargs): # noqa: E501
129
- """CreateRetailMediaAudienceAttributes - a model defined in OpenAPI
134
+ """RmLegacyAudienceCreateEntityV1 - a model defined in OpenAPI
130
135
 
131
136
  Args:
132
137
  user_type (str): Type of the user
133
138
  lookback_window (str): Length of lookback window
134
139
  retailer_id (int): ID of the retailer associated with this audience
135
- name (str): Name of the audience.
140
+ name (str): Name of the audience
136
141
 
137
142
  Keyword Args:
138
143
  _check_type (bool): if True, values for parameters in openapi_types
@@ -223,13 +228,13 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
223
228
 
224
229
  @convert_js_args_to_python_args
225
230
  def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwargs): # noqa: E501
226
- """CreateRetailMediaAudienceAttributes - a model defined in OpenAPI
231
+ """RmLegacyAudienceCreateEntityV1 - a model defined in OpenAPI
227
232
 
228
233
  Args:
229
234
  user_type (str): Type of the user
230
235
  lookback_window (str): Length of lookback window
231
236
  retailer_id (int): ID of the retailer associated with this audience
232
- name (str): Name of the audience.
237
+ name (str): Name of the audience
233
238
 
234
239
  Keyword Args:
235
240
  _check_type (bool): if True, values for parameters in openapi_types
@@ -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_attributes import CreateRetailMediaAudienceAttributes
34
- globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes
33
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_create_entity_v1 import RmLegacyAudienceCreateEntityV1
34
+ globals()['RmLegacyAudienceCreateEntityV1'] = RmLegacyAudienceCreateEntityV1
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceBody(ModelNormal):
37
+ class RmLegacyAudienceCreateEntityV1Resource(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': (RmLegacyAudienceCreateEntityV1,), # 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
+ """RmLegacyAudienceCreateEntityV1Resource - 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 (RmLegacyAudienceCreateEntityV1): [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
+ """RmLegacyAudienceCreateEntityV1Resource - 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 (RmLegacyAudienceCreateEntityV1): [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,12 +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.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2
34
+ from criteo_api_retailmedia_v2023_04.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_04.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_04.model.user_behavior_details_v2 import UserBehaviorDetailsV2
34
- globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2
33
+ from criteo_api_retailmedia_v2023_04.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_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_attributes import CreateRetailMediaAudienceAttributes
34
- globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes
33
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_create_entity_v2 import RmLegacyAudienceCreateEntityV2
34
+ globals()['RmLegacyAudienceCreateEntityV2'] = RmLegacyAudienceCreateEntityV2
35
35
 
36
36
 
37
- class CreateRetailMediaAudience(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,9 +87,9 @@ class CreateRetailMediaAudience(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'type': (str,), # noqa: E501
91
- 'id': (int,), # noqa: E501
92
- 'attributes': (CreateRetailMediaAudienceAttributes,), # noqa: E501
90
+ 'attributes': (RmLegacyAudienceCreateEntityV2,), # noqa: E501
91
+ 'id': (str, none_type,), # noqa: E501
92
+ 'type': (str, none_type,), # noqa: E501
93
93
  }
94
94
 
95
95
  @cached_property
@@ -98,9 +98,9 @@ class CreateRetailMediaAudience(ModelNormal):
98
98
 
99
99
 
100
100
  attribute_map = {
101
- 'type': 'type', # noqa: E501
102
- 'id': 'id', # noqa: E501
103
101
  'attributes': 'attributes', # noqa: E501
102
+ 'id': 'id', # noqa: E501
103
+ 'type': 'type', # noqa: E501
104
104
  }
105
105
 
106
106
  read_only_vars = {
@@ -110,13 +110,8 @@ class CreateRetailMediaAudience(ModelNormal):
110
110
 
111
111
  @classmethod
112
112
  @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E501
114
- """CreateRetailMediaAudience - a model defined in OpenAPI
115
-
116
- Args:
117
- type (str): the name of the entity type
118
- id (int): Unique ID of this audience.
119
- attributes (CreateRetailMediaAudienceAttributes):
113
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
+ """RmLegacyAudienceCreateEntityV2Resource - a model defined in OpenAPI
120
115
 
121
116
  Keyword Args:
122
117
  _check_type (bool): if True, values for parameters in openapi_types
@@ -149,6 +144,9 @@ class CreateRetailMediaAudience(ModelNormal):
149
144
  Animal class but this time we won't travel
150
145
  through its discriminator because we passed in
151
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
152
150
  """
153
151
 
154
152
  _check_type = kwargs.pop('_check_type', True)
@@ -180,9 +178,6 @@ class CreateRetailMediaAudience(ModelNormal):
180
178
  self._configuration = _configuration
181
179
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
180
 
183
- self.type = type
184
- self.id = id
185
- self.attributes = attributes
186
181
  for var_name, var_value in kwargs.items():
187
182
  if var_name not in self.attribute_map and \
188
183
  self._configuration is not None and \
@@ -203,13 +198,8 @@ class CreateRetailMediaAudience(ModelNormal):
203
198
  ])
204
199
 
205
200
  @convert_js_args_to_python_args
206
- def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501
207
- """CreateRetailMediaAudience - a model defined in OpenAPI
208
-
209
- Args:
210
- type (str): the name of the entity type
211
- id (int): Unique ID of this audience.
212
- attributes (CreateRetailMediaAudienceAttributes):
201
+ def __init__(self, *args, **kwargs): # noqa: E501
202
+ """RmLegacyAudienceCreateEntityV2Resource - a model defined in OpenAPI
213
203
 
214
204
  Keyword Args:
215
205
  _check_type (bool): if True, values for parameters in openapi_types
@@ -242,6 +232,9 @@ class CreateRetailMediaAudience(ModelNormal):
242
232
  Animal class but this time we won't travel
243
233
  through its discriminator because we passed in
244
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
245
238
  """
246
239
 
247
240
  _check_type = kwargs.pop('_check_type', True)
@@ -271,9 +264,6 @@ class CreateRetailMediaAudience(ModelNormal):
271
264
  self._configuration = _configuration
272
265
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
273
266
 
274
- self.type = type
275
- self.id = id
276
- self.attributes = attributes
277
267
  for var_name, var_value in kwargs.items():
278
268
  if var_name not in self.attribute_map and \
279
269
  self._configuration is not None and \
@@ -31,10 +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.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_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_data import CreateRetailMediaAudienceV2Data
34
- globals()['CreateRetailMediaAudienceV2Data'] = CreateRetailMediaAudienceV2Data
33
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_create_entity_v1_resource import RmLegacyAudienceCreateEntityV1Resource
34
+ globals()['RmLegacyAudienceCreateEntityV1Resource'] = RmLegacyAudienceCreateEntityV1Resource
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceV2Request(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 CreateRetailMediaAudienceV2Request(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (CreateRetailMediaAudienceV2Data,), # noqa: E501
90
+ 'data': (RmLegacyAudienceCreateEntityV1Resource,), # 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
+ """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 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 (RmLegacyAudienceCreateEntityV1Resource): [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
+ """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 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 (RmLegacyAudienceCreateEntityV1Resource): [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,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_body import CreateRetailMediaAudienceBody
34
- globals()['CreateRetailMediaAudienceBody'] = CreateRetailMediaAudienceBody
33
+ from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_create_entity_v2_resource import RmLegacyAudienceCreateEntityV2Resource
34
+ globals()['RmLegacyAudienceCreateEntityV2Resource'] = RmLegacyAudienceCreateEntityV2Resource
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceRequest(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 CreateRetailMediaAudienceRequest(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (CreateRetailMediaAudienceBody,), # noqa: E501
90
+ 'data': (RmLegacyAudienceCreateEntityV2Resource,), # 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
+ """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 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 (RmLegacyAudienceCreateEntityV2Resource): [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
+ """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 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 (RmLegacyAudienceCreateEntityV2Resource): [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 \