criteo-api-marketingsolutions-sdk 0.0.240626__py3-none-any.whl → 0.0.240731__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of criteo-api-marketingsolutions-sdk might be problematic. Click here for more details.
- criteo_api_marketingsolutions_preview/__init__.py +1 -1
- criteo_api_marketingsolutions_preview/api/reco_api.py +561 -0
- criteo_api_marketingsolutions_preview/api_client.py +1 -1
- criteo_api_marketingsolutions_preview/configuration.py +1 -1
- criteo_api_marketingsolutions_preview/model/application_summary_model_response.py +0 -4
- criteo_api_marketingsolutions_preview/model/common_problem.py +2 -2
- criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py +1 -0
- criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py +1 -0
- criteo_api_marketingsolutions_preview/model/create_product_filter_request.py +263 -0
- criteo_api_marketingsolutions_preview/model/product_filter_config.py +275 -0
- criteo_api_marketingsolutions_preview/model/value_resource_collection_outcome_of_product_filter_config.py +281 -0
- criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_filter_request.py +269 -0
- criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_filter_request.py +273 -0
- criteo_api_marketingsolutions_preview/model/value_resource_of_product_filter_config.py +273 -0
- criteo_api_marketingsolutions_preview/model/value_resource_outcome_of_product_filter_config.py +281 -0
- criteo_api_marketingsolutions_preview/models/__init__.py +7 -0
- {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/METADATA +3 -3
- {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/RECORD +20 -13
- {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/WHEEL +1 -1
- {criteo_api_marketingsolutions_sdk-0.0.240626.dist-info → criteo_api_marketingsolutions_sdk-0.0.240731.dist-info}/top_level.txt +0 -0
|
@@ -24,7 +24,10 @@ from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401
|
|
|
24
24
|
from criteo_api_marketingsolutions_preview.model.outcome import Outcome
|
|
25
25
|
from criteo_api_marketingsolutions_preview.model.resource_collection_outcome_of_product_set import ResourceCollectionOutcomeOfProductSet
|
|
26
26
|
from criteo_api_marketingsolutions_preview.model.resource_outcome_of_product_set import ResourceOutcomeOfProductSet
|
|
27
|
+
from criteo_api_marketingsolutions_preview.model.value_resource_collection_outcome_of_product_filter_config import ValueResourceCollectionOutcomeOfProductFilterConfig
|
|
28
|
+
from criteo_api_marketingsolutions_preview.model.value_resource_input_of_create_product_filter_request import ValueResourceInputOfCreateProductFilterRequest
|
|
27
29
|
from criteo_api_marketingsolutions_preview.model.value_resource_input_of_create_product_set_request import ValueResourceInputOfCreateProductSetRequest
|
|
30
|
+
from criteo_api_marketingsolutions_preview.model.value_resource_outcome_of_product_filter_config import ValueResourceOutcomeOfProductFilterConfig
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
class RecoApi(object):
|
|
@@ -94,6 +97,231 @@ class RecoApi(object):
|
|
|
94
97
|
},
|
|
95
98
|
api_client=api_client
|
|
96
99
|
)
|
|
100
|
+
self.disable_product_filtering_endpoint = _Endpoint(
|
|
101
|
+
settings={
|
|
102
|
+
'response_type': (ValueResourceOutcomeOfProductFilterConfig,),
|
|
103
|
+
'auth': [
|
|
104
|
+
'oauth',
|
|
105
|
+
'oauth'
|
|
106
|
+
],
|
|
107
|
+
'endpoint_path': '/preview/ads/{ad-id}/product-filter',
|
|
108
|
+
'operation_id': 'disable_product_filtering',
|
|
109
|
+
'http_method': 'DELETE',
|
|
110
|
+
'servers': None,
|
|
111
|
+
},
|
|
112
|
+
params_map={
|
|
113
|
+
'all': [
|
|
114
|
+
'ad_id',
|
|
115
|
+
],
|
|
116
|
+
'required': [
|
|
117
|
+
'ad_id',
|
|
118
|
+
],
|
|
119
|
+
'nullable': [
|
|
120
|
+
],
|
|
121
|
+
'enum': [
|
|
122
|
+
],
|
|
123
|
+
'validation': [
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
root_map={
|
|
127
|
+
'validations': {
|
|
128
|
+
},
|
|
129
|
+
'allowed_values': {
|
|
130
|
+
},
|
|
131
|
+
'openapi_types': {
|
|
132
|
+
'ad_id':
|
|
133
|
+
(str,),
|
|
134
|
+
},
|
|
135
|
+
'attribute_map': {
|
|
136
|
+
'ad_id': 'ad-id',
|
|
137
|
+
},
|
|
138
|
+
'location_map': {
|
|
139
|
+
'ad_id': 'path',
|
|
140
|
+
},
|
|
141
|
+
'collection_format_map': {
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
headers_map={
|
|
145
|
+
'accept': [
|
|
146
|
+
'text/plain',
|
|
147
|
+
'application/json',
|
|
148
|
+
'text/json'
|
|
149
|
+
],
|
|
150
|
+
'content_type': [],
|
|
151
|
+
},
|
|
152
|
+
api_client=api_client
|
|
153
|
+
)
|
|
154
|
+
self.enable_product_filtering_endpoint = _Endpoint(
|
|
155
|
+
settings={
|
|
156
|
+
'response_type': (ValueResourceOutcomeOfProductFilterConfig,),
|
|
157
|
+
'auth': [
|
|
158
|
+
'oauth',
|
|
159
|
+
'oauth'
|
|
160
|
+
],
|
|
161
|
+
'endpoint_path': '/preview/ads/{ad-id}/product-filter',
|
|
162
|
+
'operation_id': 'enable_product_filtering',
|
|
163
|
+
'http_method': 'POST',
|
|
164
|
+
'servers': None,
|
|
165
|
+
},
|
|
166
|
+
params_map={
|
|
167
|
+
'all': [
|
|
168
|
+
'ad_id',
|
|
169
|
+
'value_resource_input_of_create_product_filter_request',
|
|
170
|
+
],
|
|
171
|
+
'required': [
|
|
172
|
+
'ad_id',
|
|
173
|
+
],
|
|
174
|
+
'nullable': [
|
|
175
|
+
],
|
|
176
|
+
'enum': [
|
|
177
|
+
],
|
|
178
|
+
'validation': [
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
root_map={
|
|
182
|
+
'validations': {
|
|
183
|
+
},
|
|
184
|
+
'allowed_values': {
|
|
185
|
+
},
|
|
186
|
+
'openapi_types': {
|
|
187
|
+
'ad_id':
|
|
188
|
+
(str,),
|
|
189
|
+
'value_resource_input_of_create_product_filter_request':
|
|
190
|
+
(ValueResourceInputOfCreateProductFilterRequest,),
|
|
191
|
+
},
|
|
192
|
+
'attribute_map': {
|
|
193
|
+
'ad_id': 'ad-id',
|
|
194
|
+
},
|
|
195
|
+
'location_map': {
|
|
196
|
+
'ad_id': 'path',
|
|
197
|
+
'value_resource_input_of_create_product_filter_request': 'body',
|
|
198
|
+
},
|
|
199
|
+
'collection_format_map': {
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
headers_map={
|
|
203
|
+
'accept': [
|
|
204
|
+
'text/plain',
|
|
205
|
+
'application/json',
|
|
206
|
+
'text/json'
|
|
207
|
+
],
|
|
208
|
+
'content_type': [
|
|
209
|
+
'application/json-patch+json',
|
|
210
|
+
'application/json',
|
|
211
|
+
'text/json',
|
|
212
|
+
'application/*+json'
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
api_client=api_client
|
|
216
|
+
)
|
|
217
|
+
self.fetch_product_filtering_config_endpoint = _Endpoint(
|
|
218
|
+
settings={
|
|
219
|
+
'response_type': (ValueResourceOutcomeOfProductFilterConfig,),
|
|
220
|
+
'auth': [
|
|
221
|
+
'oauth',
|
|
222
|
+
'oauth'
|
|
223
|
+
],
|
|
224
|
+
'endpoint_path': '/preview/ads/{ad-id}/product-filter',
|
|
225
|
+
'operation_id': 'fetch_product_filtering_config',
|
|
226
|
+
'http_method': 'GET',
|
|
227
|
+
'servers': None,
|
|
228
|
+
},
|
|
229
|
+
params_map={
|
|
230
|
+
'all': [
|
|
231
|
+
'ad_id',
|
|
232
|
+
],
|
|
233
|
+
'required': [
|
|
234
|
+
'ad_id',
|
|
235
|
+
],
|
|
236
|
+
'nullable': [
|
|
237
|
+
],
|
|
238
|
+
'enum': [
|
|
239
|
+
],
|
|
240
|
+
'validation': [
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
root_map={
|
|
244
|
+
'validations': {
|
|
245
|
+
},
|
|
246
|
+
'allowed_values': {
|
|
247
|
+
},
|
|
248
|
+
'openapi_types': {
|
|
249
|
+
'ad_id':
|
|
250
|
+
(str,),
|
|
251
|
+
},
|
|
252
|
+
'attribute_map': {
|
|
253
|
+
'ad_id': 'ad-id',
|
|
254
|
+
},
|
|
255
|
+
'location_map': {
|
|
256
|
+
'ad_id': 'path',
|
|
257
|
+
},
|
|
258
|
+
'collection_format_map': {
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
headers_map={
|
|
262
|
+
'accept': [
|
|
263
|
+
'text/plain',
|
|
264
|
+
'application/json',
|
|
265
|
+
'text/json'
|
|
266
|
+
],
|
|
267
|
+
'content_type': [],
|
|
268
|
+
},
|
|
269
|
+
api_client=api_client
|
|
270
|
+
)
|
|
271
|
+
self.fetch_product_filtering_usages_endpoint = _Endpoint(
|
|
272
|
+
settings={
|
|
273
|
+
'response_type': (ValueResourceCollectionOutcomeOfProductFilterConfig,),
|
|
274
|
+
'auth': [
|
|
275
|
+
'oauth',
|
|
276
|
+
'oauth'
|
|
277
|
+
],
|
|
278
|
+
'endpoint_path': '/preview/product-sets/{product-set-id}/product-filters',
|
|
279
|
+
'operation_id': 'fetch_product_filtering_usages',
|
|
280
|
+
'http_method': 'GET',
|
|
281
|
+
'servers': None,
|
|
282
|
+
},
|
|
283
|
+
params_map={
|
|
284
|
+
'all': [
|
|
285
|
+
'product_set_id',
|
|
286
|
+
],
|
|
287
|
+
'required': [
|
|
288
|
+
'product_set_id',
|
|
289
|
+
],
|
|
290
|
+
'nullable': [
|
|
291
|
+
],
|
|
292
|
+
'enum': [
|
|
293
|
+
],
|
|
294
|
+
'validation': [
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
root_map={
|
|
298
|
+
'validations': {
|
|
299
|
+
},
|
|
300
|
+
'allowed_values': {
|
|
301
|
+
},
|
|
302
|
+
'openapi_types': {
|
|
303
|
+
'product_set_id':
|
|
304
|
+
(str,),
|
|
305
|
+
},
|
|
306
|
+
'attribute_map': {
|
|
307
|
+
'product_set_id': 'product-set-id',
|
|
308
|
+
},
|
|
309
|
+
'location_map': {
|
|
310
|
+
'product_set_id': 'path',
|
|
311
|
+
},
|
|
312
|
+
'collection_format_map': {
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
headers_map={
|
|
316
|
+
'accept': [
|
|
317
|
+
'text/plain',
|
|
318
|
+
'application/json',
|
|
319
|
+
'text/json'
|
|
320
|
+
],
|
|
321
|
+
'content_type': [],
|
|
322
|
+
},
|
|
323
|
+
api_client=api_client
|
|
324
|
+
)
|
|
97
325
|
self.fetch_product_set_endpoint = _Endpoint(
|
|
98
326
|
settings={
|
|
99
327
|
'response_type': (ResourceOutcomeOfProductSet,),
|
|
@@ -336,6 +564,339 @@ class RecoApi(object):
|
|
|
336
564
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
337
565
|
return self.create_product_set_endpoint.call_with_http_info(**kwargs)
|
|
338
566
|
|
|
567
|
+
def disable_product_filtering(
|
|
568
|
+
self,
|
|
569
|
+
ad_id,
|
|
570
|
+
**kwargs
|
|
571
|
+
):
|
|
572
|
+
"""disable_product_filtering # noqa: E501
|
|
573
|
+
|
|
574
|
+
Disable product filtering for a given ad # noqa: E501
|
|
575
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
576
|
+
asynchronous HTTP request, please pass async_req=True
|
|
577
|
+
|
|
578
|
+
>>> thread = api.disable_product_filtering(ad_id, async_req=True)
|
|
579
|
+
>>> result = thread.get()
|
|
580
|
+
|
|
581
|
+
Args:
|
|
582
|
+
ad_id (str): ID of the ad
|
|
583
|
+
|
|
584
|
+
Keyword Args:
|
|
585
|
+
_return_http_data_only (bool): response data without head status
|
|
586
|
+
code and headers. Default is True.
|
|
587
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
588
|
+
will be returned without reading/decoding response data.
|
|
589
|
+
Default is True.
|
|
590
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
591
|
+
one number provided, it will be total request timeout. It can also
|
|
592
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
593
|
+
Default is None.
|
|
594
|
+
_check_input_type (bool): specifies if type checking
|
|
595
|
+
should be done one the data sent to the server.
|
|
596
|
+
Default is True.
|
|
597
|
+
_check_return_type (bool): specifies if type checking
|
|
598
|
+
should be done one the data received from the server.
|
|
599
|
+
Default is True.
|
|
600
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
601
|
+
are serialized names, as specified in the OpenAPI document.
|
|
602
|
+
False if the variable names in the input data
|
|
603
|
+
are pythonic names, e.g. snake case (default)
|
|
604
|
+
_content_type (str/None): force body content-type.
|
|
605
|
+
Default is None and content-type will be predicted by allowed
|
|
606
|
+
content-types and body.
|
|
607
|
+
_host_index (int/None): specifies the index of the server
|
|
608
|
+
that we want to use.
|
|
609
|
+
Default is read from the configuration.
|
|
610
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
611
|
+
request; this effectively ignores the authentication
|
|
612
|
+
in the spec for a single request.
|
|
613
|
+
Default is None
|
|
614
|
+
async_req (bool): execute request asynchronously
|
|
615
|
+
|
|
616
|
+
Returns:
|
|
617
|
+
ValueResourceOutcomeOfProductFilterConfig
|
|
618
|
+
If the method is called asynchronously, returns the request
|
|
619
|
+
thread.
|
|
620
|
+
"""
|
|
621
|
+
kwargs['async_req'] = kwargs.get(
|
|
622
|
+
'async_req', False
|
|
623
|
+
)
|
|
624
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
625
|
+
'_return_http_data_only', True
|
|
626
|
+
)
|
|
627
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
628
|
+
'_preload_content', True
|
|
629
|
+
)
|
|
630
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
631
|
+
'_request_timeout', None
|
|
632
|
+
)
|
|
633
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
634
|
+
'_check_input_type', True
|
|
635
|
+
)
|
|
636
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
637
|
+
'_check_return_type', True
|
|
638
|
+
)
|
|
639
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
640
|
+
'_spec_property_naming', False
|
|
641
|
+
)
|
|
642
|
+
kwargs['_content_type'] = kwargs.get(
|
|
643
|
+
'_content_type')
|
|
644
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
645
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
646
|
+
kwargs['ad_id'] = \
|
|
647
|
+
ad_id
|
|
648
|
+
return self.disable_product_filtering_endpoint.call_with_http_info(**kwargs)
|
|
649
|
+
|
|
650
|
+
def enable_product_filtering(
|
|
651
|
+
self,
|
|
652
|
+
ad_id,
|
|
653
|
+
**kwargs
|
|
654
|
+
):
|
|
655
|
+
"""enable_product_filtering # noqa: E501
|
|
656
|
+
|
|
657
|
+
Enable product filtering for a given ad # noqa: E501
|
|
658
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
659
|
+
asynchronous HTTP request, please pass async_req=True
|
|
660
|
+
|
|
661
|
+
>>> thread = api.enable_product_filtering(ad_id, async_req=True)
|
|
662
|
+
>>> result = thread.get()
|
|
663
|
+
|
|
664
|
+
Args:
|
|
665
|
+
ad_id (str): ID of the ad
|
|
666
|
+
|
|
667
|
+
Keyword Args:
|
|
668
|
+
value_resource_input_of_create_product_filter_request (ValueResourceInputOfCreateProductFilterRequest): [optional]
|
|
669
|
+
_return_http_data_only (bool): response data without head status
|
|
670
|
+
code and headers. Default is True.
|
|
671
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
672
|
+
will be returned without reading/decoding response data.
|
|
673
|
+
Default is True.
|
|
674
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
675
|
+
one number provided, it will be total request timeout. It can also
|
|
676
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
677
|
+
Default is None.
|
|
678
|
+
_check_input_type (bool): specifies if type checking
|
|
679
|
+
should be done one the data sent to the server.
|
|
680
|
+
Default is True.
|
|
681
|
+
_check_return_type (bool): specifies if type checking
|
|
682
|
+
should be done one the data received from the server.
|
|
683
|
+
Default is True.
|
|
684
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
685
|
+
are serialized names, as specified in the OpenAPI document.
|
|
686
|
+
False if the variable names in the input data
|
|
687
|
+
are pythonic names, e.g. snake case (default)
|
|
688
|
+
_content_type (str/None): force body content-type.
|
|
689
|
+
Default is None and content-type will be predicted by allowed
|
|
690
|
+
content-types and body.
|
|
691
|
+
_host_index (int/None): specifies the index of the server
|
|
692
|
+
that we want to use.
|
|
693
|
+
Default is read from the configuration.
|
|
694
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
695
|
+
request; this effectively ignores the authentication
|
|
696
|
+
in the spec for a single request.
|
|
697
|
+
Default is None
|
|
698
|
+
async_req (bool): execute request asynchronously
|
|
699
|
+
|
|
700
|
+
Returns:
|
|
701
|
+
ValueResourceOutcomeOfProductFilterConfig
|
|
702
|
+
If the method is called asynchronously, returns the request
|
|
703
|
+
thread.
|
|
704
|
+
"""
|
|
705
|
+
kwargs['async_req'] = kwargs.get(
|
|
706
|
+
'async_req', False
|
|
707
|
+
)
|
|
708
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
709
|
+
'_return_http_data_only', True
|
|
710
|
+
)
|
|
711
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
712
|
+
'_preload_content', True
|
|
713
|
+
)
|
|
714
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
715
|
+
'_request_timeout', None
|
|
716
|
+
)
|
|
717
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
718
|
+
'_check_input_type', True
|
|
719
|
+
)
|
|
720
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
721
|
+
'_check_return_type', True
|
|
722
|
+
)
|
|
723
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
724
|
+
'_spec_property_naming', False
|
|
725
|
+
)
|
|
726
|
+
kwargs['_content_type'] = kwargs.get(
|
|
727
|
+
'_content_type')
|
|
728
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
729
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
730
|
+
kwargs['ad_id'] = \
|
|
731
|
+
ad_id
|
|
732
|
+
return self.enable_product_filtering_endpoint.call_with_http_info(**kwargs)
|
|
733
|
+
|
|
734
|
+
def fetch_product_filtering_config(
|
|
735
|
+
self,
|
|
736
|
+
ad_id,
|
|
737
|
+
**kwargs
|
|
738
|
+
):
|
|
739
|
+
"""fetch_product_filtering_config # noqa: E501
|
|
740
|
+
|
|
741
|
+
Fetch product filtering configuration for a given ad # noqa: E501
|
|
742
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
743
|
+
asynchronous HTTP request, please pass async_req=True
|
|
744
|
+
|
|
745
|
+
>>> thread = api.fetch_product_filtering_config(ad_id, async_req=True)
|
|
746
|
+
>>> result = thread.get()
|
|
747
|
+
|
|
748
|
+
Args:
|
|
749
|
+
ad_id (str): ID of the ad
|
|
750
|
+
|
|
751
|
+
Keyword Args:
|
|
752
|
+
_return_http_data_only (bool): response data without head status
|
|
753
|
+
code and headers. Default is True.
|
|
754
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
755
|
+
will be returned without reading/decoding response data.
|
|
756
|
+
Default is True.
|
|
757
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
758
|
+
one number provided, it will be total request timeout. It can also
|
|
759
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
760
|
+
Default is None.
|
|
761
|
+
_check_input_type (bool): specifies if type checking
|
|
762
|
+
should be done one the data sent to the server.
|
|
763
|
+
Default is True.
|
|
764
|
+
_check_return_type (bool): specifies if type checking
|
|
765
|
+
should be done one the data received from the server.
|
|
766
|
+
Default is True.
|
|
767
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
768
|
+
are serialized names, as specified in the OpenAPI document.
|
|
769
|
+
False if the variable names in the input data
|
|
770
|
+
are pythonic names, e.g. snake case (default)
|
|
771
|
+
_content_type (str/None): force body content-type.
|
|
772
|
+
Default is None and content-type will be predicted by allowed
|
|
773
|
+
content-types and body.
|
|
774
|
+
_host_index (int/None): specifies the index of the server
|
|
775
|
+
that we want to use.
|
|
776
|
+
Default is read from the configuration.
|
|
777
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
778
|
+
request; this effectively ignores the authentication
|
|
779
|
+
in the spec for a single request.
|
|
780
|
+
Default is None
|
|
781
|
+
async_req (bool): execute request asynchronously
|
|
782
|
+
|
|
783
|
+
Returns:
|
|
784
|
+
ValueResourceOutcomeOfProductFilterConfig
|
|
785
|
+
If the method is called asynchronously, returns the request
|
|
786
|
+
thread.
|
|
787
|
+
"""
|
|
788
|
+
kwargs['async_req'] = kwargs.get(
|
|
789
|
+
'async_req', False
|
|
790
|
+
)
|
|
791
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
792
|
+
'_return_http_data_only', True
|
|
793
|
+
)
|
|
794
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
795
|
+
'_preload_content', True
|
|
796
|
+
)
|
|
797
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
798
|
+
'_request_timeout', None
|
|
799
|
+
)
|
|
800
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
801
|
+
'_check_input_type', True
|
|
802
|
+
)
|
|
803
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
804
|
+
'_check_return_type', True
|
|
805
|
+
)
|
|
806
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
807
|
+
'_spec_property_naming', False
|
|
808
|
+
)
|
|
809
|
+
kwargs['_content_type'] = kwargs.get(
|
|
810
|
+
'_content_type')
|
|
811
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
812
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
813
|
+
kwargs['ad_id'] = \
|
|
814
|
+
ad_id
|
|
815
|
+
return self.fetch_product_filtering_config_endpoint.call_with_http_info(**kwargs)
|
|
816
|
+
|
|
817
|
+
def fetch_product_filtering_usages(
|
|
818
|
+
self,
|
|
819
|
+
product_set_id,
|
|
820
|
+
**kwargs
|
|
821
|
+
):
|
|
822
|
+
"""fetch_product_filtering_usages # noqa: E501
|
|
823
|
+
|
|
824
|
+
Fetch product filtering usages for a given product set # noqa: E501
|
|
825
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
826
|
+
asynchronous HTTP request, please pass async_req=True
|
|
827
|
+
|
|
828
|
+
>>> thread = api.fetch_product_filtering_usages(product_set_id, async_req=True)
|
|
829
|
+
>>> result = thread.get()
|
|
830
|
+
|
|
831
|
+
Args:
|
|
832
|
+
product_set_id (str): ID of the product set
|
|
833
|
+
|
|
834
|
+
Keyword Args:
|
|
835
|
+
_return_http_data_only (bool): response data without head status
|
|
836
|
+
code and headers. Default is True.
|
|
837
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
838
|
+
will be returned without reading/decoding response data.
|
|
839
|
+
Default is True.
|
|
840
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
841
|
+
one number provided, it will be total request timeout. It can also
|
|
842
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
843
|
+
Default is None.
|
|
844
|
+
_check_input_type (bool): specifies if type checking
|
|
845
|
+
should be done one the data sent to the server.
|
|
846
|
+
Default is True.
|
|
847
|
+
_check_return_type (bool): specifies if type checking
|
|
848
|
+
should be done one the data received from the server.
|
|
849
|
+
Default is True.
|
|
850
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
851
|
+
are serialized names, as specified in the OpenAPI document.
|
|
852
|
+
False if the variable names in the input data
|
|
853
|
+
are pythonic names, e.g. snake case (default)
|
|
854
|
+
_content_type (str/None): force body content-type.
|
|
855
|
+
Default is None and content-type will be predicted by allowed
|
|
856
|
+
content-types and body.
|
|
857
|
+
_host_index (int/None): specifies the index of the server
|
|
858
|
+
that we want to use.
|
|
859
|
+
Default is read from the configuration.
|
|
860
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
861
|
+
request; this effectively ignores the authentication
|
|
862
|
+
in the spec for a single request.
|
|
863
|
+
Default is None
|
|
864
|
+
async_req (bool): execute request asynchronously
|
|
865
|
+
|
|
866
|
+
Returns:
|
|
867
|
+
ValueResourceCollectionOutcomeOfProductFilterConfig
|
|
868
|
+
If the method is called asynchronously, returns the request
|
|
869
|
+
thread.
|
|
870
|
+
"""
|
|
871
|
+
kwargs['async_req'] = kwargs.get(
|
|
872
|
+
'async_req', False
|
|
873
|
+
)
|
|
874
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
875
|
+
'_return_http_data_only', True
|
|
876
|
+
)
|
|
877
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
878
|
+
'_preload_content', True
|
|
879
|
+
)
|
|
880
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
881
|
+
'_request_timeout', None
|
|
882
|
+
)
|
|
883
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
884
|
+
'_check_input_type', True
|
|
885
|
+
)
|
|
886
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
887
|
+
'_check_return_type', True
|
|
888
|
+
)
|
|
889
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
890
|
+
'_spec_property_naming', False
|
|
891
|
+
)
|
|
892
|
+
kwargs['_content_type'] = kwargs.get(
|
|
893
|
+
'_content_type')
|
|
894
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
895
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
896
|
+
kwargs['product_set_id'] = \
|
|
897
|
+
product_set_id
|
|
898
|
+
return self.fetch_product_filtering_usages_endpoint.call_with_http_info(**kwargs)
|
|
899
|
+
|
|
339
900
|
def fetch_product_set(
|
|
340
901
|
self,
|
|
341
902
|
product_set_id,
|
|
@@ -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.240731/python'
|
|
80
80
|
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
return self
|
|
@@ -395,7 +395,7 @@ class Configuration(object):
|
|
|
395
395
|
"OS: {env}\n"\
|
|
396
396
|
"Python Version: {pyversion}\n"\
|
|
397
397
|
"Version of the API: Preview\n"\
|
|
398
|
-
"SDK Package Version: 0.0.
|
|
398
|
+
"SDK Package Version: 0.0.240731".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -164,7 +164,7 @@ class CommonProblem(ModelNormal):
|
|
|
164
164
|
trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
|
|
165
165
|
trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
|
|
166
166
|
type (str, none_type): The problem's category.. [optional] # noqa: E501
|
|
167
|
-
code (str, none_type): A machine-readable
|
|
167
|
+
code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
|
|
168
168
|
instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
|
|
169
169
|
title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
|
|
170
170
|
detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
|
|
@@ -258,7 +258,7 @@ class CommonProblem(ModelNormal):
|
|
|
258
258
|
trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
|
|
259
259
|
trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
|
|
260
260
|
type (str, none_type): The problem's category.. [optional] # noqa: E501
|
|
261
|
-
code (str, none_type): A machine-readable
|
|
261
|
+
code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
|
|
262
262
|
instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
|
|
263
263
|
title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
|
|
264
264
|
detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
|