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
|
@@ -76,7 +76,7 @@ class ApiClient(object):
|
|
|
76
76
|
self.default_headers[header_name] = header_value
|
|
77
77
|
self.cookie = cookie
|
|
78
78
|
# Set default User-Agent.
|
|
79
|
-
self.user_agent = 'OpenAPI-Generator/2023.04.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/2023.04.0.240207/python'
|
|
80
80
|
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
return self
|
|
@@ -395,7 +395,7 @@ class Configuration(object):
|
|
|
395
395
|
"OS: {env}\n"\
|
|
396
396
|
"Python Version: {pyversion}\n"\
|
|
397
397
|
"Version of the API: 2023-04\n"\
|
|
398
|
-
"SDK Package Version: 2023.04.0.
|
|
398
|
+
"SDK Package Version: 2023.04.0.240207".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -131,6 +131,7 @@ class CampaignAttributesV202301(ModelNormal):
|
|
|
131
131
|
'daily_pacing': (float, none_type,), # noqa: E501
|
|
132
132
|
'click_attribution_scope': (str, none_type,), # noqa: E501
|
|
133
133
|
'view_attribution_scope': (str, none_type,), # noqa: E501
|
|
134
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
@cached_property
|
|
@@ -152,6 +153,7 @@ class CampaignAttributesV202301(ModelNormal):
|
|
|
152
153
|
'daily_pacing': 'dailyPacing', # noqa: E501
|
|
153
154
|
'click_attribution_scope': 'clickAttributionScope', # noqa: E501
|
|
154
155
|
'view_attribution_scope': 'viewAttributionScope', # noqa: E501
|
|
156
|
+
'company_name': 'companyName', # noqa: E501
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
read_only_vars = {
|
|
@@ -210,6 +212,7 @@ class CampaignAttributesV202301(ModelNormal):
|
|
|
210
212
|
daily_pacing (float, none_type): [optional] # noqa: E501
|
|
211
213
|
click_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
212
214
|
view_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
215
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
213
216
|
"""
|
|
214
217
|
|
|
215
218
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -314,6 +317,7 @@ class CampaignAttributesV202301(ModelNormal):
|
|
|
314
317
|
daily_pacing (float, none_type): [optional] # noqa: E501
|
|
315
318
|
click_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
316
319
|
view_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
320
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
317
321
|
"""
|
|
318
322
|
|
|
319
323
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -145,6 +145,7 @@ class CampaignV202301(ModelNormal):
|
|
|
145
145
|
'daily_pacing': (float, none_type,), # noqa: E501
|
|
146
146
|
'click_attribution_scope': (str, none_type,), # noqa: E501
|
|
147
147
|
'view_attribution_scope': (str, none_type,), # noqa: E501
|
|
148
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
@cached_property
|
|
@@ -173,6 +174,7 @@ class CampaignV202301(ModelNormal):
|
|
|
173
174
|
'daily_pacing': 'dailyPacing', # noqa: E501
|
|
174
175
|
'click_attribution_scope': 'clickAttributionScope', # noqa: E501
|
|
175
176
|
'view_attribution_scope': 'viewAttributionScope', # noqa: E501
|
|
177
|
+
'company_name': 'companyName', # noqa: E501
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
read_only_vars = {
|
|
@@ -238,6 +240,7 @@ class CampaignV202301(ModelNormal):
|
|
|
238
240
|
daily_pacing (float, none_type): [optional] # noqa: E501
|
|
239
241
|
click_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
240
242
|
view_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
243
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
241
244
|
"""
|
|
242
245
|
|
|
243
246
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -355,6 +358,7 @@ class CampaignV202301(ModelNormal):
|
|
|
355
358
|
daily_pacing (float, none_type): [optional] # noqa: E501
|
|
356
359
|
click_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
357
360
|
view_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
361
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
358
362
|
"""
|
|
359
363
|
|
|
360
364
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -124,6 +124,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
|
|
|
124
124
|
'daily_pacing': (float, none_type,), # noqa: E501
|
|
125
125
|
'click_attribution_scope': (str, none_type,), # noqa: E501
|
|
126
126
|
'view_attribution_scope': (str, none_type,), # noqa: E501
|
|
127
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
@cached_property
|
|
@@ -143,6 +144,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
|
|
|
143
144
|
'daily_pacing': 'dailyPacing', # noqa: E501
|
|
144
145
|
'click_attribution_scope': 'clickAttributionScope', # noqa: E501
|
|
145
146
|
'view_attribution_scope': 'viewAttributionScope', # noqa: E501
|
|
147
|
+
'company_name': 'companyName', # noqa: E501
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
read_only_vars = {
|
|
@@ -199,6 +201,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
|
|
|
199
201
|
daily_pacing (float, none_type): [optional] # noqa: E501
|
|
200
202
|
click_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
201
203
|
view_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
204
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
202
205
|
"""
|
|
203
206
|
|
|
204
207
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -303,6 +306,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
|
|
|
303
306
|
daily_pacing (float, none_type): [optional] # noqa: E501
|
|
304
307
|
click_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
305
308
|
view_attribution_scope (str, none_type): [optional] # noqa: E501
|
|
309
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
306
310
|
"""
|
|
307
311
|
|
|
308
312
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -107,6 +107,7 @@ class ExternalAccount(ModelNormal):
|
|
|
107
107
|
'parent_account_label': (str,), # noqa: E501
|
|
108
108
|
'time_zone': (str,), # noqa: E501
|
|
109
109
|
'subtype': (str, none_type,), # noqa: E501
|
|
110
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
@cached_property
|
|
@@ -122,6 +123,7 @@ class ExternalAccount(ModelNormal):
|
|
|
122
123
|
'parent_account_label': 'parentAccountLabel', # noqa: E501
|
|
123
124
|
'time_zone': 'timeZone', # noqa: E501
|
|
124
125
|
'subtype': 'subtype', # noqa: E501
|
|
126
|
+
'company_name': 'companyName', # noqa: E501
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
read_only_vars = {
|
|
@@ -174,6 +176,7 @@ class ExternalAccount(ModelNormal):
|
|
|
174
176
|
through its discriminator because we passed in
|
|
175
177
|
_visited_composed_classes = (Animal,)
|
|
176
178
|
subtype (str, none_type): [optional] # noqa: E501
|
|
179
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
177
180
|
"""
|
|
178
181
|
|
|
179
182
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -274,6 +277,7 @@ class ExternalAccount(ModelNormal):
|
|
|
274
277
|
through its discriminator because we passed in
|
|
275
278
|
_visited_composed_classes = (Animal,)
|
|
276
279
|
subtype (str, none_type): [optional] # noqa: E501
|
|
280
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
277
281
|
"""
|
|
278
282
|
|
|
279
283
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2023_04.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
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
|
-
"""
|
|
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
|
-
"""
|
|
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.
|
|
34
|
-
globals()['
|
|
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
|
|
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
|
-
'
|
|
91
|
-
'
|
|
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,
|
|
112
|
-
"""
|
|
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,
|
|
203
|
-
"""
|
|
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.
|
|
34
|
+
from criteo_api_retailmedia_v2023_04.model.rm_legacy_audience_create_entity_v1_resource import RmLegacyAudienceCreateEntityV1Resource
|
|
35
35
|
globals()['CommonProblem'] = CommonProblem
|
|
36
|
-
globals()['
|
|
36
|
+
globals()['RmLegacyAudienceCreateEntityV1Resource'] = RmLegacyAudienceCreateEntityV1Resource
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class
|
|
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': (
|
|
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
|
-
"""
|
|
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 (
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
"""
|
|
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 (
|
|
240
|
-
|
|
241
|
-
|
|
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.
|
|
34
|
-
globals()['
|
|
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
|
|
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': (
|
|
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
|
-
"""
|
|
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 (
|
|
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
|
-
"""
|
|
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 (
|
|
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.
|
|
34
|
-
globals()['
|
|
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
|
|
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
|
-
'
|
|
91
|
-
'id': (
|
|
92
|
-
'
|
|
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,
|
|
114
|
-
"""
|
|
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,
|
|
207
|
-
"""
|
|
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
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
-
"""
|
|
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
|
-
|
|
148
|
-
warnings ([CommonProblem], none_type):
|
|
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
|
-
"""
|
|
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
|
-
|
|
235
|
-
warnings ([CommonProblem], none_type):
|
|
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)
|