criteo-api-retailmedia-sdk 0.0.231113__py3-none-any.whl → 0.0.240207__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (37) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/__init__.py +1 -1
  3. criteo_api_retailmedia_preview/api/accounts_api.py +767 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +35 -32
  5. criteo_api_retailmedia_preview/api_client.py +5 -5
  6. criteo_api_retailmedia_preview/apis/__init__.py +2 -1
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/external_account.py +4 -0
  9. criteo_api_retailmedia_preview/model/{common_status_code_response.py → grant_consent_input.py} +9 -15
  10. criteo_api_retailmedia_preview/model/grant_consent_model.py +279 -0
  11. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +273 -0
  12. criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py +270 -0
  13. criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py +274 -0
  14. criteo_api_retailmedia_preview/model/retail_media_account.py +297 -0
  15. criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +265 -0
  16. criteo_api_retailmedia_preview/model/retail_media_seller.py +261 -0
  17. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +270 -0
  18. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  19. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +17 -29
  20. criteo_api_retailmedia_preview/model/{retail_media_audience.py → rm_legacy_audience_get_entity_v1_resource.py} +22 -33
  21. criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  22. criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py +281 -0
  23. criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -32
  24. criteo_api_retailmedia_preview/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  25. criteo_api_retailmedia_preview/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  26. criteo_api_retailmedia_preview/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  27. criteo_api_retailmedia_preview/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  28. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_int64.py +274 -0
  29. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +274 -0
  30. criteo_api_retailmedia_preview/model/value_resource_of_int64.py +261 -0
  31. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +266 -0
  32. criteo_api_retailmedia_preview/models/__init__.py +23 -11
  33. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/METADATA +3 -3
  34. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/RECORD +36 -23
  35. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/WHEEL +1 -1
  36. criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
  37. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,767 @@
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.grant_consent_input import GrantConsentInput
25
+ from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount
26
+ from criteo_api_retailmedia_preview.model.retail_media_brand_account_creation import RetailMediaBrandAccountCreation
27
+ from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller
28
+ from criteo_api_retailmedia_preview.model.retail_media_seller_account_creation import RetailMediaSellerAccountCreation
29
+ from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_int64 import ValueResourceCollectionOutcomeOfInt64
30
+ from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller
31
+
32
+
33
+ class AccountsApi(object):
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
+
40
+ def __init__(self, api_client=None):
41
+ if api_client is None:
42
+ api_client = ApiClient()
43
+ self.api_client = api_client
44
+ self.create_private_market_demand_brand_account_endpoint = _Endpoint(
45
+ settings={
46
+ 'response_type': (ResourceOutcomeOfRetailMediaAccount,),
47
+ 'auth': [
48
+ 'oauth',
49
+ 'oauth'
50
+ ],
51
+ 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/create-brand-account',
52
+ 'operation_id': 'create_private_market_demand_brand_account',
53
+ 'http_method': 'POST',
54
+ 'servers': None,
55
+ },
56
+ params_map={
57
+ 'all': [
58
+ 'account_id',
59
+ 'retail_media_brand_account_creation',
60
+ ],
61
+ 'required': [
62
+ 'account_id',
63
+ ],
64
+ 'nullable': [
65
+ ],
66
+ 'enum': [
67
+ ],
68
+ 'validation': [
69
+ ]
70
+ },
71
+ root_map={
72
+ 'validations': {
73
+ },
74
+ 'allowed_values': {
75
+ },
76
+ 'openapi_types': {
77
+ 'account_id':
78
+ (str,),
79
+ 'retail_media_brand_account_creation':
80
+ (RetailMediaBrandAccountCreation,),
81
+ },
82
+ 'attribute_map': {
83
+ 'account_id': 'accountId',
84
+ },
85
+ 'location_map': {
86
+ 'account_id': 'path',
87
+ 'retail_media_brand_account_creation': 'body',
88
+ },
89
+ 'collection_format_map': {
90
+ }
91
+ },
92
+ headers_map={
93
+ 'accept': [
94
+ 'application/json'
95
+ ],
96
+ 'content_type': [
97
+ 'application/json-patch+json',
98
+ 'application/json',
99
+ 'text/json',
100
+ 'application/*+json'
101
+ ]
102
+ },
103
+ api_client=api_client
104
+ )
105
+ self.create_private_market_demand_seller_account_endpoint = _Endpoint(
106
+ settings={
107
+ 'response_type': (ResourceOutcomeOfRetailMediaAccount,),
108
+ 'auth': [
109
+ 'oauth',
110
+ 'oauth'
111
+ ],
112
+ 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/create-seller-account',
113
+ 'operation_id': 'create_private_market_demand_seller_account',
114
+ 'http_method': 'POST',
115
+ 'servers': None,
116
+ },
117
+ params_map={
118
+ 'all': [
119
+ 'account_id',
120
+ 'retail_media_seller_account_creation',
121
+ ],
122
+ 'required': [
123
+ 'account_id',
124
+ ],
125
+ 'nullable': [
126
+ ],
127
+ 'enum': [
128
+ ],
129
+ 'validation': [
130
+ ]
131
+ },
132
+ root_map={
133
+ 'validations': {
134
+ },
135
+ 'allowed_values': {
136
+ },
137
+ 'openapi_types': {
138
+ 'account_id':
139
+ (str,),
140
+ 'retail_media_seller_account_creation':
141
+ (RetailMediaSellerAccountCreation,),
142
+ },
143
+ 'attribute_map': {
144
+ 'account_id': 'accountId',
145
+ },
146
+ 'location_map': {
147
+ 'account_id': 'path',
148
+ 'retail_media_seller_account_creation': 'body',
149
+ },
150
+ 'collection_format_map': {
151
+ }
152
+ },
153
+ headers_map={
154
+ 'accept': [
155
+ 'application/json'
156
+ ],
157
+ 'content_type': [
158
+ 'application/json-patch+json',
159
+ 'application/json',
160
+ 'text/json',
161
+ 'application/*+json'
162
+ ]
163
+ },
164
+ api_client=api_client
165
+ )
166
+ self.grant_consent_endpoint = _Endpoint(
167
+ settings={
168
+ 'response_type': None,
169
+ 'auth': [
170
+ 'oauth',
171
+ 'oauth'
172
+ ],
173
+ 'endpoint_path': '/preview/retail-media/accounts/{accountId}/grant-consent',
174
+ 'operation_id': 'grant_consent',
175
+ 'http_method': 'POST',
176
+ 'servers': None,
177
+ },
178
+ params_map={
179
+ 'all': [
180
+ 'account_id',
181
+ 'grant_consent_input',
182
+ ],
183
+ 'required': [
184
+ 'account_id',
185
+ ],
186
+ 'nullable': [
187
+ ],
188
+ 'enum': [
189
+ ],
190
+ 'validation': [
191
+ ]
192
+ },
193
+ root_map={
194
+ 'validations': {
195
+ },
196
+ 'allowed_values': {
197
+ },
198
+ 'openapi_types': {
199
+ 'account_id':
200
+ (str,),
201
+ 'grant_consent_input':
202
+ (GrantConsentInput,),
203
+ },
204
+ 'attribute_map': {
205
+ 'account_id': 'accountId',
206
+ },
207
+ 'location_map': {
208
+ 'account_id': 'path',
209
+ 'grant_consent_input': 'body',
210
+ },
211
+ 'collection_format_map': {
212
+ }
213
+ },
214
+ headers_map={
215
+ 'accept': [],
216
+ 'content_type': [
217
+ 'application/json-patch+json',
218
+ 'application/json',
219
+ 'text/json',
220
+ 'application/*+json'
221
+ ]
222
+ },
223
+ api_client=api_client
224
+ )
225
+ self.update_brands_endpoint = _Endpoint(
226
+ settings={
227
+ 'response_type': (ValueResourceCollectionOutcomeOfInt64,),
228
+ 'auth': [
229
+ 'oauth',
230
+ 'oauth'
231
+ ],
232
+ 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/brands',
233
+ 'operation_id': 'update_brands',
234
+ 'http_method': 'PUT',
235
+ 'servers': None,
236
+ },
237
+ params_map={
238
+ 'all': [
239
+ 'account_id',
240
+ 'request_body',
241
+ ],
242
+ 'required': [
243
+ 'account_id',
244
+ ],
245
+ 'nullable': [
246
+ ],
247
+ 'enum': [
248
+ ],
249
+ 'validation': [
250
+ ]
251
+ },
252
+ root_map={
253
+ 'validations': {
254
+ },
255
+ 'allowed_values': {
256
+ },
257
+ 'openapi_types': {
258
+ 'account_id':
259
+ (str,),
260
+ 'request_body':
261
+ ([int],),
262
+ },
263
+ 'attribute_map': {
264
+ 'account_id': 'accountId',
265
+ },
266
+ 'location_map': {
267
+ 'account_id': 'path',
268
+ 'request_body': 'body',
269
+ },
270
+ 'collection_format_map': {
271
+ }
272
+ },
273
+ headers_map={
274
+ 'accept': [
275
+ 'application/json'
276
+ ],
277
+ 'content_type': [
278
+ 'application/json-patch+json',
279
+ 'application/json',
280
+ 'text/json',
281
+ 'application/*+json'
282
+ ]
283
+ },
284
+ api_client=api_client
285
+ )
286
+ self.update_sellers_endpoint = _Endpoint(
287
+ settings={
288
+ 'response_type': (ValueResourceCollectionOutcomeOfRetailMediaSeller,),
289
+ 'auth': [
290
+ 'oauth',
291
+ 'oauth'
292
+ ],
293
+ 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/sellers',
294
+ 'operation_id': 'update_sellers',
295
+ 'http_method': 'PUT',
296
+ 'servers': None,
297
+ },
298
+ params_map={
299
+ 'all': [
300
+ 'account_id',
301
+ 'retail_media_seller',
302
+ ],
303
+ 'required': [
304
+ 'account_id',
305
+ ],
306
+ 'nullable': [
307
+ ],
308
+ 'enum': [
309
+ ],
310
+ 'validation': [
311
+ ]
312
+ },
313
+ root_map={
314
+ 'validations': {
315
+ },
316
+ 'allowed_values': {
317
+ },
318
+ 'openapi_types': {
319
+ 'account_id':
320
+ (str,),
321
+ 'retail_media_seller':
322
+ ([RetailMediaSeller],),
323
+ },
324
+ 'attribute_map': {
325
+ 'account_id': 'accountId',
326
+ },
327
+ 'location_map': {
328
+ 'account_id': 'path',
329
+ 'retail_media_seller': 'body',
330
+ },
331
+ 'collection_format_map': {
332
+ }
333
+ },
334
+ headers_map={
335
+ 'accept': [
336
+ 'application/json'
337
+ ],
338
+ 'content_type': [
339
+ 'application/json-patch+json',
340
+ 'application/json',
341
+ 'text/json',
342
+ 'application/*+json'
343
+ ]
344
+ },
345
+ api_client=api_client
346
+ )
347
+
348
+ def create_private_market_demand_brand_account(
349
+ self,
350
+ account_id,
351
+ **kwargs
352
+ ):
353
+ """create_private_market_demand_brand_account # noqa: E501
354
+
355
+ Creates a new child Demand Brand Account for the provided parent private market account # noqa: E501
356
+ This method makes a synchronous HTTP request by default. To make an
357
+ asynchronous HTTP request, please pass async_req=True
358
+
359
+ >>> thread = api.create_private_market_demand_brand_account(account_id, async_req=True)
360
+ >>> result = thread.get()
361
+
362
+ Args:
363
+ account_id (str): Account Id for the parent private market account
364
+
365
+ Keyword Args:
366
+ retail_media_brand_account_creation (RetailMediaBrandAccountCreation): Initial creation and configuration options for the new account. [optional]
367
+ _return_http_data_only (bool): response data without head status
368
+ code and headers. Default is True.
369
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
370
+ will be returned without reading/decoding response data.
371
+ Default is True.
372
+ _request_timeout (int/float/tuple): timeout setting for this request. If
373
+ one number provided, it will be total request timeout. It can also
374
+ be a pair (tuple) of (connection, read) timeouts.
375
+ Default is None.
376
+ _check_input_type (bool): specifies if type checking
377
+ should be done one the data sent to the server.
378
+ Default is True.
379
+ _check_return_type (bool): specifies if type checking
380
+ should be done one the data received from the server.
381
+ Default is True.
382
+ _spec_property_naming (bool): True if the variable names in the input data
383
+ are serialized names, as specified in the OpenAPI document.
384
+ False if the variable names in the input data
385
+ are pythonic names, e.g. snake case (default)
386
+ _content_type (str/None): force body content-type.
387
+ Default is None and content-type will be predicted by allowed
388
+ content-types and body.
389
+ _host_index (int/None): specifies the index of the server
390
+ that we want to use.
391
+ Default is read from the configuration.
392
+ _request_auths (list): set to override the auth_settings for an a single
393
+ request; this effectively ignores the authentication
394
+ in the spec for a single request.
395
+ Default is None
396
+ async_req (bool): execute request asynchronously
397
+
398
+ Returns:
399
+ ResourceOutcomeOfRetailMediaAccount
400
+ If the method is called asynchronously, returns the request
401
+ thread.
402
+ """
403
+ kwargs['async_req'] = kwargs.get(
404
+ 'async_req', False
405
+ )
406
+ kwargs['_return_http_data_only'] = kwargs.get(
407
+ '_return_http_data_only', True
408
+ )
409
+ kwargs['_preload_content'] = kwargs.get(
410
+ '_preload_content', True
411
+ )
412
+ kwargs['_request_timeout'] = kwargs.get(
413
+ '_request_timeout', None
414
+ )
415
+ kwargs['_check_input_type'] = kwargs.get(
416
+ '_check_input_type', True
417
+ )
418
+ kwargs['_check_return_type'] = kwargs.get(
419
+ '_check_return_type', True
420
+ )
421
+ kwargs['_spec_property_naming'] = kwargs.get(
422
+ '_spec_property_naming', False
423
+ )
424
+ kwargs['_content_type'] = kwargs.get(
425
+ '_content_type')
426
+ kwargs['_host_index'] = kwargs.get('_host_index')
427
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
428
+ kwargs['account_id'] = \
429
+ account_id
430
+ return self.create_private_market_demand_brand_account_endpoint.call_with_http_info(**kwargs)
431
+
432
+ def create_private_market_demand_seller_account(
433
+ self,
434
+ account_id,
435
+ **kwargs
436
+ ):
437
+ """create_private_market_demand_seller_account # noqa: E501
438
+
439
+ Creates a new child Demand Seller Account for the provided parent private market account # noqa: E501
440
+ This method makes a synchronous HTTP request by default. To make an
441
+ asynchronous HTTP request, please pass async_req=True
442
+
443
+ >>> thread = api.create_private_market_demand_seller_account(account_id, async_req=True)
444
+ >>> result = thread.get()
445
+
446
+ Args:
447
+ account_id (str): Account Id for the parent private market account
448
+
449
+ Keyword Args:
450
+ retail_media_seller_account_creation (RetailMediaSellerAccountCreation): Initial creation and configuration options for the new account. [optional]
451
+ _return_http_data_only (bool): response data without head status
452
+ code and headers. Default is True.
453
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
454
+ will be returned without reading/decoding response data.
455
+ Default is True.
456
+ _request_timeout (int/float/tuple): timeout setting for this request. If
457
+ one number provided, it will be total request timeout. It can also
458
+ be a pair (tuple) of (connection, read) timeouts.
459
+ Default is None.
460
+ _check_input_type (bool): specifies if type checking
461
+ should be done one the data sent to the server.
462
+ Default is True.
463
+ _check_return_type (bool): specifies if type checking
464
+ should be done one the data received from the server.
465
+ Default is True.
466
+ _spec_property_naming (bool): True if the variable names in the input data
467
+ are serialized names, as specified in the OpenAPI document.
468
+ False if the variable names in the input data
469
+ are pythonic names, e.g. snake case (default)
470
+ _content_type (str/None): force body content-type.
471
+ Default is None and content-type will be predicted by allowed
472
+ content-types and body.
473
+ _host_index (int/None): specifies the index of the server
474
+ that we want to use.
475
+ Default is read from the configuration.
476
+ _request_auths (list): set to override the auth_settings for an a single
477
+ request; this effectively ignores the authentication
478
+ in the spec for a single request.
479
+ Default is None
480
+ async_req (bool): execute request asynchronously
481
+
482
+ Returns:
483
+ ResourceOutcomeOfRetailMediaAccount
484
+ If the method is called asynchronously, returns the request
485
+ thread.
486
+ """
487
+ kwargs['async_req'] = kwargs.get(
488
+ 'async_req', False
489
+ )
490
+ kwargs['_return_http_data_only'] = kwargs.get(
491
+ '_return_http_data_only', True
492
+ )
493
+ kwargs['_preload_content'] = kwargs.get(
494
+ '_preload_content', True
495
+ )
496
+ kwargs['_request_timeout'] = kwargs.get(
497
+ '_request_timeout', None
498
+ )
499
+ kwargs['_check_input_type'] = kwargs.get(
500
+ '_check_input_type', True
501
+ )
502
+ kwargs['_check_return_type'] = kwargs.get(
503
+ '_check_return_type', True
504
+ )
505
+ kwargs['_spec_property_naming'] = kwargs.get(
506
+ '_spec_property_naming', False
507
+ )
508
+ kwargs['_content_type'] = kwargs.get(
509
+ '_content_type')
510
+ kwargs['_host_index'] = kwargs.get('_host_index')
511
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
512
+ kwargs['account_id'] = \
513
+ account_id
514
+ return self.create_private_market_demand_seller_account_endpoint.call_with_http_info(**kwargs)
515
+
516
+ def grant_consent(
517
+ self,
518
+ account_id,
519
+ **kwargs
520
+ ):
521
+ """grant_consent # noqa: E501
522
+
523
+ Grant consent to a business application on behalf of a Private Market demand account # noqa: E501
524
+ This method makes a synchronous HTTP request by default. To make an
525
+ asynchronous HTTP request, please pass async_req=True
526
+
527
+ >>> thread = api.grant_consent(account_id, async_req=True)
528
+ >>> result = thread.get()
529
+
530
+ Args:
531
+ account_id (str): The demand account ID on which to grant consent
532
+
533
+ Keyword Args:
534
+ grant_consent_input (GrantConsentInput): [optional]
535
+ _return_http_data_only (bool): response data without head status
536
+ code and headers. Default is True.
537
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
538
+ will be returned without reading/decoding response data.
539
+ Default is True.
540
+ _request_timeout (int/float/tuple): timeout setting for this request. If
541
+ one number provided, it will be total request timeout. It can also
542
+ be a pair (tuple) of (connection, read) timeouts.
543
+ Default is None.
544
+ _check_input_type (bool): specifies if type checking
545
+ should be done one the data sent to the server.
546
+ Default is True.
547
+ _check_return_type (bool): specifies if type checking
548
+ should be done one the data received from the server.
549
+ Default is True.
550
+ _spec_property_naming (bool): True if the variable names in the input data
551
+ are serialized names, as specified in the OpenAPI document.
552
+ False if the variable names in the input data
553
+ are pythonic names, e.g. snake case (default)
554
+ _content_type (str/None): force body content-type.
555
+ Default is None and content-type will be predicted by allowed
556
+ content-types and body.
557
+ _host_index (int/None): specifies the index of the server
558
+ that we want to use.
559
+ Default is read from the configuration.
560
+ _request_auths (list): set to override the auth_settings for an a single
561
+ request; this effectively ignores the authentication
562
+ in the spec for a single request.
563
+ Default is None
564
+ async_req (bool): execute request asynchronously
565
+
566
+ Returns:
567
+ None
568
+ If the method is called asynchronously, returns the request
569
+ thread.
570
+ """
571
+ kwargs['async_req'] = kwargs.get(
572
+ 'async_req', False
573
+ )
574
+ kwargs['_return_http_data_only'] = kwargs.get(
575
+ '_return_http_data_only', True
576
+ )
577
+ kwargs['_preload_content'] = kwargs.get(
578
+ '_preload_content', True
579
+ )
580
+ kwargs['_request_timeout'] = kwargs.get(
581
+ '_request_timeout', None
582
+ )
583
+ kwargs['_check_input_type'] = kwargs.get(
584
+ '_check_input_type', True
585
+ )
586
+ kwargs['_check_return_type'] = kwargs.get(
587
+ '_check_return_type', True
588
+ )
589
+ kwargs['_spec_property_naming'] = kwargs.get(
590
+ '_spec_property_naming', False
591
+ )
592
+ kwargs['_content_type'] = kwargs.get(
593
+ '_content_type')
594
+ kwargs['_host_index'] = kwargs.get('_host_index')
595
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
596
+ kwargs['account_id'] = \
597
+ account_id
598
+ return self.grant_consent_endpoint.call_with_http_info(**kwargs)
599
+
600
+ def update_brands(
601
+ self,
602
+ account_id,
603
+ **kwargs
604
+ ):
605
+ """update_brands # noqa: E501
606
+
607
+ replace the brands for an account # noqa: E501
608
+ This method makes a synchronous HTTP request by default. To make an
609
+ asynchronous HTTP request, please pass async_req=True
610
+
611
+ >>> thread = api.update_brands(account_id, async_req=True)
612
+ >>> result = thread.get()
613
+
614
+ Args:
615
+ account_id (str): the account id to update
616
+
617
+ Keyword Args:
618
+ request_body ([int]): brands to associate to account. [optional]
619
+ _return_http_data_only (bool): response data without head status
620
+ code and headers. Default is True.
621
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
622
+ will be returned without reading/decoding response data.
623
+ Default is True.
624
+ _request_timeout (int/float/tuple): timeout setting for this request. If
625
+ one number provided, it will be total request timeout. It can also
626
+ be a pair (tuple) of (connection, read) timeouts.
627
+ Default is None.
628
+ _check_input_type (bool): specifies if type checking
629
+ should be done one the data sent to the server.
630
+ Default is True.
631
+ _check_return_type (bool): specifies if type checking
632
+ should be done one the data received from the server.
633
+ Default is True.
634
+ _spec_property_naming (bool): True if the variable names in the input data
635
+ are serialized names, as specified in the OpenAPI document.
636
+ False if the variable names in the input data
637
+ are pythonic names, e.g. snake case (default)
638
+ _content_type (str/None): force body content-type.
639
+ Default is None and content-type will be predicted by allowed
640
+ content-types and body.
641
+ _host_index (int/None): specifies the index of the server
642
+ that we want to use.
643
+ Default is read from the configuration.
644
+ _request_auths (list): set to override the auth_settings for an a single
645
+ request; this effectively ignores the authentication
646
+ in the spec for a single request.
647
+ Default is None
648
+ async_req (bool): execute request asynchronously
649
+
650
+ Returns:
651
+ ValueResourceCollectionOutcomeOfInt64
652
+ If the method is called asynchronously, returns the request
653
+ thread.
654
+ """
655
+ kwargs['async_req'] = kwargs.get(
656
+ 'async_req', False
657
+ )
658
+ kwargs['_return_http_data_only'] = kwargs.get(
659
+ '_return_http_data_only', True
660
+ )
661
+ kwargs['_preload_content'] = kwargs.get(
662
+ '_preload_content', True
663
+ )
664
+ kwargs['_request_timeout'] = kwargs.get(
665
+ '_request_timeout', None
666
+ )
667
+ kwargs['_check_input_type'] = kwargs.get(
668
+ '_check_input_type', True
669
+ )
670
+ kwargs['_check_return_type'] = kwargs.get(
671
+ '_check_return_type', True
672
+ )
673
+ kwargs['_spec_property_naming'] = kwargs.get(
674
+ '_spec_property_naming', False
675
+ )
676
+ kwargs['_content_type'] = kwargs.get(
677
+ '_content_type')
678
+ kwargs['_host_index'] = kwargs.get('_host_index')
679
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
680
+ kwargs['account_id'] = \
681
+ account_id
682
+ return self.update_brands_endpoint.call_with_http_info(**kwargs)
683
+
684
+ def update_sellers(
685
+ self,
686
+ account_id,
687
+ **kwargs
688
+ ):
689
+ """update_sellers # noqa: E501
690
+
691
+ replace the sellers assoiated with an account # noqa: E501
692
+ This method makes a synchronous HTTP request by default. To make an
693
+ asynchronous HTTP request, please pass async_req=True
694
+
695
+ >>> thread = api.update_sellers(account_id, async_req=True)
696
+ >>> result = thread.get()
697
+
698
+ Args:
699
+ account_id (str): the account id to update
700
+
701
+ Keyword Args:
702
+ retail_media_seller ([RetailMediaSeller]): sellers to associate. [optional]
703
+ _return_http_data_only (bool): response data without head status
704
+ code and headers. Default is True.
705
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
706
+ will be returned without reading/decoding response data.
707
+ Default is True.
708
+ _request_timeout (int/float/tuple): timeout setting for this request. If
709
+ one number provided, it will be total request timeout. It can also
710
+ be a pair (tuple) of (connection, read) timeouts.
711
+ Default is None.
712
+ _check_input_type (bool): specifies if type checking
713
+ should be done one the data sent to the server.
714
+ Default is True.
715
+ _check_return_type (bool): specifies if type checking
716
+ should be done one the data received from the server.
717
+ Default is True.
718
+ _spec_property_naming (bool): True if the variable names in the input data
719
+ are serialized names, as specified in the OpenAPI document.
720
+ False if the variable names in the input data
721
+ are pythonic names, e.g. snake case (default)
722
+ _content_type (str/None): force body content-type.
723
+ Default is None and content-type will be predicted by allowed
724
+ content-types and body.
725
+ _host_index (int/None): specifies the index of the server
726
+ that we want to use.
727
+ Default is read from the configuration.
728
+ _request_auths (list): set to override the auth_settings for an a single
729
+ request; this effectively ignores the authentication
730
+ in the spec for a single request.
731
+ Default is None
732
+ async_req (bool): execute request asynchronously
733
+
734
+ Returns:
735
+ ValueResourceCollectionOutcomeOfRetailMediaSeller
736
+ If the method is called asynchronously, returns the request
737
+ thread.
738
+ """
739
+ kwargs['async_req'] = kwargs.get(
740
+ 'async_req', False
741
+ )
742
+ kwargs['_return_http_data_only'] = kwargs.get(
743
+ '_return_http_data_only', True
744
+ )
745
+ kwargs['_preload_content'] = kwargs.get(
746
+ '_preload_content', True
747
+ )
748
+ kwargs['_request_timeout'] = kwargs.get(
749
+ '_request_timeout', None
750
+ )
751
+ kwargs['_check_input_type'] = kwargs.get(
752
+ '_check_input_type', True
753
+ )
754
+ kwargs['_check_return_type'] = kwargs.get(
755
+ '_check_return_type', True
756
+ )
757
+ kwargs['_spec_property_naming'] = kwargs.get(
758
+ '_spec_property_naming', False
759
+ )
760
+ kwargs['_content_type'] = kwargs.get(
761
+ '_content_type')
762
+ kwargs['_host_index'] = kwargs.get('_host_index')
763
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
764
+ kwargs['account_id'] = \
765
+ account_id
766
+ return self.update_sellers_endpoint.call_with_http_info(**kwargs)
767
+