criteo-api-retailmedia-sdk 0.0.240207__py3-none-any.whl → 0.0.240515__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 +181 -35
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/audience_api.py +284 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +1678 -902
- criteo_api_retailmedia_preview/api/catalog_api.py +312 -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/{retail_media_externalv1_add_remove_keyword_model.py → add_remove_keyword_model.py} +12 -19
- criteo_api_retailmedia_preview/model/add_remove_keywords_model.py +262 -0
- criteo_api_retailmedia_preview/model/add_remove_keywords_model_request.py +262 -0
- criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/approval_status_model.py +292 -0
- criteo_api_retailmedia_preview/model/async_accounts_report.py +421 -0
- criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +74 -59
- criteo_api_retailmedia_preview/model/async_line_items_report.py +74 -60
- criteo_api_retailmedia_preview/model/audience_error.py +310 -0
- criteo_api_retailmedia_preview/model/{template_variable.py → audience_warning.py} +48 -46
- criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → batch_accepted_response.py} +11 -11
- criteo_api_retailmedia_preview/model/change_details.py +275 -0
- criteo_api_retailmedia_preview/model/{creative202210_list_response.py → creative_v2_list_response.py} +16 -16
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → creative_v2_response.py} +16 -9
- criteo_api_retailmedia_preview/model/custom_attribute.py +275 -0
- criteo_api_retailmedia_preview/model/error_code_response.py +281 -0
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/{choice_variable_value.py → external_choice_variable_value.py} +3 -3
- criteo_api_retailmedia_preview/model/{color_variable_value.py → external_color_variable_value.py} +8 -14
- criteo_api_retailmedia_preview/model/{creative_update_model202207.py → external_creative_create_model_v2.py} +11 -11
- criteo_api_retailmedia_preview/model/{creative_create_model202207.py → external_creative_update_model_v2.py} +11 -11
- criteo_api_retailmedia_preview/model/{creative202210.py → external_creative_v2.py} +34 -28
- criteo_api_retailmedia_preview/model/{files_variable_value.py → external_files_variable_value.py} +4 -3
- criteo_api_retailmedia_preview/model/{text_variable_specification.py → external_hyperlink_variable_value.py} +7 -7
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers.py → external_line_item_bid_multipliers_v2.py} +41 -29
- criteo_api_retailmedia_preview/model/external_line_item_capping_v2.py +280 -0
- criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{choice_variable_specification.py → external_line_item_page_v2.py} +36 -21
- criteo_api_retailmedia_preview/model/{page_type_environment.py → external_page_type_environment.py} +15 -9
- criteo_api_retailmedia_preview/model/external_preferred_line_item_create_model_v2.py +345 -0
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
- criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
- criteo_api_retailmedia_preview/model/{template_variable_value.py → external_template_variable_value.py} +36 -30
- criteo_api_retailmedia_preview/model/{text_variable_value.py → external_text_variable_value.py} +8 -14
- criteo_api_retailmedia_preview/model/external_video_variable_value.py +293 -0
- criteo_api_retailmedia_preview/model/{choice_option.py → fail_response.py} +21 -19
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_input_keywords_model.py → input_keywords_model.py} +4 -16
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model.py → input_resource_of_preferred_line_item_create_model_v2.py} +13 -11
- criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture.py +303 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model.py → installment.py} +13 -11
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py → json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{json_api_single_response_of_line_item_bid_multipliers.py → json_api_single_response_of_line_item_bid_multipliers_v2.py} +14 -14
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keyword_data_model.py → keyword_data_model.py} +19 -37
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model.py → keywords_model.py} +9 -18
- criteo_api_retailmedia_preview/model/keywords_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/keywords_model_response.py +274 -0
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_request.py → line_item_bid_multipliers_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_response.py → line_item_bid_multipliers_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/line_item_product_status.py +291 -0
- criteo_api_retailmedia_preview/model/loyalty_points.py +271 -0
- criteo_api_retailmedia_preview/model/match_type_model.py +291 -0
- criteo_api_retailmedia_preview/model/metadata.py +273 -0
- criteo_api_retailmedia_preview/model/negotiation_state_model.py +293 -0
- criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
- criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_request.py → preferred_line_item_update_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{creative202210_response.py → preferred_line_item_v2_paged_list_response.py} +22 -16
- criteo_api_retailmedia_preview/model/{template_response.py → preferred_line_item_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/price.py +267 -0
- criteo_api_retailmedia_preview/model/product.py +626 -0
- criteo_api_retailmedia_preview/model/product_importer_error.py +299 -0
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
- criteo_api_retailmedia_preview/model/product_metadata.py +269 -0
- criteo_api_retailmedia_preview/model/product_resource_outcome.py +266 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_response.py → product_shipping.py} +33 -25
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
- criteo_api_retailmedia_preview/model/product_tax.py +283 -0
- criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +267 -0
- criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +267 -0
- criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
- criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +305 -0
- criteo_api_retailmedia_preview/model/promoted_product.py +270 -0
- criteo_api_retailmedia_preview/model/promoted_product_resource.py +270 -0
- criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +262 -0
- criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +278 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model.py → proposal_status_model.py} +22 -50
- criteo_api_retailmedia_preview/model/proposal_status_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/{template_list_response.py → proposal_status_model_response.py} +20 -27
- criteo_api_retailmedia_preview/model/report_detail_error.py +299 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_request.py → report_detail_errors.py} +23 -11
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_resource.py → report_ok_response.py} +56 -21
- criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_creative_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_line_item_bid_multipliers_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_resource.py → resource_of_preferred_line_item_update_model_v2.py} +16 -22
- criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers.py → resource_of_preferred_line_item_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/resource_outcome.py +268 -0
- criteo_api_retailmedia_preview/model/retail_media_account.py +6 -6
- criteo_api_retailmedia_preview/model/retail_media_brands.py +257 -0
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → retail_media_contactlist_amendment.py} +16 -16
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_resource.py → retail_media_contactlist_amendment_attributes.py} +34 -25
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_request.py +275 -0
- criteo_api_retailmedia_preview/model/{json_api_single_response_of_catalog_status.py → retail_media_contactlist_operation.py} +24 -20
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → retail_media_contactlist_operation_response_attributes.py} +14 -18
- criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes_attributes.py +297 -0
- criteo_api_retailmedia_preview/model/review_state_model.py +294 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_problem_details.py → rmca_common_problem.py} +41 -30
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bid_model.py → set_bid_model.py} +4 -10
- criteo_api_retailmedia_preview/model/set_bids_model.py +262 -0
- criteo_api_retailmedia_preview/model/set_bids_model_request.py +262 -0
- criteo_api_retailmedia_preview/model/set_bids_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +47 -45
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +68 -53
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +70 -56
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +106 -55
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/RECORD +127 -75
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_resource.py +0 -283
- criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py +0 -285
- criteo_api_retailmedia_preview/model/retail_media_externalv1_resource_outcome.py +0 -279
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
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.api_client import ApiClient, Endpoint as _Endpoint
|
|
15
|
+
from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
16
|
+
check_allowed_values,
|
|
17
|
+
check_validations,
|
|
18
|
+
date,
|
|
19
|
+
datetime,
|
|
20
|
+
file_type,
|
|
21
|
+
none_type,
|
|
22
|
+
validate_and_convert_types
|
|
23
|
+
)
|
|
24
|
+
from criteo_api_retailmedia_preview.model.batch_accepted_response import BatchAcceptedResponse
|
|
25
|
+
from criteo_api_retailmedia_preview.model.fail_response import FailResponse
|
|
26
|
+
from criteo_api_retailmedia_preview.model.products_custom_batch_request import ProductsCustomBatchRequest
|
|
27
|
+
from criteo_api_retailmedia_preview.model.report_ok_response import ReportOkResponse
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class CatalogApi(object):
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None):
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
self.preview_retail_media_catalog_products_batch_post_endpoint = _Endpoint(
|
|
42
|
+
settings={
|
|
43
|
+
'response_type': (BatchAcceptedResponse,),
|
|
44
|
+
'auth': [
|
|
45
|
+
'oauth',
|
|
46
|
+
'oauth'
|
|
47
|
+
],
|
|
48
|
+
'endpoint_path': '/preview/retail-media/catalog/products/batch',
|
|
49
|
+
'operation_id': 'preview_retail_media_catalog_products_batch_post',
|
|
50
|
+
'http_method': 'POST',
|
|
51
|
+
'servers': None,
|
|
52
|
+
},
|
|
53
|
+
params_map={
|
|
54
|
+
'all': [
|
|
55
|
+
'products_custom_batch_request',
|
|
56
|
+
],
|
|
57
|
+
'required': [
|
|
58
|
+
'products_custom_batch_request',
|
|
59
|
+
],
|
|
60
|
+
'nullable': [
|
|
61
|
+
],
|
|
62
|
+
'enum': [
|
|
63
|
+
],
|
|
64
|
+
'validation': [
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
root_map={
|
|
68
|
+
'validations': {
|
|
69
|
+
},
|
|
70
|
+
'allowed_values': {
|
|
71
|
+
},
|
|
72
|
+
'openapi_types': {
|
|
73
|
+
'products_custom_batch_request':
|
|
74
|
+
(ProductsCustomBatchRequest,),
|
|
75
|
+
},
|
|
76
|
+
'attribute_map': {
|
|
77
|
+
},
|
|
78
|
+
'location_map': {
|
|
79
|
+
'products_custom_batch_request': 'body',
|
|
80
|
+
},
|
|
81
|
+
'collection_format_map': {
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
headers_map={
|
|
85
|
+
'accept': [
|
|
86
|
+
'application/json'
|
|
87
|
+
],
|
|
88
|
+
'content_type': [
|
|
89
|
+
'application/json'
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
api_client=api_client
|
|
93
|
+
)
|
|
94
|
+
self.preview_retail_media_catalog_products_batch_report_operation_token_get_endpoint = _Endpoint(
|
|
95
|
+
settings={
|
|
96
|
+
'response_type': (ReportOkResponse,),
|
|
97
|
+
'auth': [
|
|
98
|
+
'oauth',
|
|
99
|
+
'oauth'
|
|
100
|
+
],
|
|
101
|
+
'endpoint_path': '/preview/retail-media/catalog/products/batch/report/{operation-token}',
|
|
102
|
+
'operation_id': 'preview_retail_media_catalog_products_batch_report_operation_token_get',
|
|
103
|
+
'http_method': 'GET',
|
|
104
|
+
'servers': None,
|
|
105
|
+
},
|
|
106
|
+
params_map={
|
|
107
|
+
'all': [
|
|
108
|
+
'operation_token',
|
|
109
|
+
],
|
|
110
|
+
'required': [
|
|
111
|
+
'operation_token',
|
|
112
|
+
],
|
|
113
|
+
'nullable': [
|
|
114
|
+
],
|
|
115
|
+
'enum': [
|
|
116
|
+
],
|
|
117
|
+
'validation': [
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
root_map={
|
|
121
|
+
'validations': {
|
|
122
|
+
},
|
|
123
|
+
'allowed_values': {
|
|
124
|
+
},
|
|
125
|
+
'openapi_types': {
|
|
126
|
+
'operation_token':
|
|
127
|
+
(str,),
|
|
128
|
+
},
|
|
129
|
+
'attribute_map': {
|
|
130
|
+
'operation_token': 'operation-token',
|
|
131
|
+
},
|
|
132
|
+
'location_map': {
|
|
133
|
+
'operation_token': 'path',
|
|
134
|
+
},
|
|
135
|
+
'collection_format_map': {
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
headers_map={
|
|
139
|
+
'accept': [
|
|
140
|
+
'application/json'
|
|
141
|
+
],
|
|
142
|
+
'content_type': [],
|
|
143
|
+
},
|
|
144
|
+
api_client=api_client
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
def preview_retail_media_catalog_products_batch_post(
|
|
148
|
+
self,
|
|
149
|
+
products_custom_batch_request,
|
|
150
|
+
**kwargs
|
|
151
|
+
):
|
|
152
|
+
"""preview_retail_media_catalog_products_batch_post # noqa: E501
|
|
153
|
+
|
|
154
|
+
Used to publish a batch of operations to insert, update and deletes products. The batch is processed asynchronously.The response provides an operationToken which can be used to track the status of the report of the operation. # noqa: E501
|
|
155
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
156
|
+
asynchronous HTTP request, please pass async_req=True
|
|
157
|
+
|
|
158
|
+
>>> thread = api.preview_retail_media_catalog_products_batch_post(products_custom_batch_request, async_req=True)
|
|
159
|
+
>>> result = thread.get()
|
|
160
|
+
|
|
161
|
+
Args:
|
|
162
|
+
products_custom_batch_request (ProductsCustomBatchRequest):
|
|
163
|
+
|
|
164
|
+
Keyword Args:
|
|
165
|
+
_return_http_data_only (bool): response data without head status
|
|
166
|
+
code and headers. Default is True.
|
|
167
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
168
|
+
will be returned without reading/decoding response data.
|
|
169
|
+
Default is True.
|
|
170
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
171
|
+
one number provided, it will be total request timeout. It can also
|
|
172
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
173
|
+
Default is None.
|
|
174
|
+
_check_input_type (bool): specifies if type checking
|
|
175
|
+
should be done one the data sent to the server.
|
|
176
|
+
Default is True.
|
|
177
|
+
_check_return_type (bool): specifies if type checking
|
|
178
|
+
should be done one the data received from the server.
|
|
179
|
+
Default is True.
|
|
180
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
181
|
+
are serialized names, as specified in the OpenAPI document.
|
|
182
|
+
False if the variable names in the input data
|
|
183
|
+
are pythonic names, e.g. snake case (default)
|
|
184
|
+
_content_type (str/None): force body content-type.
|
|
185
|
+
Default is None and content-type will be predicted by allowed
|
|
186
|
+
content-types and body.
|
|
187
|
+
_host_index (int/None): specifies the index of the server
|
|
188
|
+
that we want to use.
|
|
189
|
+
Default is read from the configuration.
|
|
190
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
191
|
+
request; this effectively ignores the authentication
|
|
192
|
+
in the spec for a single request.
|
|
193
|
+
Default is None
|
|
194
|
+
async_req (bool): execute request asynchronously
|
|
195
|
+
|
|
196
|
+
Returns:
|
|
197
|
+
BatchAcceptedResponse
|
|
198
|
+
If the method is called asynchronously, returns the request
|
|
199
|
+
thread.
|
|
200
|
+
"""
|
|
201
|
+
kwargs['async_req'] = kwargs.get(
|
|
202
|
+
'async_req', False
|
|
203
|
+
)
|
|
204
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
205
|
+
'_return_http_data_only', True
|
|
206
|
+
)
|
|
207
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
208
|
+
'_preload_content', True
|
|
209
|
+
)
|
|
210
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
211
|
+
'_request_timeout', None
|
|
212
|
+
)
|
|
213
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
214
|
+
'_check_input_type', True
|
|
215
|
+
)
|
|
216
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
217
|
+
'_check_return_type', True
|
|
218
|
+
)
|
|
219
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
220
|
+
'_spec_property_naming', False
|
|
221
|
+
)
|
|
222
|
+
kwargs['_content_type'] = kwargs.get(
|
|
223
|
+
'_content_type')
|
|
224
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
225
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
226
|
+
kwargs['products_custom_batch_request'] = \
|
|
227
|
+
products_custom_batch_request
|
|
228
|
+
return self.preview_retail_media_catalog_products_batch_post_endpoint.call_with_http_info(**kwargs)
|
|
229
|
+
|
|
230
|
+
def preview_retail_media_catalog_products_batch_report_operation_token_get(
|
|
231
|
+
self,
|
|
232
|
+
operation_token,
|
|
233
|
+
**kwargs
|
|
234
|
+
):
|
|
235
|
+
"""preview_retail_media_catalog_products_batch_report_operation_token_get # noqa: E501
|
|
236
|
+
|
|
237
|
+
Get the report of an asynchronous batch operation previously requested # noqa: E501
|
|
238
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
239
|
+
asynchronous HTTP request, please pass async_req=True
|
|
240
|
+
|
|
241
|
+
>>> thread = api.preview_retail_media_catalog_products_batch_report_operation_token_get(operation_token, async_req=True)
|
|
242
|
+
>>> result = thread.get()
|
|
243
|
+
|
|
244
|
+
Args:
|
|
245
|
+
operation_token (str): The token returned by the batch endpoint.
|
|
246
|
+
|
|
247
|
+
Keyword Args:
|
|
248
|
+
_return_http_data_only (bool): response data without head status
|
|
249
|
+
code and headers. Default is True.
|
|
250
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
251
|
+
will be returned without reading/decoding response data.
|
|
252
|
+
Default is True.
|
|
253
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
254
|
+
one number provided, it will be total request timeout. It can also
|
|
255
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
256
|
+
Default is None.
|
|
257
|
+
_check_input_type (bool): specifies if type checking
|
|
258
|
+
should be done one the data sent to the server.
|
|
259
|
+
Default is True.
|
|
260
|
+
_check_return_type (bool): specifies if type checking
|
|
261
|
+
should be done one the data received from the server.
|
|
262
|
+
Default is True.
|
|
263
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
264
|
+
are serialized names, as specified in the OpenAPI document.
|
|
265
|
+
False if the variable names in the input data
|
|
266
|
+
are pythonic names, e.g. snake case (default)
|
|
267
|
+
_content_type (str/None): force body content-type.
|
|
268
|
+
Default is None and content-type will be predicted by allowed
|
|
269
|
+
content-types and body.
|
|
270
|
+
_host_index (int/None): specifies the index of the server
|
|
271
|
+
that we want to use.
|
|
272
|
+
Default is read from the configuration.
|
|
273
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
274
|
+
request; this effectively ignores the authentication
|
|
275
|
+
in the spec for a single request.
|
|
276
|
+
Default is None
|
|
277
|
+
async_req (bool): execute request asynchronously
|
|
278
|
+
|
|
279
|
+
Returns:
|
|
280
|
+
ReportOkResponse
|
|
281
|
+
If the method is called asynchronously, returns the request
|
|
282
|
+
thread.
|
|
283
|
+
"""
|
|
284
|
+
kwargs['async_req'] = kwargs.get(
|
|
285
|
+
'async_req', False
|
|
286
|
+
)
|
|
287
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
288
|
+
'_return_http_data_only', True
|
|
289
|
+
)
|
|
290
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
291
|
+
'_preload_content', True
|
|
292
|
+
)
|
|
293
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
294
|
+
'_request_timeout', None
|
|
295
|
+
)
|
|
296
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
297
|
+
'_check_input_type', True
|
|
298
|
+
)
|
|
299
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
300
|
+
'_check_return_type', True
|
|
301
|
+
)
|
|
302
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
303
|
+
'_spec_property_naming', False
|
|
304
|
+
)
|
|
305
|
+
kwargs['_content_type'] = kwargs.get(
|
|
306
|
+
'_content_type')
|
|
307
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
308
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
309
|
+
kwargs['operation_token'] = \
|
|
310
|
+
operation_token
|
|
311
|
+
return self.preview_retail_media_catalog_products_batch_report_operation_token_get_endpoint.call_with_http_info(**kwargs)
|
|
312
|
+
|
|
@@ -76,7 +76,7 @@ class ApiClient(object):
|
|
|
76
76
|
self.default_headers[header_name] = header_value
|
|
77
77
|
self.cookie = cookie
|
|
78
78
|
# Set default User-Agent.
|
|
79
|
-
self.user_agent = 'OpenAPI-Generator/0.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/0.0.240515/python'
|
|
80
80
|
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
return self
|
|
@@ -804,10 +804,10 @@ class Endpoint(object):
|
|
|
804
804
|
Example:
|
|
805
805
|
|
|
806
806
|
api_instance = AccountsApi()
|
|
807
|
-
api_instance.
|
|
808
|
-
api_instance.
|
|
807
|
+
api_instance.add_brands # this is an instance of the class Endpoint
|
|
808
|
+
api_instance.add_brands() # this invokes api_instance.add_brands.__call__()
|
|
809
809
|
which then invokes the callable functions stored in that endpoint at
|
|
810
|
-
api_instance.
|
|
810
|
+
api_instance.add_brands.callable or self.callable in this class
|
|
811
811
|
|
|
812
812
|
"""
|
|
813
813
|
return self.callable(self, *args, **kwargs)
|
|
@@ -18,4 +18,5 @@ from criteo_api_retailmedia_preview.api.accounts_api import AccountsApi
|
|
|
18
18
|
from criteo_api_retailmedia_preview.api.analytics_api import AnalyticsApi
|
|
19
19
|
from criteo_api_retailmedia_preview.api.audience_api import AudienceApi
|
|
20
20
|
from criteo_api_retailmedia_preview.api.campaign_api import CampaignApi
|
|
21
|
+
from criteo_api_retailmedia_preview.api.catalog_api import CatalogApi
|
|
21
22
|
from criteo_api_retailmedia_preview.api.gateway_api import GatewayApi
|
|
@@ -395,7 +395,7 @@ class Configuration(object):
|
|
|
395
395
|
"OS: {env}\n"\
|
|
396
396
|
"Python Version: {pyversion}\n"\
|
|
397
397
|
"Version of the API: Preview\n"\
|
|
398
|
-
"SDK Package Version: 0.0.
|
|
398
|
+
"SDK Package Version: 0.0.240515".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -29,8 +29,12 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
29
29
|
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.match_type_model import MatchTypeModel
|
|
34
|
+
globals()['MatchTypeModel'] = MatchTypeModel
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
class AddRemoveKeywordModel(ModelNormal):
|
|
34
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
39
|
Ref: https://openapi-generator.tech
|
|
36
40
|
|
|
@@ -55,12 +59,6 @@ class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal):
|
|
|
55
59
|
"""
|
|
56
60
|
|
|
57
61
|
allowed_values = {
|
|
58
|
-
('match_type',): {
|
|
59
|
-
'None': None,
|
|
60
|
-
'POSITIVEEXACTMATCH': "PositiveExactMatch",
|
|
61
|
-
'NEGATIVEEXACTMATCH': "NegativeExactMatch",
|
|
62
|
-
'NEGATIVEBROADMATCH': "NegativeBroadMatch",
|
|
63
|
-
},
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
validations = {
|
|
@@ -70,13 +68,7 @@ class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal):
|
|
|
70
68
|
},
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
def additional_properties_type():
|
|
75
|
-
"""
|
|
76
|
-
This must be a method because a model may have properties that are
|
|
77
|
-
of type self, this must run after the class is loaded
|
|
78
|
-
"""
|
|
79
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
71
|
+
additional_properties_type = None
|
|
80
72
|
|
|
81
73
|
_nullable = False
|
|
82
74
|
|
|
@@ -90,9 +82,10 @@ class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal):
|
|
|
90
82
|
openapi_types (dict): The key is attribute name
|
|
91
83
|
and the value is attribute type.
|
|
92
84
|
"""
|
|
85
|
+
lazy_import()
|
|
93
86
|
return {
|
|
94
87
|
'phrase': (str, none_type,), # noqa: E501
|
|
95
|
-
'match_type': (
|
|
88
|
+
'match_type': (MatchTypeModel,), # noqa: E501
|
|
96
89
|
'is_deleted': (bool, none_type,), # noqa: E501
|
|
97
90
|
}
|
|
98
91
|
|
|
@@ -115,7 +108,7 @@ class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal):
|
|
|
115
108
|
@classmethod
|
|
116
109
|
@convert_js_args_to_python_args
|
|
117
110
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
118
|
-
"""
|
|
111
|
+
"""AddRemoveKeywordModel - a model defined in OpenAPI
|
|
119
112
|
|
|
120
113
|
Keyword Args:
|
|
121
114
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -149,7 +142,7 @@ class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal):
|
|
|
149
142
|
through its discriminator because we passed in
|
|
150
143
|
_visited_composed_classes = (Animal,)
|
|
151
144
|
phrase (str, none_type): [optional] # noqa: E501
|
|
152
|
-
match_type (
|
|
145
|
+
match_type (MatchTypeModel): [optional] # noqa: E501
|
|
153
146
|
is_deleted (bool, none_type): [optional] # noqa: E501
|
|
154
147
|
"""
|
|
155
148
|
|
|
@@ -203,7 +196,7 @@ class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal):
|
|
|
203
196
|
|
|
204
197
|
@convert_js_args_to_python_args
|
|
205
198
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
206
|
-
"""
|
|
199
|
+
"""AddRemoveKeywordModel - a model defined in OpenAPI
|
|
207
200
|
|
|
208
201
|
Keyword Args:
|
|
209
202
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -237,7 +230,7 @@ class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal):
|
|
|
237
230
|
through its discriminator because we passed in
|
|
238
231
|
_visited_composed_classes = (Animal,)
|
|
239
232
|
phrase (str, none_type): [optional] # noqa: E501
|
|
240
|
-
match_type (
|
|
233
|
+
match_type (MatchTypeModel): [optional] # noqa: E501
|
|
241
234
|
is_deleted (bool, none_type): [optional] # noqa: E501
|
|
242
235
|
"""
|
|
243
236
|
|