criteo-api-retailmedia-sdk 2023.4.0.240118__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.
- {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.dist-info}/RECORD +33 -34
- criteo_api_retailmedia_v2023_04/__init__.py +1 -1
- criteo_api_retailmedia_v2023_04/api/audience_api.py +113 -100
- criteo_api_retailmedia_v2023_04/api_client.py +1 -1
- criteo_api_retailmedia_v2023_04/configuration.py +1 -1
- criteo_api_retailmedia_v2023_04/model/campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2023_04/model/campaign_v202301.py +4 -0
- criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2023_04/model/external_account.py +4 -0
- criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
- criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
- criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
- criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
- criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -28
- criteo_api_retailmedia_v2023_04/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
- criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
- criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
- criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +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
- criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
- criteo_api_retailmedia_v2023_04/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
- criteo_api_retailmedia_v2023_04/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
- criteo_api_retailmedia_v2023_04/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -22
- criteo_api_retailmedia_v2023_04/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
- criteo_api_retailmedia_v2023_04/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
- criteo_api_retailmedia_v2023_04/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
- criteo_api_retailmedia_v2023_04/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
- criteo_api_retailmedia_v2023_04/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
- criteo_api_retailmedia_v2023_04/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
- criteo_api_retailmedia_v2023_04/models/__init__.py +20 -21
- criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2.py +0 -287
- criteo_api_retailmedia_v2023_04/model/get_page_of_audiences_by_account_id_response.py +0 -295
- {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-2023.4.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.4.0.240207.dist-info}/top_level.txt +0 -0
|
@@ -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.
|
|
34
|
-
globals()['
|
|
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
|
|
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': (
|
|
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,
|
|
110
|
-
"""
|
|
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,
|
|
199
|
-
"""
|
|
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.
|
|
34
|
-
globals()['
|
|
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
|
|
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': (
|
|
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,
|
|
110
|
-
"""
|
|
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,
|
|
199
|
-
"""
|
|
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 \
|
|
@@ -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.
|
|
34
|
-
from criteo_api_retailmedia_v2023_04.model.
|
|
35
|
-
globals()['
|
|
36
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_v2023_04.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
|
|
34
|
+
from criteo_api_retailmedia_v2023_04.model.rm_legacy_segment_user_behavior_v1 import RmLegacySegmentUserBehaviorV1
|
|
35
|
+
globals()['RmLegacySegmentCustomerList'] = RmLegacySegmentCustomerList
|
|
36
|
+
globals()['RmLegacySegmentUserBehaviorV1'] = RmLegacySegmentUserBehaviorV1
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class
|
|
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
|
-
'
|
|
95
|
-
'
|
|
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,
|
|
118
|
-
"""
|
|
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
|
-
|
|
122
|
-
|
|
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 (
|
|
156
|
-
customer_list_details (
|
|
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,
|
|
211
|
-
"""
|
|
210
|
+
def __init__(self, name, retailer_id, *args, **kwargs): # noqa: E501
|
|
211
|
+
"""RmLegacyAudienceGetEntityV1 - a model defined in OpenAPI
|
|
212
212
|
|
|
213
213
|
Args:
|
|
214
|
-
|
|
215
|
-
|
|
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 (
|
|
249
|
-
customer_list_details (
|
|
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 \
|
|
@@ -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.
|
|
34
|
-
from criteo_api_retailmedia_v2023_04.model.
|
|
35
|
-
|
|
36
|
-
globals()['
|
|
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
|
|
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': (
|
|
95
|
-
'
|
|
96
|
-
'
|
|
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
|
-
"""
|
|
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 (
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
"""
|
|
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 (
|
|
242
|
-
|
|
243
|
-
|
|
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.
|
|
34
|
-
globals()['
|
|
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
|
|
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
|
-
('
|
|
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
|
-
'
|
|
95
|
-
'id': (str,), # noqa: E501
|
|
96
|
-
'
|
|
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,
|
|
118
|
-
"""
|
|
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,
|
|
211
|
-
"""
|
|
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.
|
|
34
|
-
from criteo_api_retailmedia_v2023_04.model.
|
|
35
|
-
globals()['
|
|
36
|
-
globals()['
|
|
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
|
|
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': (
|
|
95
|
-
'customer_list_details': (
|
|
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
|
-
"""
|
|
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 (
|
|
156
|
-
customer_list_details (
|
|
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
|
-
"""
|
|
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 (
|
|
249
|
-
customer_list_details (
|
|
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)
|