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,7 +30,7 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class RmLegacySegmentUserBehaviorV1(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -55,9 +55,10 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
-
('
|
|
59
|
-
'
|
|
60
|
-
'
|
|
58
|
+
('user_type',): {
|
|
59
|
+
'VIEWER': "viewer",
|
|
60
|
+
'BUYER': "buyer",
|
|
61
|
+
'ADDTOCARTER': "addToCarter",
|
|
61
62
|
},
|
|
62
63
|
('lookback_window',): {
|
|
63
64
|
'P7D': "P7D",
|
|
@@ -70,13 +71,16 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
70
71
|
'P150D': "P150D",
|
|
71
72
|
'P180D': "P180D",
|
|
72
73
|
},
|
|
73
|
-
('
|
|
74
|
-
'
|
|
75
|
-
'
|
|
74
|
+
('target_type',): {
|
|
75
|
+
'None': None,
|
|
76
|
+
'BRAND': "brand",
|
|
77
|
+
'CATEGORY': "category",
|
|
76
78
|
},
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
validations = {
|
|
82
|
+
('target_ids',): {
|
|
83
|
+
},
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
@cached_property
|
|
@@ -100,10 +104,10 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
100
104
|
and the value is attribute type.
|
|
101
105
|
"""
|
|
102
106
|
return {
|
|
103
|
-
'target_type': (str,), # noqa: E501
|
|
104
|
-
'target_ids': ([str],), # noqa: E501
|
|
105
|
-
'lookback_window': (str,), # noqa: E501
|
|
106
107
|
'user_type': (str,), # noqa: E501
|
|
108
|
+
'lookback_window': (str,), # noqa: E501
|
|
109
|
+
'target_type': (str, none_type,), # noqa: E501
|
|
110
|
+
'target_ids': ([str], none_type,), # noqa: E501
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
@cached_property
|
|
@@ -112,10 +116,10 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
112
116
|
|
|
113
117
|
|
|
114
118
|
attribute_map = {
|
|
119
|
+
'user_type': 'userType', # noqa: E501
|
|
120
|
+
'lookback_window': 'lookbackWindow', # noqa: E501
|
|
115
121
|
'target_type': 'targetType', # noqa: E501
|
|
116
122
|
'target_ids': 'targetIds', # noqa: E501
|
|
117
|
-
'lookback_window': 'lookbackWindow', # noqa: E501
|
|
118
|
-
'user_type': 'userType', # noqa: E501
|
|
119
123
|
}
|
|
120
124
|
|
|
121
125
|
read_only_vars = {
|
|
@@ -125,14 +129,12 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
125
129
|
|
|
126
130
|
@classmethod
|
|
127
131
|
@convert_js_args_to_python_args
|
|
128
|
-
def _from_openapi_data(cls,
|
|
129
|
-
"""
|
|
132
|
+
def _from_openapi_data(cls, user_type, lookback_window, *args, **kwargs): # noqa: E501
|
|
133
|
+
"""RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI
|
|
130
134
|
|
|
131
135
|
Args:
|
|
132
|
-
|
|
133
|
-
target_ids ([str]): ist of ids for the target type
|
|
136
|
+
user_type (str): Type of shopper activity used to generate the audience.
|
|
134
137
|
lookback_window (str): Length of lookback window
|
|
135
|
-
user_type (str): Type of the user
|
|
136
138
|
|
|
137
139
|
Keyword Args:
|
|
138
140
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -165,6 +167,8 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
165
167
|
Animal class but this time we won't travel
|
|
166
168
|
through its discriminator because we passed in
|
|
167
169
|
_visited_composed_classes = (Animal,)
|
|
170
|
+
target_type (str, none_type): Type of target. [optional] # noqa: E501
|
|
171
|
+
target_ids ([str], none_type): The categories to target. [optional] # noqa: E501
|
|
168
172
|
"""
|
|
169
173
|
|
|
170
174
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -196,10 +200,8 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
196
200
|
self._configuration = _configuration
|
|
197
201
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
198
202
|
|
|
199
|
-
self.target_type = target_type
|
|
200
|
-
self.target_ids = target_ids
|
|
201
|
-
self.lookback_window = lookback_window
|
|
202
203
|
self.user_type = user_type
|
|
204
|
+
self.lookback_window = lookback_window
|
|
203
205
|
for var_name, var_value in kwargs.items():
|
|
204
206
|
if var_name not in self.attribute_map and \
|
|
205
207
|
self._configuration is not None and \
|
|
@@ -220,14 +222,12 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
220
222
|
])
|
|
221
223
|
|
|
222
224
|
@convert_js_args_to_python_args
|
|
223
|
-
def __init__(self,
|
|
224
|
-
"""
|
|
225
|
+
def __init__(self, user_type, lookback_window, *args, **kwargs): # noqa: E501
|
|
226
|
+
"""RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI
|
|
225
227
|
|
|
226
228
|
Args:
|
|
227
|
-
|
|
228
|
-
target_ids ([str]): ist of ids for the target type
|
|
229
|
+
user_type (str): Type of shopper activity used to generate the audience.
|
|
229
230
|
lookback_window (str): Length of lookback window
|
|
230
|
-
user_type (str): Type of the user
|
|
231
231
|
|
|
232
232
|
Keyword Args:
|
|
233
233
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -260,6 +260,8 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
260
260
|
Animal class but this time we won't travel
|
|
261
261
|
through its discriminator because we passed in
|
|
262
262
|
_visited_composed_classes = (Animal,)
|
|
263
|
+
target_type (str, none_type): Type of target. [optional] # noqa: E501
|
|
264
|
+
target_ids ([str], none_type): The categories to target. [optional] # noqa: E501
|
|
263
265
|
"""
|
|
264
266
|
|
|
265
267
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -289,10 +291,8 @@ class UserBehaviorDetails(ModelNormal):
|
|
|
289
291
|
self._configuration = _configuration
|
|
290
292
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
291
293
|
|
|
292
|
-
self.target_type = target_type
|
|
293
|
-
self.target_ids = target_ids
|
|
294
|
-
self.lookback_window = lookback_window
|
|
295
294
|
self.user_type = user_type
|
|
295
|
+
self.lookback_window = lookback_window
|
|
296
296
|
for var_name, var_value in kwargs.items():
|
|
297
297
|
if var_name not in self.attribute_map and \
|
|
298
298
|
self._configuration is not None and \
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -74,6 +74,10 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
validations = {
|
|
77
|
+
('category_ids',): {
|
|
78
|
+
},
|
|
79
|
+
('brand_ids',): {
|
|
80
|
+
},
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
@cached_property
|
|
@@ -120,8 +124,6 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
|
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
read_only_vars = {
|
|
123
|
-
'min_price', # noqa: E501
|
|
124
|
-
'max_price', # noqa: E501
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
_composed_schemas = {}
|
|
@@ -129,7 +131,7 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
|
|
|
129
131
|
@classmethod
|
|
130
132
|
@convert_js_args_to_python_args
|
|
131
133
|
def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # noqa: E501
|
|
132
|
-
"""
|
|
134
|
+
"""RmLegacySegmentUserBehaviorV2 - a model defined in OpenAPI
|
|
133
135
|
|
|
134
136
|
Args:
|
|
135
137
|
user_action (str): Type of shopper activity used to generate the audience.
|
|
@@ -224,7 +226,7 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
|
|
|
224
226
|
|
|
225
227
|
@convert_js_args_to_python_args
|
|
226
228
|
def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501
|
|
227
|
-
"""
|
|
229
|
+
"""RmLegacySegmentUserBehaviorV2 - a model defined in OpenAPI
|
|
228
230
|
|
|
229
231
|
Args:
|
|
230
232
|
user_action (str): Type of shopper activity used to generate the audience.
|
|
@@ -36,7 +36,6 @@ from criteo_api_retailmedia_v2023_10.model.auction_line_item_update_model_reques
|
|
|
36
36
|
from criteo_api_retailmedia_v2023_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request
|
|
37
37
|
from criteo_api_retailmedia_v2023_10.model.audience_target202110_request import AudienceTarget202110Request
|
|
38
38
|
from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response
|
|
39
|
-
from criteo_api_retailmedia_v2023_10.model.balance202110_paged_list_response import Balance202110PagedListResponse
|
|
40
39
|
from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest
|
|
41
40
|
from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse
|
|
42
41
|
from criteo_api_retailmedia_v2023_10.model.balance_response import BalanceResponse
|
|
@@ -54,19 +53,8 @@ from criteo_api_retailmedia_v2023_10.model.common_error import CommonError
|
|
|
54
53
|
from criteo_api_retailmedia_v2023_10.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse
|
|
55
54
|
from criteo_api_retailmedia_v2023_10.model.common_line_item_response import CommonLineItemResponse
|
|
56
55
|
from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem
|
|
57
|
-
from criteo_api_retailmedia_v2023_10.model.common_status_code_response import CommonStatusCodeResponse
|
|
58
56
|
from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning
|
|
59
57
|
from criteo_api_retailmedia_v2023_10.model.create_balance_request import CreateBalanceRequest
|
|
60
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience import CreateRetailMediaAudience
|
|
61
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes
|
|
62
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody
|
|
63
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest
|
|
64
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse
|
|
65
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2
|
|
66
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes
|
|
67
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data
|
|
68
|
-
from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request
|
|
69
|
-
from criteo_api_retailmedia_v2023_10.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2
|
|
70
58
|
from criteo_api_retailmedia_v2023_10.model.creative202110 import Creative202110
|
|
71
59
|
from criteo_api_retailmedia_v2023_10.model.creative202110_list_response import Creative202110ListResponse
|
|
72
60
|
from criteo_api_retailmedia_v2023_10.model.creative202210 import Creative202210
|
|
@@ -74,7 +62,6 @@ from criteo_api_retailmedia_v2023_10.model.creative202210_list_response import C
|
|
|
74
62
|
from criteo_api_retailmedia_v2023_10.model.creative202210_response import Creative202210Response
|
|
75
63
|
from criteo_api_retailmedia_v2023_10.model.creative_create_model202207 import CreativeCreateModel202207
|
|
76
64
|
from criteo_api_retailmedia_v2023_10.model.creative_update_model202207 import CreativeUpdateModel202207
|
|
77
|
-
from criteo_api_retailmedia_v2023_10.model.customer_list_details import CustomerListDetails
|
|
78
65
|
from criteo_api_retailmedia_v2023_10.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301
|
|
79
66
|
from criteo_api_retailmedia_v2023_10.model.external_account import ExternalAccount
|
|
80
67
|
from criteo_api_retailmedia_v2023_10.model.external_add_funds_to_balance import ExternalAddFundsToBalance
|
|
@@ -85,7 +72,6 @@ from criteo_api_retailmedia_v2023_10.model.external_auction_line_item_create_mod
|
|
|
85
72
|
from criteo_api_retailmedia_v2023_10.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel
|
|
86
73
|
from criteo_api_retailmedia_v2023_10.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110
|
|
87
74
|
from criteo_api_retailmedia_v2023_10.model.external_audience_target202110 import ExternalAudienceTarget202110
|
|
88
|
-
from criteo_api_retailmedia_v2023_10.model.external_balance202110 import ExternalBalance202110
|
|
89
75
|
from criteo_api_retailmedia_v2023_10.model.external_balance_response import ExternalBalanceResponse
|
|
90
76
|
from criteo_api_retailmedia_v2023_10.model.external_brand import ExternalBrand
|
|
91
77
|
from criteo_api_retailmedia_v2023_10.model.external_catalog_request import ExternalCatalogRequest
|
|
@@ -108,7 +94,6 @@ from criteo_api_retailmedia_v2023_10.model.external_store_target202110 import Ex
|
|
|
108
94
|
from criteo_api_retailmedia_v2023_10.model.external_update_balance_model import ExternalUpdateBalanceModel
|
|
109
95
|
from criteo_api_retailmedia_v2023_10.model.files_variable_value import FilesVariableValue
|
|
110
96
|
from criteo_api_retailmedia_v2023_10.model.files_variables_specification import FilesVariablesSpecification
|
|
111
|
-
from criteo_api_retailmedia_v2023_10.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse
|
|
112
97
|
from criteo_api_retailmedia_v2023_10.model.hyperlink_variable_value import HyperlinkVariableValue
|
|
113
98
|
from criteo_api_retailmedia_v2023_10.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel
|
|
114
99
|
from criteo_api_retailmedia_v2023_10.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110
|
|
@@ -149,7 +134,6 @@ from criteo_api_retailmedia_v2023_10.model.report_outcome import ReportOutcome
|
|
|
149
134
|
from criteo_api_retailmedia_v2023_10.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance
|
|
150
135
|
from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item import ResourceOfAuctionLineItem
|
|
151
136
|
from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel
|
|
152
|
-
from criteo_api_retailmedia_v2023_10.model.resource_of_balance202110 import ResourceOfBalance202110
|
|
153
137
|
from criteo_api_retailmedia_v2023_10.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110
|
|
154
138
|
from criteo_api_retailmedia_v2023_10.model.resource_of_balance_response import ResourceOfBalanceResponse
|
|
155
139
|
from criteo_api_retailmedia_v2023_10.model.resource_of_category202204 import ResourceOfCategory202204
|
|
@@ -164,12 +148,6 @@ from criteo_api_retailmedia_v2023_10.model.resource_of_preferred_line_item_updat
|
|
|
164
148
|
from criteo_api_retailmedia_v2023_10.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110
|
|
165
149
|
from criteo_api_retailmedia_v2023_10.model.resource_of_template import ResourceOfTemplate
|
|
166
150
|
from criteo_api_retailmedia_v2023_10.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel
|
|
167
|
-
from criteo_api_retailmedia_v2023_10.model.retail_media_audience import RetailMediaAudience
|
|
168
|
-
from criteo_api_retailmedia_v2023_10.model.retail_media_audience_attributes import RetailMediaAudienceAttributes
|
|
169
|
-
from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2 import RetailMediaAudienceV2
|
|
170
|
-
from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes
|
|
171
|
-
from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse
|
|
172
|
-
from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response
|
|
173
151
|
from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel
|
|
174
152
|
from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel
|
|
175
153
|
from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest
|
|
@@ -188,6 +166,26 @@ from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bid_model
|
|
|
188
166
|
from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel
|
|
189
167
|
from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest
|
|
190
168
|
from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource
|
|
169
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v1 import RmLegacyAudienceCreateEntityV1
|
|
170
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v1_resource import RmLegacyAudienceCreateEntityV1Resource
|
|
171
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v1_response import RmLegacyAudienceCreateEntityV1Response
|
|
172
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v2 import RmLegacyAudienceCreateEntityV2
|
|
173
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v2_resource import RmLegacyAudienceCreateEntityV2Resource
|
|
174
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v2_response import RmLegacyAudienceCreateEntityV2Response
|
|
175
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_input_entity_v1 import RmLegacyAudienceCreateInputEntityV1
|
|
176
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_input_entity_v2 import RmLegacyAudienceCreateInputEntityV2
|
|
177
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v1 import RmLegacyAudienceGetEntityV1
|
|
178
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse
|
|
179
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v1_resource import RmLegacyAudienceGetEntityV1Resource
|
|
180
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v2 import RmLegacyAudienceGetEntityV2
|
|
181
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse
|
|
182
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_get_entity_v2_resource import RmLegacyAudienceGetEntityV2Resource
|
|
183
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_user_behavior_create_v2 import RmLegacyAudienceUserBehaviorCreateV2
|
|
184
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2
|
|
185
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
|
|
186
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_segment_user_behavior_create_v2 import RmLegacySegmentUserBehaviorCreateV2
|
|
187
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_segment_user_behavior_v1 import RmLegacySegmentUserBehaviorV1
|
|
188
|
+
from criteo_api_retailmedia_v2023_10.model.rm_legacy_segment_user_behavior_v2 import RmLegacySegmentUserBehaviorV2
|
|
191
189
|
from criteo_api_retailmedia_v2023_10.model.section import Section
|
|
192
190
|
from criteo_api_retailmedia_v2023_10.model.status_response import StatusResponse
|
|
193
191
|
from criteo_api_retailmedia_v2023_10.model.status_response_resource import StatusResponseResource
|
|
@@ -202,8 +200,6 @@ from criteo_api_retailmedia_v2023_10.model.template_variable_value import Templa
|
|
|
202
200
|
from criteo_api_retailmedia_v2023_10.model.text_variable_specification import TextVariableSpecification
|
|
203
201
|
from criteo_api_retailmedia_v2023_10.model.text_variable_value import TextVariableValue
|
|
204
202
|
from criteo_api_retailmedia_v2023_10.model.update_balance_model_request import UpdateBalanceModelRequest
|
|
205
|
-
from criteo_api_retailmedia_v2023_10.model.user_behavior_details import UserBehaviorDetails
|
|
206
|
-
from criteo_api_retailmedia_v2023_10.model.user_behavior_details_v2 import UserBehaviorDetailsV2
|
|
207
203
|
from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110
|
|
208
204
|
from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110
|
|
209
205
|
from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110
|
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Criteo API
|
|
3
|
-
|
|
4
|
-
Criteo API - RetailMedia # noqa: E501
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2023-10
|
|
7
|
-
Generated by: https://openapi-generator.tech
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import re # noqa: F401
|
|
12
|
-
import sys # noqa: F401
|
|
13
|
-
|
|
14
|
-
from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401
|
|
15
|
-
ApiTypeError,
|
|
16
|
-
ModelComposed,
|
|
17
|
-
ModelNormal,
|
|
18
|
-
ModelSimple,
|
|
19
|
-
cached_property,
|
|
20
|
-
change_keys_js_to_python,
|
|
21
|
-
convert_js_args_to_python_args,
|
|
22
|
-
date,
|
|
23
|
-
datetime,
|
|
24
|
-
file_type,
|
|
25
|
-
none_type,
|
|
26
|
-
validate_get_composed_info,
|
|
27
|
-
OpenApiModel
|
|
28
|
-
)
|
|
29
|
-
from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata
|
|
34
|
-
from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails
|
|
35
|
-
from criteo_api_retailmedia_v2023_10.model.resource_of_balance202110 import ResourceOfBalance202110
|
|
36
|
-
globals()['PageMetadata'] = PageMetadata
|
|
37
|
-
globals()['ProblemDetails'] = ProblemDetails
|
|
38
|
-
globals()['ResourceOfBalance202110'] = ResourceOfBalance202110
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class Balance202110PagedListResponse(ModelNormal):
|
|
42
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
43
|
-
Ref: https://openapi-generator.tech
|
|
44
|
-
|
|
45
|
-
Do not edit the class manually.
|
|
46
|
-
|
|
47
|
-
Attributes:
|
|
48
|
-
allowed_values (dict): The key is the tuple path to the attribute
|
|
49
|
-
and the for var_name this is (var_name,). The value is a dict
|
|
50
|
-
with a capitalized key describing the allowed value and an allowed
|
|
51
|
-
value. These dicts store the allowed enum values.
|
|
52
|
-
attribute_map (dict): The key is attribute name
|
|
53
|
-
and the value is json key in definition.
|
|
54
|
-
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
55
|
-
variable value to the discriminator class name.
|
|
56
|
-
validations (dict): The key is the tuple path to the attribute
|
|
57
|
-
and the for var_name this is (var_name,). The value is a dict
|
|
58
|
-
that stores validations for max_length, min_length, max_items,
|
|
59
|
-
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
60
|
-
inclusive_minimum, and regex.
|
|
61
|
-
additional_properties_type (tuple): A tuple of classes accepted
|
|
62
|
-
as additional properties values.
|
|
63
|
-
"""
|
|
64
|
-
|
|
65
|
-
allowed_values = {
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
validations = {
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@cached_property
|
|
72
|
-
def additional_properties_type():
|
|
73
|
-
"""
|
|
74
|
-
This must be a method because a model may have properties that are
|
|
75
|
-
of type self, this must run after the class is loaded
|
|
76
|
-
"""
|
|
77
|
-
lazy_import()
|
|
78
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
79
|
-
|
|
80
|
-
_nullable = False
|
|
81
|
-
|
|
82
|
-
@cached_property
|
|
83
|
-
def openapi_types():
|
|
84
|
-
"""
|
|
85
|
-
This must be a method because a model may have properties that are
|
|
86
|
-
of type self, this must run after the class is loaded
|
|
87
|
-
|
|
88
|
-
Returns
|
|
89
|
-
openapi_types (dict): The key is attribute name
|
|
90
|
-
and the value is attribute type.
|
|
91
|
-
"""
|
|
92
|
-
lazy_import()
|
|
93
|
-
return {
|
|
94
|
-
'metadata': (PageMetadata,), # noqa: E501
|
|
95
|
-
'data': ([ResourceOfBalance202110],), # noqa: E501
|
|
96
|
-
'warnings': ([ProblemDetails],), # noqa: E501
|
|
97
|
-
'errors': ([ProblemDetails],), # noqa: E501
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def discriminator():
|
|
102
|
-
return None
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
attribute_map = {
|
|
106
|
-
'metadata': 'metadata', # noqa: E501
|
|
107
|
-
'data': 'data', # noqa: E501
|
|
108
|
-
'warnings': 'warnings', # noqa: E501
|
|
109
|
-
'errors': 'errors', # noqa: E501
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
read_only_vars = {
|
|
113
|
-
'warnings', # noqa: E501
|
|
114
|
-
'errors', # noqa: E501
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
_composed_schemas = {}
|
|
118
|
-
|
|
119
|
-
@classmethod
|
|
120
|
-
@convert_js_args_to_python_args
|
|
121
|
-
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
122
|
-
"""Balance202110PagedListResponse - a model defined in OpenAPI
|
|
123
|
-
|
|
124
|
-
Keyword Args:
|
|
125
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
126
|
-
will be type checked and a TypeError will be
|
|
127
|
-
raised if the wrong type is input.
|
|
128
|
-
Defaults to True
|
|
129
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
130
|
-
drill down to the model in received_data
|
|
131
|
-
when deserializing a response
|
|
132
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
133
|
-
are serialized names, as specified in the OpenAPI document.
|
|
134
|
-
False if the variable names in the input data
|
|
135
|
-
are pythonic names, e.g. snake case (default)
|
|
136
|
-
_configuration (Configuration): the instance to use when
|
|
137
|
-
deserializing a file_type parameter.
|
|
138
|
-
If passed, type conversion is attempted
|
|
139
|
-
If omitted no type conversion is done.
|
|
140
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
141
|
-
classes that we have traveled through so that
|
|
142
|
-
if we see that class again we will not use its
|
|
143
|
-
discriminator again.
|
|
144
|
-
When traveling through a discriminator, the
|
|
145
|
-
composed schema that is
|
|
146
|
-
is traveled through is added to this set.
|
|
147
|
-
For example if Animal has a discriminator
|
|
148
|
-
petType and we pass in "Dog", and the class Dog
|
|
149
|
-
allOf includes Animal, we move through Animal
|
|
150
|
-
once using the discriminator, and pick Dog.
|
|
151
|
-
Then in Dog, we will make an instance of the
|
|
152
|
-
Animal class but this time we won't travel
|
|
153
|
-
through its discriminator because we passed in
|
|
154
|
-
_visited_composed_classes = (Animal,)
|
|
155
|
-
metadata (PageMetadata): [optional] # noqa: E501
|
|
156
|
-
data ([ResourceOfBalance202110]): [optional] # noqa: E501
|
|
157
|
-
warnings ([ProblemDetails]): [optional] # noqa: E501
|
|
158
|
-
errors ([ProblemDetails]): [optional] # noqa: E501
|
|
159
|
-
"""
|
|
160
|
-
|
|
161
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
162
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
163
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
164
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
165
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
166
|
-
|
|
167
|
-
self = super(OpenApiModel, cls).__new__(cls)
|
|
168
|
-
|
|
169
|
-
if args:
|
|
170
|
-
for arg in args:
|
|
171
|
-
if isinstance(arg, dict):
|
|
172
|
-
kwargs.update(arg)
|
|
173
|
-
else:
|
|
174
|
-
raise ApiTypeError(
|
|
175
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
176
|
-
args,
|
|
177
|
-
self.__class__.__name__,
|
|
178
|
-
),
|
|
179
|
-
path_to_item=_path_to_item,
|
|
180
|
-
valid_classes=(self.__class__,),
|
|
181
|
-
)
|
|
182
|
-
|
|
183
|
-
self._data_store = {}
|
|
184
|
-
self._check_type = _check_type
|
|
185
|
-
self._spec_property_naming = _spec_property_naming
|
|
186
|
-
self._path_to_item = _path_to_item
|
|
187
|
-
self._configuration = _configuration
|
|
188
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
189
|
-
|
|
190
|
-
for var_name, var_value in kwargs.items():
|
|
191
|
-
if var_name not in self.attribute_map and \
|
|
192
|
-
self._configuration is not None and \
|
|
193
|
-
self._configuration.discard_unknown_keys and \
|
|
194
|
-
self.additional_properties_type is None:
|
|
195
|
-
# discard variable.
|
|
196
|
-
continue
|
|
197
|
-
setattr(self, var_name, var_value)
|
|
198
|
-
return self
|
|
199
|
-
|
|
200
|
-
required_properties = set([
|
|
201
|
-
'_data_store',
|
|
202
|
-
'_check_type',
|
|
203
|
-
'_spec_property_naming',
|
|
204
|
-
'_path_to_item',
|
|
205
|
-
'_configuration',
|
|
206
|
-
'_visited_composed_classes',
|
|
207
|
-
])
|
|
208
|
-
|
|
209
|
-
@convert_js_args_to_python_args
|
|
210
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
211
|
-
"""Balance202110PagedListResponse - a model defined in OpenAPI
|
|
212
|
-
|
|
213
|
-
Keyword Args:
|
|
214
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
215
|
-
will be type checked and a TypeError will be
|
|
216
|
-
raised if the wrong type is input.
|
|
217
|
-
Defaults to True
|
|
218
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
219
|
-
drill down to the model in received_data
|
|
220
|
-
when deserializing a response
|
|
221
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
222
|
-
are serialized names, as specified in the OpenAPI document.
|
|
223
|
-
False if the variable names in the input data
|
|
224
|
-
are pythonic names, e.g. snake case (default)
|
|
225
|
-
_configuration (Configuration): the instance to use when
|
|
226
|
-
deserializing a file_type parameter.
|
|
227
|
-
If passed, type conversion is attempted
|
|
228
|
-
If omitted no type conversion is done.
|
|
229
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
230
|
-
classes that we have traveled through so that
|
|
231
|
-
if we see that class again we will not use its
|
|
232
|
-
discriminator again.
|
|
233
|
-
When traveling through a discriminator, the
|
|
234
|
-
composed schema that is
|
|
235
|
-
is traveled through is added to this set.
|
|
236
|
-
For example if Animal has a discriminator
|
|
237
|
-
petType and we pass in "Dog", and the class Dog
|
|
238
|
-
allOf includes Animal, we move through Animal
|
|
239
|
-
once using the discriminator, and pick Dog.
|
|
240
|
-
Then in Dog, we will make an instance of the
|
|
241
|
-
Animal class but this time we won't travel
|
|
242
|
-
through its discriminator because we passed in
|
|
243
|
-
_visited_composed_classes = (Animal,)
|
|
244
|
-
metadata (PageMetadata): [optional] # noqa: E501
|
|
245
|
-
data ([ResourceOfBalance202110]): [optional] # noqa: E501
|
|
246
|
-
warnings ([ProblemDetails]): [optional] # noqa: E501
|
|
247
|
-
errors ([ProblemDetails]): [optional] # noqa: E501
|
|
248
|
-
"""
|
|
249
|
-
|
|
250
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
251
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
252
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
253
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
254
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
255
|
-
|
|
256
|
-
if args:
|
|
257
|
-
for arg in args:
|
|
258
|
-
if isinstance(arg, dict):
|
|
259
|
-
kwargs.update(arg)
|
|
260
|
-
else:
|
|
261
|
-
raise ApiTypeError(
|
|
262
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
263
|
-
args,
|
|
264
|
-
self.__class__.__name__,
|
|
265
|
-
),
|
|
266
|
-
path_to_item=_path_to_item,
|
|
267
|
-
valid_classes=(self.__class__,),
|
|
268
|
-
)
|
|
269
|
-
|
|
270
|
-
self._data_store = {}
|
|
271
|
-
self._check_type = _check_type
|
|
272
|
-
self._spec_property_naming = _spec_property_naming
|
|
273
|
-
self._path_to_item = _path_to_item
|
|
274
|
-
self._configuration = _configuration
|
|
275
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
276
|
-
|
|
277
|
-
for var_name, var_value in kwargs.items():
|
|
278
|
-
if var_name not in self.attribute_map and \
|
|
279
|
-
self._configuration is not None and \
|
|
280
|
-
self._configuration.discard_unknown_keys and \
|
|
281
|
-
self.additional_properties_type is None:
|
|
282
|
-
# discard variable.
|
|
283
|
-
continue
|
|
284
|
-
setattr(self, var_name, var_value)
|
|
285
|
-
if var_name in self.read_only_vars:
|
|
286
|
-
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
287
|
-
f"class with read only attributes.")
|