criteo-api-retailmedia-sdk 0.0.240808__py3-none-any.whl → 0.0.250129__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 +45 -198
- 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 +0 -159
- criteo_api_retailmedia_preview/api/campaign_api.py +246 -1604
- criteo_api_retailmedia_preview/api/catalog_api.py +161 -0
- 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/async_accounts_report.py +40 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +40 -0
- criteo_api_retailmedia_preview/model/async_line_items_report.py +40 -0
- criteo_api_retailmedia_preview/model/balance_response_v2_response.py +1 -1
- criteo_api_retailmedia_preview/model/{creative_v2_response.py → bot_message.py} +17 -21
- criteo_api_retailmedia_preview/model/botmessage.py +329 -0
- criteo_api_retailmedia_preview/model/brand_id_search_request.py +271 -0
- criteo_api_retailmedia_preview/model/{external_retailer.py → brand_id_search_result.py} +26 -26
- criteo_api_retailmedia_preview/model/category.py +3 -3
- criteo_api_retailmedia_preview/model/change_details_v1.py +8 -18
- criteo_api_retailmedia_preview/model/{external_choice_variable_value.py → choice_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/model/{external_color_variable_value.py → color_variable_value.py} +5 -11
- criteo_api_retailmedia_preview/model/{sku_search_request.py → cpc_min_bids_request.py} +11 -16
- criteo_api_retailmedia_preview/model/{page_of_insertion_order_history_change_data_capture_v2.py → cpc_min_bids_response.py} +19 -21
- criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py +6 -6
- criteo_api_retailmedia_preview/model/{external_creative_v2.py → creative2.py} +23 -30
- criteo_api_retailmedia_preview/model/{resource_outcome_of_retail_media_account.py → creative2_list_response.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_collection_outcome_of_sku_search_result.py → creative2_response.py} +9 -9
- criteo_api_retailmedia_preview/model/{external_creative_create_model_v2.py → creative_create_model2.py} +9 -16
- criteo_api_retailmedia_preview/model/{external_creative_update_model_v2.py → creative_update_model2.py} +9 -16
- criteo_api_retailmedia_preview/model/{resource_of_retail_media_account.py → entity_resource_brand_id_search_result.py} +13 -13
- criteo_api_retailmedia_preview/model/{value_resource_outcome_of_campaign_budget_overrides.py → entity_resource_collection_outcome_brand_id_search_result.py} +16 -16
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_list_response.py → entity_resource_collection_outcome_of_retail_media_child_account.py} +15 -9
- criteo_api_retailmedia_preview/model/{resource_of_add_funds_to_balance_v2.py → entity_resource_of_retail_media_child_account.py} +14 -14
- criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +1 -1
- criteo_api_retailmedia_preview/model/{external_account.py → external_retail_media_child_account.py} +39 -56
- criteo_api_retailmedia_preview/model/{external_files_variable_value.py → files_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/model/http_validation_error.py +269 -0
- criteo_api_retailmedia_preview/model/{external_hyperlink_variable_value.py → hyperlink_variable_value.py} +5 -11
- criteo_api_retailmedia_preview/model/inbot_discussion.py +272 -0
- criteo_api_retailmedia_preview/model/{external_brand.py → inbot_discussion_body_model.py} +17 -15
- criteo_api_retailmedia_preview/model/inbot_discussion_data_instance_model.py +279 -0
- criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request.py +1 -1
- criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_request.py +1 -1
- criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +1 -1
- criteo_api_retailmedia_preview/model/{external_text_variable_value.py → location_inner.py} +3 -7
- 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/{json_api_body_with_id_of_int64_and_retailer_and_retailer.py → message_data_instance_model.py} +16 -22
- criteo_api_retailmedia_preview/model/message_error.py +275 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_segment_customer_list.py → offset_page_metadata.py} +21 -17
- criteo_api_retailmedia_preview/model/{resource_of_sku_search_result.py → outcome.py} +15 -17
- criteo_api_retailmedia_preview/model/{external_page_type_environment.py → page_type_environment2.py} +4 -10
- criteo_api_retailmedia_preview/model/placement_preview.py +4 -0
- criteo_api_retailmedia_preview/model/product.py +4 -0
- criteo_api_retailmedia_preview/model/product_recommendation.py +305 -0
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_account_and_account.py → report_detail_warning.py} +21 -21
- criteo_api_retailmedia_preview/model/report_detail_warnings.py +281 -0
- criteo_api_retailmedia_preview/model/report_ok_response.py +31 -17
- criteo_api_retailmedia_preview/model/{proposal_status_model_resource.py → resource_of_creative2.py} +14 -14
- criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers_v2.py +1 -1
- criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +1 -1
- criteo_api_retailmedia_preview/model/retail_media_seller.py +4 -0
- criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +275 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_resource.py → rm_audience_entity_v1.py} +45 -24
- 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/{creative_v2_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/{resource_of_creative_v2.py → rm_audience_search_entity_v1_resource.py} +11 -15
- criteo_api_retailmedia_preview/model/{add_funds_to_balance_v2_request.py → rm_audience_search_input_v1.py} +8 -8
- 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 +7 -7
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +5 -5
- criteo_api_retailmedia_preview/model/{rm_user_behavior_v1.py → rm_events_v1.py} +3 -3
- criteo_api_retailmedia_preview/model/{retail_media_account.py → sdk_api_rest_common_problem.py} +41 -42
- criteo_api_retailmedia_preview/model/seller_catalog_request.py +1 -1
- criteo_api_retailmedia_preview/model/{sku_search_request_body.py → seller_search.py} +18 -25
- criteo_api_retailmedia_preview/model/sku_data_preview.py +27 -27
- criteo_api_retailmedia_preview/model/sku_min_bid.py +269 -0
- criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +9 -13
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +4 -0
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +1 -11
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +1 -11
- criteo_api_retailmedia_preview/model/{external_template_variable_value.py → template_variable_value.py} +36 -43
- criteo_api_retailmedia_preview/model/text_variable_value.py +257 -0
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_brand_and_brand.py → validation_error.py} +19 -17
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_seller_account_creation.py → value_resource_brand_id_search_request.py} +10 -10
- criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_of_campaign_budget_overrides.py → value_resource_cpc_min_bids_request.py} +10 -10
- criteo_api_retailmedia_preview/model/{value_resource_of_line_item_budget_overrides.py → value_resource_cpc_min_bids_response.py} +10 -10
- criteo_api_retailmedia_preview/model/{value_resource_input_of_line_item_budget_overrides.py → value_resource_input_brand_id_search_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_collection_input_of_retail_media_seller.py → value_resource_input_cpc_min_bids_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_input_of_campaign_budget_overrides.py → value_resource_input_of_seller_search.py} +8 -8
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +2 -2
- criteo_api_retailmedia_preview/model/value_resource_of_seller_search.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_outcome_of_line_item_budget_overrides.py → value_resource_outcome_cpc_min_bids_response.py} +16 -16
- criteo_api_retailmedia_preview/model/{external_video_variable_value.py → video_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/models/__init__.py +60 -69
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/METADATA +14 -5
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/RECORD +105 -113
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/add_funds_to_balance_v2.py +0 -277
- criteo_api_retailmedia_preview/model/approval_status_model.py +0 -292
- 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/change_details_v2.py +0 -275
- criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py +0 -281
- criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture_v2.py +0 -303
- criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py +0 -295
- 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/negotiation_state_model.py +0 -293
- criteo_api_retailmedia_preview/model/proposal_status_model.py +0 -284
- criteo_api_retailmedia_preview/model/proposal_status_model_response.py +0 -274
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +0 -270
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py +0 -291
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +0 -291
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py +0 -281
- criteo_api_retailmedia_preview/model/rm_legacy_audience_user_behavior_details_v2.py +0 -279
- criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v1.py +0 -306
- criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v2.py +0 -311
- criteo_api_retailmedia_preview/model/sku_search_result.py +0 -313
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +0 -262
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/top_level.txt +0 -0
criteo_api_retailmedia_preview/model/{rm_legacy_segment_customer_list.py → offset_page_metadata.py}
RENAMED
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class OffsetPageMetadata(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -81,8 +81,9 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'
|
|
85
|
-
'
|
|
84
|
+
'offset': (int,), # noqa: E501
|
|
85
|
+
'limit': (int,), # noqa: E501
|
|
86
|
+
'count': (int, none_type,), # noqa: E501
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
@cached_property
|
|
@@ -91,8 +92,9 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
91
92
|
|
|
92
93
|
|
|
93
94
|
attribute_map = {
|
|
94
|
-
'
|
|
95
|
-
'
|
|
95
|
+
'offset': 'offset', # noqa: E501
|
|
96
|
+
'limit': 'limit', # noqa: E501
|
|
97
|
+
'count': 'count', # noqa: E501
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
read_only_vars = {
|
|
@@ -102,12 +104,12 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
102
104
|
|
|
103
105
|
@classmethod
|
|
104
106
|
@convert_js_args_to_python_args
|
|
105
|
-
def _from_openapi_data(cls,
|
|
106
|
-
"""
|
|
107
|
+
def _from_openapi_data(cls, offset, limit, *args, **kwargs): # noqa: E501
|
|
108
|
+
"""OffsetPageMetadata - a model defined in OpenAPI
|
|
107
109
|
|
|
108
110
|
Args:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
offset (int):
|
|
112
|
+
limit (int):
|
|
111
113
|
|
|
112
114
|
Keyword Args:
|
|
113
115
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -140,6 +142,7 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
140
142
|
Animal class but this time we won't travel
|
|
141
143
|
through its discriminator because we passed in
|
|
142
144
|
_visited_composed_classes = (Animal,)
|
|
145
|
+
count (int, none_type): [optional] # noqa: E501
|
|
143
146
|
"""
|
|
144
147
|
|
|
145
148
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -171,8 +174,8 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
171
174
|
self._configuration = _configuration
|
|
172
175
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
173
176
|
|
|
174
|
-
self.
|
|
175
|
-
self.
|
|
177
|
+
self.offset = offset
|
|
178
|
+
self.limit = limit
|
|
176
179
|
for var_name, var_value in kwargs.items():
|
|
177
180
|
if var_name not in self.attribute_map and \
|
|
178
181
|
self._configuration is not None and \
|
|
@@ -193,12 +196,12 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
193
196
|
])
|
|
194
197
|
|
|
195
198
|
@convert_js_args_to_python_args
|
|
196
|
-
def __init__(self,
|
|
197
|
-
"""
|
|
199
|
+
def __init__(self, offset, limit, *args, **kwargs): # noqa: E501
|
|
200
|
+
"""OffsetPageMetadata - a model defined in OpenAPI
|
|
198
201
|
|
|
199
202
|
Args:
|
|
200
|
-
|
|
201
|
-
|
|
203
|
+
offset (int):
|
|
204
|
+
limit (int):
|
|
202
205
|
|
|
203
206
|
Keyword Args:
|
|
204
207
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -231,6 +234,7 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
231
234
|
Animal class but this time we won't travel
|
|
232
235
|
through its discriminator because we passed in
|
|
233
236
|
_visited_composed_classes = (Animal,)
|
|
237
|
+
count (int, none_type): [optional] # noqa: E501
|
|
234
238
|
"""
|
|
235
239
|
|
|
236
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -260,8 +264,8 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
260
264
|
self._configuration = _configuration
|
|
261
265
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
262
266
|
|
|
263
|
-
self.
|
|
264
|
-
self.
|
|
267
|
+
self.offset = offset
|
|
268
|
+
self.limit = limit
|
|
265
269
|
for var_name, var_value in kwargs.items():
|
|
266
270
|
if var_name not in self.attribute_map and \
|
|
267
271
|
self._configuration is not None and \
|
|
@@ -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.sdk_api_rest_common_problem import SdkApiRestCommonProblem
|
|
34
|
+
globals()['SdkApiRestCommonProblem'] = SdkApiRestCommonProblem
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class Outcome(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -80,9 +80,8 @@ class ResourceOfSkuSearchResult(ModelNormal):
|
|
|
80
80
|
"""
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'type': (str, none_type,), # noqa: E501
|
|
83
|
+
'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
84
|
+
'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
@cached_property
|
|
@@ -91,12 +90,13 @@ class ResourceOfSkuSearchResult(ModelNormal):
|
|
|
91
90
|
|
|
92
91
|
|
|
93
92
|
attribute_map = {
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'type': 'type', # noqa: E501
|
|
93
|
+
'warnings': 'warnings', # noqa: E501
|
|
94
|
+
'errors': 'errors', # noqa: E501
|
|
97
95
|
}
|
|
98
96
|
|
|
99
97
|
read_only_vars = {
|
|
98
|
+
'warnings', # noqa: E501
|
|
99
|
+
'errors', # noqa: E501
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
_composed_schemas = {}
|
|
@@ -104,7 +104,7 @@ class ResourceOfSkuSearchResult(ModelNormal):
|
|
|
104
104
|
@classmethod
|
|
105
105
|
@convert_js_args_to_python_args
|
|
106
106
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
107
|
-
"""
|
|
107
|
+
"""Outcome - a model defined in OpenAPI
|
|
108
108
|
|
|
109
109
|
Keyword Args:
|
|
110
110
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -137,9 +137,8 @@ class ResourceOfSkuSearchResult(ModelNormal):
|
|
|
137
137
|
Animal class but this time we won't travel
|
|
138
138
|
through its discriminator because we passed in
|
|
139
139
|
_visited_composed_classes = (Animal,)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
type (str, none_type): [optional] # noqa: E501
|
|
140
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
141
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
143
142
|
"""
|
|
144
143
|
|
|
145
144
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -192,7 +191,7 @@ class ResourceOfSkuSearchResult(ModelNormal):
|
|
|
192
191
|
|
|
193
192
|
@convert_js_args_to_python_args
|
|
194
193
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
195
|
-
"""
|
|
194
|
+
"""Outcome - a model defined in OpenAPI
|
|
196
195
|
|
|
197
196
|
Keyword Args:
|
|
198
197
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -225,9 +224,8 @@ class ResourceOfSkuSearchResult(ModelNormal):
|
|
|
225
224
|
Animal class but this time we won't travel
|
|
226
225
|
through its discriminator because we passed in
|
|
227
226
|
_visited_composed_classes = (Animal,)
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
type (str, none_type): [optional] # noqa: E501
|
|
227
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
228
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
231
229
|
"""
|
|
232
230
|
|
|
233
231
|
_check_type = kwargs.pop('_check_type', True)
|
criteo_api_retailmedia_preview/model/{external_page_type_environment.py → page_type_environment2.py}
RENAMED
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class PageTypeEnvironment2(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -86,13 +86,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
|
|
|
86
86
|
validations = {
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
def additional_properties_type():
|
|
91
|
-
"""
|
|
92
|
-
This must be a method because a model may have properties that are
|
|
93
|
-
of type self, this must run after the class is loaded
|
|
94
|
-
"""
|
|
95
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
89
|
+
additional_properties_type = None
|
|
96
90
|
|
|
97
91
|
_nullable = False
|
|
98
92
|
|
|
@@ -129,7 +123,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
|
|
|
129
123
|
@classmethod
|
|
130
124
|
@convert_js_args_to_python_args
|
|
131
125
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
132
|
-
"""
|
|
126
|
+
"""PageTypeEnvironment2 - a model defined in OpenAPI
|
|
133
127
|
|
|
134
128
|
Keyword Args:
|
|
135
129
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -216,7 +210,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
|
|
|
216
210
|
|
|
217
211
|
@convert_js_args_to_python_args
|
|
218
212
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
219
|
-
"""
|
|
213
|
+
"""PageTypeEnvironment2 - a model defined in OpenAPI
|
|
220
214
|
|
|
221
215
|
Keyword Args:
|
|
222
216
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -189,6 +189,7 @@ class Product(ModelNormal):
|
|
|
189
189
|
'external_seller_name': (str, none_type,), # noqa: E501
|
|
190
190
|
'number_of_reviews': (int, none_type,), # noqa: E501
|
|
191
191
|
'product_rating': (str, none_type,), # noqa: E501
|
|
192
|
+
'badge': (str, none_type,), # noqa: E501
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
@cached_property
|
|
@@ -278,6 +279,7 @@ class Product(ModelNormal):
|
|
|
278
279
|
'external_seller_name': 'externalSellerName', # noqa: E501
|
|
279
280
|
'number_of_reviews': 'numberOfReviews', # noqa: E501
|
|
280
281
|
'product_rating': 'productRating', # noqa: E501
|
|
282
|
+
'badge': 'badge', # noqa: E501
|
|
281
283
|
}
|
|
282
284
|
|
|
283
285
|
read_only_vars = {
|
|
@@ -404,6 +406,7 @@ class Product(ModelNormal):
|
|
|
404
406
|
external_seller_name (str, none_type): The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501
|
|
405
407
|
number_of_reviews (int, none_type): The number of customer reviews for the product. [optional] # noqa: E501
|
|
406
408
|
product_rating (str, none_type): The product rating for the product. [optional] # noqa: E501
|
|
409
|
+
badge (str, none_type): URL of a badge image to display on the product.. [optional] # noqa: E501
|
|
407
410
|
"""
|
|
408
411
|
|
|
409
412
|
channel = kwargs.get('channel', "online")
|
|
@@ -578,6 +581,7 @@ class Product(ModelNormal):
|
|
|
578
581
|
external_seller_name (str, none_type): The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501
|
|
579
582
|
number_of_reviews (int, none_type): The number of customer reviews for the product. [optional] # noqa: E501
|
|
580
583
|
product_rating (str, none_type): The product rating for the product. [optional] # noqa: E501
|
|
584
|
+
badge (str, none_type): URL of a badge image to display on the product.. [optional] # noqa: E501
|
|
581
585
|
"""
|
|
582
586
|
|
|
583
587
|
channel = kwargs.get('channel', "online")
|
|
@@ -0,0 +1,305 @@
|
|
|
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
|
+
|
|
33
|
+
class ProductRecommendation(ModelNormal):
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
41
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
42
|
+
with a capitalized key describing the allowed value and an allowed
|
|
43
|
+
value. These dicts store the allowed enum values.
|
|
44
|
+
attribute_map (dict): The key is attribute name
|
|
45
|
+
and the value is json key in definition.
|
|
46
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
47
|
+
variable value to the discriminator class name.
|
|
48
|
+
validations (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
|
+
that stores validations for max_length, min_length, max_items,
|
|
51
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
52
|
+
inclusive_minimum, and regex.
|
|
53
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
54
|
+
as additional properties values.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
allowed_values = {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validations = {
|
|
61
|
+
('image_url',): {
|
|
62
|
+
'max_length': 65536,
|
|
63
|
+
'min_length': 1,
|
|
64
|
+
},
|
|
65
|
+
('url',): {
|
|
66
|
+
'max_length': 65536,
|
|
67
|
+
'min_length': 1,
|
|
68
|
+
},
|
|
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
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
78
|
+
|
|
79
|
+
_nullable = False
|
|
80
|
+
|
|
81
|
+
@cached_property
|
|
82
|
+
def openapi_types():
|
|
83
|
+
"""
|
|
84
|
+
This must be a method because a model may have properties that are
|
|
85
|
+
of type self, this must run after the class is loaded
|
|
86
|
+
|
|
87
|
+
Returns
|
|
88
|
+
openapi_types (dict): The key is attribute name
|
|
89
|
+
and the value is attribute type.
|
|
90
|
+
"""
|
|
91
|
+
return {
|
|
92
|
+
'rationale': (str,), # noqa: E501
|
|
93
|
+
'name': (str, none_type,), # noqa: E501
|
|
94
|
+
'description': (str, none_type,), # noqa: E501
|
|
95
|
+
'image_url': (str, none_type,), # noqa: E501
|
|
96
|
+
'url': (str, none_type,), # noqa: E501
|
|
97
|
+
'brand': (str, none_type,), # noqa: E501
|
|
98
|
+
'price': (float, none_type,), # noqa: E501
|
|
99
|
+
'currency': (str, none_type,), # noqa: E501
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@cached_property
|
|
103
|
+
def discriminator():
|
|
104
|
+
return None
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
attribute_map = {
|
|
108
|
+
'rationale': 'rationale', # noqa: E501
|
|
109
|
+
'name': 'name', # noqa: E501
|
|
110
|
+
'description': 'description', # noqa: E501
|
|
111
|
+
'image_url': 'imageUrl', # noqa: E501
|
|
112
|
+
'url': 'url', # noqa: E501
|
|
113
|
+
'brand': 'brand', # noqa: E501
|
|
114
|
+
'price': 'price', # noqa: E501
|
|
115
|
+
'currency': 'currency', # noqa: E501
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
read_only_vars = {
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
_composed_schemas = {}
|
|
122
|
+
|
|
123
|
+
@classmethod
|
|
124
|
+
@convert_js_args_to_python_args
|
|
125
|
+
def _from_openapi_data(cls, rationale, *args, **kwargs): # noqa: E501
|
|
126
|
+
"""ProductRecommendation - a model defined in OpenAPI
|
|
127
|
+
|
|
128
|
+
Args:
|
|
129
|
+
rationale (str): reason for this recommendation, given by the bot
|
|
130
|
+
|
|
131
|
+
Keyword Args:
|
|
132
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
133
|
+
will be type checked and a TypeError will be
|
|
134
|
+
raised if the wrong type is input.
|
|
135
|
+
Defaults to True
|
|
136
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
137
|
+
drill down to the model in received_data
|
|
138
|
+
when deserializing a response
|
|
139
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
140
|
+
are serialized names, as specified in the OpenAPI document.
|
|
141
|
+
False if the variable names in the input data
|
|
142
|
+
are pythonic names, e.g. snake case (default)
|
|
143
|
+
_configuration (Configuration): the instance to use when
|
|
144
|
+
deserializing a file_type parameter.
|
|
145
|
+
If passed, type conversion is attempted
|
|
146
|
+
If omitted no type conversion is done.
|
|
147
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
148
|
+
classes that we have traveled through so that
|
|
149
|
+
if we see that class again we will not use its
|
|
150
|
+
discriminator again.
|
|
151
|
+
When traveling through a discriminator, the
|
|
152
|
+
composed schema that is
|
|
153
|
+
is traveled through is added to this set.
|
|
154
|
+
For example if Animal has a discriminator
|
|
155
|
+
petType and we pass in "Dog", and the class Dog
|
|
156
|
+
allOf includes Animal, we move through Animal
|
|
157
|
+
once using the discriminator, and pick Dog.
|
|
158
|
+
Then in Dog, we will make an instance of the
|
|
159
|
+
Animal class but this time we won't travel
|
|
160
|
+
through its discriminator because we passed in
|
|
161
|
+
_visited_composed_classes = (Animal,)
|
|
162
|
+
name (str, none_type): name of the product. [optional] # noqa: E501
|
|
163
|
+
description (str, none_type): description of the product. [optional] # noqa: E501
|
|
164
|
+
image_url (str, none_type): url of the product image. [optional] # noqa: E501
|
|
165
|
+
url (str, none_type): url of the product on the retailer website. [optional] # noqa: E501
|
|
166
|
+
brand (str, none_type): brand of the product. [optional] # noqa: E501
|
|
167
|
+
price (float, none_type): numerical value of the price of the product. [optional] # noqa: E501
|
|
168
|
+
currency (str, none_type): currency of the price of the product. [optional] # noqa: E501
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
172
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
173
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
174
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
175
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
176
|
+
|
|
177
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
178
|
+
|
|
179
|
+
if args:
|
|
180
|
+
for arg in args:
|
|
181
|
+
if isinstance(arg, dict):
|
|
182
|
+
kwargs.update(arg)
|
|
183
|
+
else:
|
|
184
|
+
raise ApiTypeError(
|
|
185
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
186
|
+
args,
|
|
187
|
+
self.__class__.__name__,
|
|
188
|
+
),
|
|
189
|
+
path_to_item=_path_to_item,
|
|
190
|
+
valid_classes=(self.__class__,),
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
self._data_store = {}
|
|
194
|
+
self._check_type = _check_type
|
|
195
|
+
self._spec_property_naming = _spec_property_naming
|
|
196
|
+
self._path_to_item = _path_to_item
|
|
197
|
+
self._configuration = _configuration
|
|
198
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
199
|
+
|
|
200
|
+
self.rationale = rationale
|
|
201
|
+
for var_name, var_value in kwargs.items():
|
|
202
|
+
if var_name not in self.attribute_map and \
|
|
203
|
+
self._configuration is not None and \
|
|
204
|
+
self._configuration.discard_unknown_keys and \
|
|
205
|
+
self.additional_properties_type is None:
|
|
206
|
+
# discard variable.
|
|
207
|
+
continue
|
|
208
|
+
setattr(self, var_name, var_value)
|
|
209
|
+
return self
|
|
210
|
+
|
|
211
|
+
required_properties = set([
|
|
212
|
+
'_data_store',
|
|
213
|
+
'_check_type',
|
|
214
|
+
'_spec_property_naming',
|
|
215
|
+
'_path_to_item',
|
|
216
|
+
'_configuration',
|
|
217
|
+
'_visited_composed_classes',
|
|
218
|
+
])
|
|
219
|
+
|
|
220
|
+
@convert_js_args_to_python_args
|
|
221
|
+
def __init__(self, rationale, *args, **kwargs): # noqa: E501
|
|
222
|
+
"""ProductRecommendation - a model defined in OpenAPI
|
|
223
|
+
|
|
224
|
+
Args:
|
|
225
|
+
rationale (str): reason for this recommendation, given by the bot
|
|
226
|
+
|
|
227
|
+
Keyword Args:
|
|
228
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
229
|
+
will be type checked and a TypeError will be
|
|
230
|
+
raised if the wrong type is input.
|
|
231
|
+
Defaults to True
|
|
232
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
233
|
+
drill down to the model in received_data
|
|
234
|
+
when deserializing a response
|
|
235
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
236
|
+
are serialized names, as specified in the OpenAPI document.
|
|
237
|
+
False if the variable names in the input data
|
|
238
|
+
are pythonic names, e.g. snake case (default)
|
|
239
|
+
_configuration (Configuration): the instance to use when
|
|
240
|
+
deserializing a file_type parameter.
|
|
241
|
+
If passed, type conversion is attempted
|
|
242
|
+
If omitted no type conversion is done.
|
|
243
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
244
|
+
classes that we have traveled through so that
|
|
245
|
+
if we see that class again we will not use its
|
|
246
|
+
discriminator again.
|
|
247
|
+
When traveling through a discriminator, the
|
|
248
|
+
composed schema that is
|
|
249
|
+
is traveled through is added to this set.
|
|
250
|
+
For example if Animal has a discriminator
|
|
251
|
+
petType and we pass in "Dog", and the class Dog
|
|
252
|
+
allOf includes Animal, we move through Animal
|
|
253
|
+
once using the discriminator, and pick Dog.
|
|
254
|
+
Then in Dog, we will make an instance of the
|
|
255
|
+
Animal class but this time we won't travel
|
|
256
|
+
through its discriminator because we passed in
|
|
257
|
+
_visited_composed_classes = (Animal,)
|
|
258
|
+
name (str, none_type): name of the product. [optional] # noqa: E501
|
|
259
|
+
description (str, none_type): description of the product. [optional] # noqa: E501
|
|
260
|
+
image_url (str, none_type): url of the product image. [optional] # noqa: E501
|
|
261
|
+
url (str, none_type): url of the product on the retailer website. [optional] # noqa: E501
|
|
262
|
+
brand (str, none_type): brand of the product. [optional] # noqa: E501
|
|
263
|
+
price (float, none_type): numerical value of the price of the product. [optional] # noqa: E501
|
|
264
|
+
currency (str, none_type): currency of the price of the product. [optional] # noqa: E501
|
|
265
|
+
"""
|
|
266
|
+
|
|
267
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
268
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
269
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
270
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
271
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
272
|
+
|
|
273
|
+
if args:
|
|
274
|
+
for arg in args:
|
|
275
|
+
if isinstance(arg, dict):
|
|
276
|
+
kwargs.update(arg)
|
|
277
|
+
else:
|
|
278
|
+
raise ApiTypeError(
|
|
279
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
280
|
+
args,
|
|
281
|
+
self.__class__.__name__,
|
|
282
|
+
),
|
|
283
|
+
path_to_item=_path_to_item,
|
|
284
|
+
valid_classes=(self.__class__,),
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
self._data_store = {}
|
|
288
|
+
self._check_type = _check_type
|
|
289
|
+
self._spec_property_naming = _spec_property_naming
|
|
290
|
+
self._path_to_item = _path_to_item
|
|
291
|
+
self._configuration = _configuration
|
|
292
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
293
|
+
|
|
294
|
+
self.rationale = rationale
|
|
295
|
+
for var_name, var_value in kwargs.items():
|
|
296
|
+
if var_name not in self.attribute_map and \
|
|
297
|
+
self._configuration is not None and \
|
|
298
|
+
self._configuration.discard_unknown_keys and \
|
|
299
|
+
self.additional_properties_type is None:
|
|
300
|
+
# discard variable.
|
|
301
|
+
continue
|
|
302
|
+
setattr(self, var_name, var_value)
|
|
303
|
+
if var_name in self.read_only_vars:
|
|
304
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
305
|
+
f"class with read only attributes.")
|