criteo-api-retailmedia-sdk 0.0.240731__py3-none-any.whl → 0.0.241029__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_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +442 -0
- criteo_api_retailmedia_preview/api/analytics_api.py +3 -3
- criteo_api_retailmedia_preview/api/audience_api.py +89 -232
- criteo_api_retailmedia_preview/api/balance_api.py +4 -16
- criteo_api_retailmedia_preview/api/campaign_api.py +10 -574
- criteo_api_retailmedia_preview/api/on_site_recommendation_api.py +186 -0
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/balance_response_v2.py +10 -10
- criteo_api_retailmedia_preview/model/bot_message.py +277 -0
- criteo_api_retailmedia_preview/model/botmessage.py +329 -0
- criteo_api_retailmedia_preview/model/create_balance_v2.py +6 -6
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2_list_response.py → entity_resource_collection_outcome_of_retail_media_account.py} +8 -8
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_resource.py → entity_resource_of_retail_media_account.py} +9 -18
- criteo_api_retailmedia_preview/model/external_account.py +4 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2.py → external_retail_media_account.py} +54 -32
- criteo_api_retailmedia_preview/model/http_validation_error.py +269 -0
- criteo_api_retailmedia_preview/model/inbot_discussion.py +272 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_segment_customer_list.py → inbot_discussion_body_model.py} +17 -17
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_user_behavior_details_v2.py → inbot_discussion_data_instance_model.py} +17 -17
- criteo_api_retailmedia_preview/model/location_inner.py +259 -0
- criteo_api_retailmedia_preview/model/message.py +273 -0
- criteo_api_retailmedia_preview/model/message_body_model.py +275 -0
- criteo_api_retailmedia_preview/model/message_data_instance_model.py +279 -0
- criteo_api_retailmedia_preview/model/message_error.py +275 -0
- criteo_api_retailmedia_preview/model/product.py +4 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_segment_user_behavior_v1.py → product_recommendation.py} +46 -47
- criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +6 -4
- criteo_api_retailmedia_preview/model/report_detail_warning.py +285 -0
- criteo_api_retailmedia_preview/model/report_detail_warnings.py +281 -0
- criteo_api_retailmedia_preview/model/report_ok_response.py +16 -2
- criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py +270 -0
- criteo_api_retailmedia_preview/model/{value_resource_outcome_of_line_item_budget_overrides.py → resource_outcome_of_retail_media_account.py} +8 -8
- criteo_api_retailmedia_preview/model/retail_media_account.py +301 -0
- criteo_api_retailmedia_preview/model/retail_media_seller.py +261 -0
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +274 -0
- criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +275 -0
- criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +307 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2_resource.py → rm_audience_entity_v1_resource.py} +8 -8
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_list_response.py → rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py} +14 -8
- criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +271 -0
- criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_search_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +271 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +17 -9
- criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +11 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +10 -0
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +16 -5
- criteo_api_retailmedia_preview/model/{rm_legacy_segment_user_behavior_v2.py → rm_events_v1.py} +41 -49
- criteo_api_retailmedia_preview/model/validation_error.py +287 -0
- criteo_api_retailmedia_preview/model/{value_resource_input_of_campaign_budget_overrides.py → value_resource_collection_input_of_retail_media_seller.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_outcome_of_campaign_budget_overrides.py → value_resource_collection_outcome_of_retail_media_seller.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_input_of_line_item_budget_overrides.py → value_resource_input_of_retail_media_seller_account_creation.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_of_campaign_budget_overrides.py → value_resource_of_retail_media_seller.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_of_line_item_budget_overrides.py → value_resource_of_retail_media_seller_account_creation.py} +8 -8
- criteo_api_retailmedia_preview/models/__init__.py +37 -22
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/RECORD +62 -46
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/campaign_budget_overrides.py +0 -276
- criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py +0 -283
- criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py +0 -283
- criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py +0 -281
- criteo_api_retailmedia_preview/model/line_item_budget_overrides.py +0 -276
- criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.py +0 -283
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py +0 -291
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/top_level.txt +0 -0
|
@@ -55,6 +55,12 @@ class RmAudienceSegmentSearchEntityV1(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
+
('audience_segment_types',): {
|
|
59
|
+
'None': None,
|
|
60
|
+
'UNKNOWN': "Unknown",
|
|
61
|
+
'CONTACTLIST': "ContactList",
|
|
62
|
+
'EVENTS': "Events",
|
|
63
|
+
},
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
validations = {
|
|
@@ -83,6 +89,7 @@ class RmAudienceSegmentSearchEntityV1(ModelNormal):
|
|
|
83
89
|
return {
|
|
84
90
|
'audience_segment_ids': ([str], none_type,), # noqa: E501
|
|
85
91
|
'retailer_ids': ([str], none_type,), # noqa: E501
|
|
92
|
+
'audience_segment_types': ([str], none_type,), # noqa: E501
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
@cached_property
|
|
@@ -93,6 +100,7 @@ class RmAudienceSegmentSearchEntityV1(ModelNormal):
|
|
|
93
100
|
attribute_map = {
|
|
94
101
|
'audience_segment_ids': 'audienceSegmentIds', # noqa: E501
|
|
95
102
|
'retailer_ids': 'retailerIds', # noqa: E501
|
|
103
|
+
'audience_segment_types': 'audienceSegmentTypes', # noqa: E501
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
read_only_vars = {
|
|
@@ -138,6 +146,7 @@ class RmAudienceSegmentSearchEntityV1(ModelNormal):
|
|
|
138
146
|
_visited_composed_classes = (Animal,)
|
|
139
147
|
audience_segment_ids ([str], none_type): List of segment ids. [optional] # noqa: E501
|
|
140
148
|
retailer_ids ([str], none_type): List of retailer ids. [optional] # noqa: E501
|
|
149
|
+
audience_segment_types ([str], none_type): List of segment types. [optional] # noqa: E501
|
|
141
150
|
"""
|
|
142
151
|
|
|
143
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -225,6 +234,7 @@ class RmAudienceSegmentSearchEntityV1(ModelNormal):
|
|
|
225
234
|
_visited_composed_classes = (Animal,)
|
|
226
235
|
audience_segment_ids ([str], none_type): List of segment ids. [optional] # noqa: E501
|
|
227
236
|
retailer_ids ([str], none_type): List of retailer ids. [optional] # noqa: E501
|
|
237
|
+
audience_segment_types ([str], none_type): List of segment types. [optional] # noqa: E501
|
|
228
238
|
"""
|
|
229
239
|
|
|
230
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -55,7 +55,7 @@ class RmContactListV1(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
-
('
|
|
58
|
+
('identifier_type',): {
|
|
59
59
|
'None': None,
|
|
60
60
|
'UNKNOWN': "Unknown",
|
|
61
61
|
'EMAIL': "Email",
|
|
@@ -63,6 +63,13 @@ class RmContactListV1(ModelNormal):
|
|
|
63
63
|
'IDENTITYLINK': "IdentityLink",
|
|
64
64
|
'CUSTOMERID': "CustomerId",
|
|
65
65
|
},
|
|
66
|
+
('sharing_status',): {
|
|
67
|
+
'None': None,
|
|
68
|
+
'UNKNOWN': "Unknown",
|
|
69
|
+
'NOTSHARED': "NotShared",
|
|
70
|
+
'SHAREDWITHALL': "SharedWithAll",
|
|
71
|
+
'SHAREDWITHDEMANDACCOUNTS': "SharedWithDemandAccounts",
|
|
72
|
+
},
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
validations = {
|
|
@@ -90,7 +97,8 @@ class RmContactListV1(ModelNormal):
|
|
|
90
97
|
"""
|
|
91
98
|
return {
|
|
92
99
|
'is_read_only': (bool, none_type,), # noqa: E501
|
|
93
|
-
'
|
|
100
|
+
'identifier_type': (str, none_type,), # noqa: E501
|
|
101
|
+
'sharing_status': (str, none_type,), # noqa: E501
|
|
94
102
|
}
|
|
95
103
|
|
|
96
104
|
@cached_property
|
|
@@ -100,7 +108,8 @@ class RmContactListV1(ModelNormal):
|
|
|
100
108
|
|
|
101
109
|
attribute_map = {
|
|
102
110
|
'is_read_only': 'isReadOnly', # noqa: E501
|
|
103
|
-
'
|
|
111
|
+
'identifier_type': 'identifierType', # noqa: E501
|
|
112
|
+
'sharing_status': 'sharingStatus', # noqa: E501
|
|
104
113
|
}
|
|
105
114
|
|
|
106
115
|
read_only_vars = {
|
|
@@ -145,7 +154,8 @@ class RmContactListV1(ModelNormal):
|
|
|
145
154
|
through its discriminator because we passed in
|
|
146
155
|
_visited_composed_classes = (Animal,)
|
|
147
156
|
is_read_only (bool, none_type): Is the segment read-only. [optional] # noqa: E501
|
|
148
|
-
|
|
157
|
+
identifier_type (str, none_type): Indicates contact list identifier's type. [optional] # noqa: E501
|
|
158
|
+
sharing_status (str, none_type): Indicates if the contact list is shared with other accounts. [optional] # noqa: E501
|
|
149
159
|
"""
|
|
150
160
|
|
|
151
161
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -232,7 +242,8 @@ class RmContactListV1(ModelNormal):
|
|
|
232
242
|
through its discriminator because we passed in
|
|
233
243
|
_visited_composed_classes = (Animal,)
|
|
234
244
|
is_read_only (bool, none_type): Is the segment read-only. [optional] # noqa: E501
|
|
235
|
-
|
|
245
|
+
identifier_type (str, none_type): Indicates contact list identifier's type. [optional] # noqa: E501
|
|
246
|
+
sharing_status (str, none_type): Indicates if the contact list is shared with other accounts. [optional] # noqa: E501
|
|
236
247
|
"""
|
|
237
248
|
|
|
238
249
|
_check_type = kwargs.pop('_check_type', True)
|
criteo_api_retailmedia_preview/model/{rm_legacy_segment_user_behavior_v2.py → rm_events_v1.py}
RENAMED
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class RmEventsV1(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -55,29 +55,29 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
-
('
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
58
|
+
('shopper_activity',): {
|
|
59
|
+
'None': None,
|
|
60
|
+
'UNKNOWN': "Unknown",
|
|
61
|
+
'VIEW': "View",
|
|
62
|
+
'BUY': "Buy",
|
|
63
|
+
'ADDTOCART': "AddToCart",
|
|
62
64
|
},
|
|
63
|
-
('
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
65
|
+
('lookback_days',): {
|
|
66
|
+
'None': None,
|
|
67
|
+
'UNKNOWN': "Unknown",
|
|
68
|
+
'LAST7DAYS': "Last7Days",
|
|
69
|
+
'LAST14DAYS': "Last14Days",
|
|
70
|
+
'LAST30DAYS': "Last30Days",
|
|
71
|
+
'LAST45DAYS': "Last45Days",
|
|
72
|
+
'LAST60DAYS': "Last60Days",
|
|
73
|
+
'LAST90DAYS': "Last90Days",
|
|
74
|
+
'LAST120DAYS': "Last120Days",
|
|
75
|
+
'LAST150DAYS': "Last150Days",
|
|
76
|
+
'LAST180DAYS': "Last180Days",
|
|
73
77
|
},
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
validations = {
|
|
77
|
-
('category_ids',): {
|
|
78
|
-
},
|
|
79
|
-
('brand_ids',): {
|
|
80
|
-
},
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
@cached_property
|
|
@@ -101,10 +101,10 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
101
101
|
and the value is attribute type.
|
|
102
102
|
"""
|
|
103
103
|
return {
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'category_ids': ([
|
|
107
|
-
'brand_ids': ([
|
|
104
|
+
'shopper_activity': (str, none_type,), # noqa: E501
|
|
105
|
+
'lookback_days': (str, none_type,), # noqa: E501
|
|
106
|
+
'category_ids': ([str], none_type,), # noqa: E501
|
|
107
|
+
'brand_ids': ([str], none_type,), # noqa: E501
|
|
108
108
|
'min_price': (float, none_type,), # noqa: E501
|
|
109
109
|
'max_price': (float, none_type,), # noqa: E501
|
|
110
110
|
}
|
|
@@ -115,8 +115,8 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
attribute_map = {
|
|
118
|
-
'
|
|
119
|
-
'
|
|
118
|
+
'shopper_activity': 'shopperActivity', # noqa: E501
|
|
119
|
+
'lookback_days': 'lookbackDays', # noqa: E501
|
|
120
120
|
'category_ids': 'categoryIds', # noqa: E501
|
|
121
121
|
'brand_ids': 'brandIds', # noqa: E501
|
|
122
122
|
'min_price': 'minPrice', # noqa: E501
|
|
@@ -130,12 +130,8 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
130
130
|
|
|
131
131
|
@classmethod
|
|
132
132
|
@convert_js_args_to_python_args
|
|
133
|
-
def _from_openapi_data(cls,
|
|
134
|
-
"""
|
|
135
|
-
|
|
136
|
-
Args:
|
|
137
|
-
user_action (str): Type of shopper activity used to generate the audience.
|
|
138
|
-
lookback_window (str): Length of lookback window
|
|
133
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
134
|
+
"""RmEventsV1 - a model defined in OpenAPI
|
|
139
135
|
|
|
140
136
|
Keyword Args:
|
|
141
137
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -168,10 +164,12 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
168
164
|
Animal class but this time we won't travel
|
|
169
165
|
through its discriminator because we passed in
|
|
170
166
|
_visited_composed_classes = (Animal,)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
|
|
168
|
+
lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
|
|
169
|
+
category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
|
|
170
|
+
brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501
|
|
171
|
+
min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
|
|
172
|
+
max_price (float, none_type): Maximum price of the products. [optional] # noqa: E501
|
|
175
173
|
"""
|
|
176
174
|
|
|
177
175
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -203,8 +201,6 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
203
201
|
self._configuration = _configuration
|
|
204
202
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
205
203
|
|
|
206
|
-
self.user_action = user_action
|
|
207
|
-
self.lookback_window = lookback_window
|
|
208
204
|
for var_name, var_value in kwargs.items():
|
|
209
205
|
if var_name not in self.attribute_map and \
|
|
210
206
|
self._configuration is not None and \
|
|
@@ -225,12 +221,8 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
225
221
|
])
|
|
226
222
|
|
|
227
223
|
@convert_js_args_to_python_args
|
|
228
|
-
def __init__(self,
|
|
229
|
-
"""
|
|
230
|
-
|
|
231
|
-
Args:
|
|
232
|
-
user_action (str): Type of shopper activity used to generate the audience.
|
|
233
|
-
lookback_window (str): Length of lookback window
|
|
224
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
225
|
+
"""RmEventsV1 - a model defined in OpenAPI
|
|
234
226
|
|
|
235
227
|
Keyword Args:
|
|
236
228
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -263,10 +255,12 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
263
255
|
Animal class but this time we won't travel
|
|
264
256
|
through its discriminator because we passed in
|
|
265
257
|
_visited_composed_classes = (Animal,)
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
258
|
+
shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
|
|
259
|
+
lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
|
|
260
|
+
category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
|
|
261
|
+
brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501
|
|
262
|
+
min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
|
|
263
|
+
max_price (float, none_type): Maximum price of the products. [optional] # noqa: E501
|
|
270
264
|
"""
|
|
271
265
|
|
|
272
266
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -296,8 +290,6 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
|
|
|
296
290
|
self._configuration = _configuration
|
|
297
291
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
298
292
|
|
|
299
|
-
self.user_action = user_action
|
|
300
|
-
self.lookback_window = lookback_window
|
|
301
293
|
for var_name, var_value in kwargs.items():
|
|
302
294
|
if var_name not in self.attribute_map and \
|
|
303
295
|
self._configuration is not None and \
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: Preview
|
|
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_preview.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_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.location_inner import LocationInner
|
|
34
|
+
globals()['LocationInner'] = LocationInner
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ValidationError(ModelNormal):
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
|
|
43
|
+
Attributes:
|
|
44
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
45
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
46
|
+
with a capitalized key describing the allowed value and an allowed
|
|
47
|
+
value. These dicts store the allowed enum values.
|
|
48
|
+
attribute_map (dict): The key is attribute name
|
|
49
|
+
and the value is json key in definition.
|
|
50
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
51
|
+
variable value to the discriminator class name.
|
|
52
|
+
validations (dict): The key is the tuple path to the attribute
|
|
53
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
54
|
+
that stores validations for max_length, min_length, max_items,
|
|
55
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
56
|
+
inclusive_minimum, and regex.
|
|
57
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
58
|
+
as additional properties values.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
allowed_values = {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validations = {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
68
|
+
def additional_properties_type():
|
|
69
|
+
"""
|
|
70
|
+
This must be a method because a model may have properties that are
|
|
71
|
+
of type self, this must run after the class is loaded
|
|
72
|
+
"""
|
|
73
|
+
lazy_import()
|
|
74
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
|
+
|
|
76
|
+
_nullable = False
|
|
77
|
+
|
|
78
|
+
@cached_property
|
|
79
|
+
def openapi_types():
|
|
80
|
+
"""
|
|
81
|
+
This must be a method because a model may have properties that are
|
|
82
|
+
of type self, this must run after the class is loaded
|
|
83
|
+
|
|
84
|
+
Returns
|
|
85
|
+
openapi_types (dict): The key is attribute name
|
|
86
|
+
and the value is attribute type.
|
|
87
|
+
"""
|
|
88
|
+
lazy_import()
|
|
89
|
+
return {
|
|
90
|
+
'loc': ([LocationInner],), # noqa: E501
|
|
91
|
+
'msg': (str,), # noqa: E501
|
|
92
|
+
'type': (str,), # noqa: E501
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@cached_property
|
|
96
|
+
def discriminator():
|
|
97
|
+
return None
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
attribute_map = {
|
|
101
|
+
'loc': 'loc', # noqa: E501
|
|
102
|
+
'msg': 'msg', # noqa: E501
|
|
103
|
+
'type': 'type', # noqa: E501
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
read_only_vars = {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
_composed_schemas = {}
|
|
110
|
+
|
|
111
|
+
@classmethod
|
|
112
|
+
@convert_js_args_to_python_args
|
|
113
|
+
def _from_openapi_data(cls, loc, msg, type, *args, **kwargs): # noqa: E501
|
|
114
|
+
"""ValidationError - a model defined in OpenAPI
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
loc ([LocationInner]):
|
|
118
|
+
msg (str):
|
|
119
|
+
type (str):
|
|
120
|
+
|
|
121
|
+
Keyword Args:
|
|
122
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
123
|
+
will be type checked and a TypeError will be
|
|
124
|
+
raised if the wrong type is input.
|
|
125
|
+
Defaults to True
|
|
126
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
127
|
+
drill down to the model in received_data
|
|
128
|
+
when deserializing a response
|
|
129
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
130
|
+
are serialized names, as specified in the OpenAPI document.
|
|
131
|
+
False if the variable names in the input data
|
|
132
|
+
are pythonic names, e.g. snake case (default)
|
|
133
|
+
_configuration (Configuration): the instance to use when
|
|
134
|
+
deserializing a file_type parameter.
|
|
135
|
+
If passed, type conversion is attempted
|
|
136
|
+
If omitted no type conversion is done.
|
|
137
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
138
|
+
classes that we have traveled through so that
|
|
139
|
+
if we see that class again we will not use its
|
|
140
|
+
discriminator again.
|
|
141
|
+
When traveling through a discriminator, the
|
|
142
|
+
composed schema that is
|
|
143
|
+
is traveled through is added to this set.
|
|
144
|
+
For example if Animal has a discriminator
|
|
145
|
+
petType and we pass in "Dog", and the class Dog
|
|
146
|
+
allOf includes Animal, we move through Animal
|
|
147
|
+
once using the discriminator, and pick Dog.
|
|
148
|
+
Then in Dog, we will make an instance of the
|
|
149
|
+
Animal class but this time we won't travel
|
|
150
|
+
through its discriminator because we passed in
|
|
151
|
+
_visited_composed_classes = (Animal,)
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
155
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
156
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
157
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
158
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
159
|
+
|
|
160
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
161
|
+
|
|
162
|
+
if args:
|
|
163
|
+
for arg in args:
|
|
164
|
+
if isinstance(arg, dict):
|
|
165
|
+
kwargs.update(arg)
|
|
166
|
+
else:
|
|
167
|
+
raise ApiTypeError(
|
|
168
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
169
|
+
args,
|
|
170
|
+
self.__class__.__name__,
|
|
171
|
+
),
|
|
172
|
+
path_to_item=_path_to_item,
|
|
173
|
+
valid_classes=(self.__class__,),
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
self._data_store = {}
|
|
177
|
+
self._check_type = _check_type
|
|
178
|
+
self._spec_property_naming = _spec_property_naming
|
|
179
|
+
self._path_to_item = _path_to_item
|
|
180
|
+
self._configuration = _configuration
|
|
181
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
182
|
+
|
|
183
|
+
self.loc = loc
|
|
184
|
+
self.msg = msg
|
|
185
|
+
self.type = type
|
|
186
|
+
for var_name, var_value in kwargs.items():
|
|
187
|
+
if var_name not in self.attribute_map and \
|
|
188
|
+
self._configuration is not None and \
|
|
189
|
+
self._configuration.discard_unknown_keys and \
|
|
190
|
+
self.additional_properties_type is None:
|
|
191
|
+
# discard variable.
|
|
192
|
+
continue
|
|
193
|
+
setattr(self, var_name, var_value)
|
|
194
|
+
return self
|
|
195
|
+
|
|
196
|
+
required_properties = set([
|
|
197
|
+
'_data_store',
|
|
198
|
+
'_check_type',
|
|
199
|
+
'_spec_property_naming',
|
|
200
|
+
'_path_to_item',
|
|
201
|
+
'_configuration',
|
|
202
|
+
'_visited_composed_classes',
|
|
203
|
+
])
|
|
204
|
+
|
|
205
|
+
@convert_js_args_to_python_args
|
|
206
|
+
def __init__(self, loc, msg, type, *args, **kwargs): # noqa: E501
|
|
207
|
+
"""ValidationError - a model defined in OpenAPI
|
|
208
|
+
|
|
209
|
+
Args:
|
|
210
|
+
loc ([LocationInner]):
|
|
211
|
+
msg (str):
|
|
212
|
+
type (str):
|
|
213
|
+
|
|
214
|
+
Keyword Args:
|
|
215
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
216
|
+
will be type checked and a TypeError will be
|
|
217
|
+
raised if the wrong type is input.
|
|
218
|
+
Defaults to True
|
|
219
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
220
|
+
drill down to the model in received_data
|
|
221
|
+
when deserializing a response
|
|
222
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
223
|
+
are serialized names, as specified in the OpenAPI document.
|
|
224
|
+
False if the variable names in the input data
|
|
225
|
+
are pythonic names, e.g. snake case (default)
|
|
226
|
+
_configuration (Configuration): the instance to use when
|
|
227
|
+
deserializing a file_type parameter.
|
|
228
|
+
If passed, type conversion is attempted
|
|
229
|
+
If omitted no type conversion is done.
|
|
230
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
231
|
+
classes that we have traveled through so that
|
|
232
|
+
if we see that class again we will not use its
|
|
233
|
+
discriminator again.
|
|
234
|
+
When traveling through a discriminator, the
|
|
235
|
+
composed schema that is
|
|
236
|
+
is traveled through is added to this set.
|
|
237
|
+
For example if Animal has a discriminator
|
|
238
|
+
petType and we pass in "Dog", and the class Dog
|
|
239
|
+
allOf includes Animal, we move through Animal
|
|
240
|
+
once using the discriminator, and pick Dog.
|
|
241
|
+
Then in Dog, we will make an instance of the
|
|
242
|
+
Animal class but this time we won't travel
|
|
243
|
+
through its discriminator because we passed in
|
|
244
|
+
_visited_composed_classes = (Animal,)
|
|
245
|
+
"""
|
|
246
|
+
|
|
247
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
248
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
249
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
250
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
251
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
252
|
+
|
|
253
|
+
if args:
|
|
254
|
+
for arg in args:
|
|
255
|
+
if isinstance(arg, dict):
|
|
256
|
+
kwargs.update(arg)
|
|
257
|
+
else:
|
|
258
|
+
raise ApiTypeError(
|
|
259
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
260
|
+
args,
|
|
261
|
+
self.__class__.__name__,
|
|
262
|
+
),
|
|
263
|
+
path_to_item=_path_to_item,
|
|
264
|
+
valid_classes=(self.__class__,),
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
self._data_store = {}
|
|
268
|
+
self._check_type = _check_type
|
|
269
|
+
self._spec_property_naming = _spec_property_naming
|
|
270
|
+
self._path_to_item = _path_to_item
|
|
271
|
+
self._configuration = _configuration
|
|
272
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
273
|
+
|
|
274
|
+
self.loc = loc
|
|
275
|
+
self.msg = msg
|
|
276
|
+
self.type = type
|
|
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.")
|
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.value_resource_of_retail_media_seller import ValueResourceOfRetailMediaSeller
|
|
34
|
+
globals()['ValueResourceOfRetailMediaSeller'] = ValueResourceOfRetailMediaSeller
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ValueResourceCollectionInputOfRetailMediaSeller(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -80,7 +80,7 @@ class ValueResourceInputOfCampaignBudgetOverrides(ModelNormal):
|
|
|
80
80
|
"""
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
|
-
'data': (
|
|
83
|
+
'data': ([ValueResourceOfRetailMediaSeller], none_type,), # noqa: E501
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
@cached_property
|
|
@@ -100,7 +100,7 @@ class ValueResourceInputOfCampaignBudgetOverrides(ModelNormal):
|
|
|
100
100
|
@classmethod
|
|
101
101
|
@convert_js_args_to_python_args
|
|
102
102
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
103
|
-
"""
|
|
103
|
+
"""ValueResourceCollectionInputOfRetailMediaSeller - a model defined in OpenAPI
|
|
104
104
|
|
|
105
105
|
Keyword Args:
|
|
106
106
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -133,7 +133,7 @@ class ValueResourceInputOfCampaignBudgetOverrides(ModelNormal):
|
|
|
133
133
|
Animal class but this time we won't travel
|
|
134
134
|
through its discriminator because we passed in
|
|
135
135
|
_visited_composed_classes = (Animal,)
|
|
136
|
-
data (
|
|
136
|
+
data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
|
|
137
137
|
"""
|
|
138
138
|
|
|
139
139
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -186,7 +186,7 @@ class ValueResourceInputOfCampaignBudgetOverrides(ModelNormal):
|
|
|
186
186
|
|
|
187
187
|
@convert_js_args_to_python_args
|
|
188
188
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
189
|
-
"""
|
|
189
|
+
"""ValueResourceCollectionInputOfRetailMediaSeller - a model defined in OpenAPI
|
|
190
190
|
|
|
191
191
|
Keyword Args:
|
|
192
192
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -219,7 +219,7 @@ class ValueResourceInputOfCampaignBudgetOverrides(ModelNormal):
|
|
|
219
219
|
Animal class but this time we won't travel
|
|
220
220
|
through its discriminator because we passed in
|
|
221
221
|
_visited_composed_classes = (Animal,)
|
|
222
|
-
data (
|
|
222
|
+
data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
|
|
223
223
|
"""
|
|
224
224
|
|
|
225
225
|
_check_type = kwargs.pop('_check_type', True)
|