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.
- {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/RECORD +34 -38
- {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_v2023_10/__init__.py +1 -1
- criteo_api_retailmedia_v2023_10/api/audience_api.py +113 -100
- criteo_api_retailmedia_v2023_10/api/campaign_api.py +16 -171
- criteo_api_retailmedia_v2023_10/api_client.py +1 -1
- criteo_api_retailmedia_v2023_10/configuration.py +1 -1
- criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2023_10/model/campaign_v202301.py +4 -0
- criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2023_10/model/external_account.py +4 -0
- criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
- criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
- criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
- criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
- criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -22
- criteo_api_retailmedia_v2023_10/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
- criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
- criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
- criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
- criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
- criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
- criteo_api_retailmedia_v2023_10/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
- criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
- criteo_api_retailmedia_v2023_10/model/{resource_of_balance202110.py → rm_legacy_audience_get_entity_v2_resource.py} +11 -11
- criteo_api_retailmedia_v2023_10/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
- criteo_api_retailmedia_v2023_10/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
- criteo_api_retailmedia_v2023_10/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
- criteo_api_retailmedia_v2023_10/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
- criteo_api_retailmedia_v2023_10/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
- criteo_api_retailmedia_v2023_10/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
- criteo_api_retailmedia_v2023_10/models/__init__.py +20 -24
- criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py +0 -287
- criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py +0 -287
- criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py +0 -287
- criteo_api_retailmedia_v2023_10/model/external_balance202110.py +0 -333
- criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py +0 -295
- {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
|
@@ -30,15 +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.
|
|
34
|
-
from criteo_api_retailmedia_v2023_10.model.
|
|
35
|
-
|
|
36
|
-
globals()['
|
|
37
|
-
globals()['CommonWarning'] = CommonWarning
|
|
38
|
-
globals()['CreateRetailMediaAudience'] = CreateRetailMediaAudience
|
|
33
|
+
from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem
|
|
34
|
+
from criteo_api_retailmedia_v2023_10.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_10.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2023_10.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_v2023_10.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_10.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2023_10.model.
|
|
34
|
-
from criteo_api_retailmedia_v2023_10.model.
|
|
35
|
-
globals()['
|
|
36
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2
|
|
34
|
+
from criteo_api_retailmedia_v2023_10.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)
|
|
@@ -31,14 +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.
|
|
35
|
-
from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2 import RetailMediaAudienceV2
|
|
34
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v2_resource import RmLegacyAudienceGetEntityV2Resource
|
|
36
35
|
globals()['CommonProblem'] = CommonProblem
|
|
37
|
-
globals()['
|
|
38
|
-
globals()['RetailMediaAudienceV2'] = RetailMediaAudienceV2
|
|
36
|
+
globals()['RmLegacyAudienceGetEntityV2Resource'] = RmLegacyAudienceGetEntityV2Resource
|
|
39
37
|
|
|
40
38
|
|
|
41
|
-
class
|
|
39
|
+
class RmLegacyAudienceGetEntityV2ListResponse(ModelNormal):
|
|
42
40
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
43
41
|
Ref: https://openapi-generator.tech
|
|
44
42
|
|
|
@@ -91,10 +89,9 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
|
|
|
91
89
|
"""
|
|
92
90
|
lazy_import()
|
|
93
91
|
return {
|
|
94
|
-
'data': ([
|
|
95
|
-
'metadata': (PageMetadata,), # noqa: E501
|
|
96
|
-
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
92
|
+
'data': ([RmLegacyAudienceGetEntityV2Resource], none_type,), # noqa: E501
|
|
97
93
|
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
94
|
+
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
@cached_property
|
|
@@ -104,27 +101,21 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
|
|
|
104
101
|
|
|
105
102
|
attribute_map = {
|
|
106
103
|
'data': 'data', # noqa: E501
|
|
107
|
-
'metadata': 'metadata', # noqa: E501
|
|
108
|
-
'errors': 'errors', # noqa: E501
|
|
109
104
|
'warnings': 'warnings', # noqa: E501
|
|
105
|
+
'errors': 'errors', # noqa: E501
|
|
110
106
|
}
|
|
111
107
|
|
|
112
108
|
read_only_vars = {
|
|
113
|
-
'data', # noqa: E501
|
|
114
|
-
'errors', # noqa: E501
|
|
115
109
|
'warnings', # noqa: E501
|
|
110
|
+
'errors', # noqa: E501
|
|
116
111
|
}
|
|
117
112
|
|
|
118
113
|
_composed_schemas = {}
|
|
119
114
|
|
|
120
115
|
@classmethod
|
|
121
116
|
@convert_js_args_to_python_args
|
|
122
|
-
def _from_openapi_data(cls,
|
|
123
|
-
"""
|
|
124
|
-
|
|
125
|
-
Args:
|
|
126
|
-
data ([RetailMediaAudienceV2]): data
|
|
127
|
-
metadata (PageMetadata):
|
|
117
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
118
|
+
"""RmLegacyAudienceGetEntityV2ListResponse - a model defined in OpenAPI
|
|
128
119
|
|
|
129
120
|
Keyword Args:
|
|
130
121
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -157,8 +148,9 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
|
|
|
157
148
|
Animal class but this time we won't travel
|
|
158
149
|
through its discriminator because we passed in
|
|
159
150
|
_visited_composed_classes = (Animal,)
|
|
160
|
-
|
|
161
|
-
warnings ([CommonProblem], none_type):
|
|
151
|
+
data ([RmLegacyAudienceGetEntityV2Resource], none_type): [optional] # noqa: E501
|
|
152
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
153
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
162
154
|
"""
|
|
163
155
|
|
|
164
156
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -190,8 +182,6 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
|
|
|
190
182
|
self._configuration = _configuration
|
|
191
183
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
192
184
|
|
|
193
|
-
self.data = data
|
|
194
|
-
self.metadata = metadata
|
|
195
185
|
for var_name, var_value in kwargs.items():
|
|
196
186
|
if var_name not in self.attribute_map and \
|
|
197
187
|
self._configuration is not None and \
|
|
@@ -212,10 +202,8 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
|
|
|
212
202
|
])
|
|
213
203
|
|
|
214
204
|
@convert_js_args_to_python_args
|
|
215
|
-
def __init__(self,
|
|
216
|
-
"""
|
|
217
|
-
|
|
218
|
-
metadata (PageMetadata):
|
|
205
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
206
|
+
"""RmLegacyAudienceGetEntityV2ListResponse - a model defined in OpenAPI
|
|
219
207
|
|
|
220
208
|
Keyword Args:
|
|
221
209
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -248,8 +236,9 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
|
|
|
248
236
|
Animal class but this time we won't travel
|
|
249
237
|
through its discriminator because we passed in
|
|
250
238
|
_visited_composed_classes = (Animal,)
|
|
251
|
-
|
|
252
|
-
warnings ([CommonProblem], none_type):
|
|
239
|
+
data ([RmLegacyAudienceGetEntityV2Resource], none_type): [optional] # noqa: E501
|
|
240
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
241
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
253
242
|
"""
|
|
254
243
|
|
|
255
244
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -279,7 +268,6 @@ class RetailMediaAudienceV2ListResponse(ModelNormal):
|
|
|
279
268
|
self._configuration = _configuration
|
|
280
269
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
281
270
|
|
|
282
|
-
self.metadata = metadata
|
|
283
271
|
for var_name, var_value in kwargs.items():
|
|
284
272
|
if var_name not in self.attribute_map and \
|
|
285
273
|
self._configuration is not None and \
|
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2023_10.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v2 import RmLegacyAudienceGetEntityV2
|
|
34
|
+
globals()['RmLegacyAudienceGetEntityV2'] = RmLegacyAudienceGetEntityV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class RmLegacyAudienceGetEntityV2Resource(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,9 +87,9 @@ class ResourceOfBalance202110(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
+
'attributes': (RmLegacyAudienceGetEntityV2,), # noqa: E501
|
|
90
91
|
'id': (str, none_type,), # noqa: E501
|
|
91
92
|
'type': (str, none_type,), # noqa: E501
|
|
92
|
-
'attributes': (ExternalBalance202110,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -98,9 +98,9 @@ class ResourceOfBalance202110(ModelNormal):
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
attribute_map = {
|
|
101
|
+
'attributes': 'attributes', # noqa: E501
|
|
101
102
|
'id': 'id', # noqa: E501
|
|
102
103
|
'type': 'type', # noqa: E501
|
|
103
|
-
'attributes': 'attributes', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
read_only_vars = {
|
|
@@ -111,7 +111,7 @@ class ResourceOfBalance202110(ModelNormal):
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
113
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
-
"""
|
|
114
|
+
"""RmLegacyAudienceGetEntityV2Resource - a model defined in OpenAPI
|
|
115
115
|
|
|
116
116
|
Keyword Args:
|
|
117
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -144,9 +144,9 @@ class ResourceOfBalance202110(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
+
attributes (RmLegacyAudienceGetEntityV2): [optional] # noqa: E501
|
|
147
148
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
148
|
-
type (str, none_type):
|
|
149
|
-
attributes (ExternalBalance202110): [optional] # noqa: E501
|
|
149
|
+
type (str, none_type): [optional] # noqa: E501
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -199,7 +199,7 @@ class ResourceOfBalance202110(ModelNormal):
|
|
|
199
199
|
|
|
200
200
|
@convert_js_args_to_python_args
|
|
201
201
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
-
"""
|
|
202
|
+
"""RmLegacyAudienceGetEntityV2Resource - a model defined in OpenAPI
|
|
203
203
|
|
|
204
204
|
Keyword Args:
|
|
205
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -232,9 +232,9 @@ class ResourceOfBalance202110(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
+
attributes (RmLegacyAudienceGetEntityV2): [optional] # noqa: E501
|
|
235
236
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
236
|
-
type (str, none_type):
|
|
237
|
-
attributes (ExternalBalance202110): [optional] # noqa: E501
|
|
237
|
+
type (str, none_type): [optional] # noqa: E501
|
|
238
238
|
"""
|
|
239
239
|
|
|
240
240
|
_check_type = kwargs.pop('_check_type', True)
|