bdpan-cli 0.1.0__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.
Files changed (44) hide show
  1. bdpan_cli/__init__.py +15 -0
  2. bdpan_cli/_vendor/__init__.py +9 -0
  3. bdpan_cli/_vendor/openapi_client/__init__.py +27 -0
  4. bdpan_cli/_vendor/openapi_client/api/__init__.py +6 -0
  5. bdpan_cli/_vendor/openapi_client/api/auth_api.py +649 -0
  6. bdpan_cli/_vendor/openapi_client/api/fileinfo_api.py +737 -0
  7. bdpan_cli/_vendor/openapi_client/api/filemanager_api.py +669 -0
  8. bdpan_cli/_vendor/openapi_client/api/fileupload_api.py +599 -0
  9. bdpan_cli/_vendor/openapi_client/api/multimediafile_api.py +391 -0
  10. bdpan_cli/_vendor/openapi_client/api/userinfo_api.py +315 -0
  11. bdpan_cli/_vendor/openapi_client/api_client.py +864 -0
  12. bdpan_cli/_vendor/openapi_client/configuration.py +454 -0
  13. bdpan_cli/_vendor/openapi_client/exceptions.py +197 -0
  14. bdpan_cli/_vendor/openapi_client/model/__init__.py +5 -0
  15. bdpan_cli/_vendor/openapi_client/model/oauth_token_authorization_code_response.py +276 -0
  16. bdpan_cli/_vendor/openapi_client/model/oauth_token_device_code_response.py +276 -0
  17. bdpan_cli/_vendor/openapi_client/model/oauth_token_device_token_response.py +276 -0
  18. bdpan_cli/_vendor/openapi_client/model/oauth_token_refresh_token_response.py +276 -0
  19. bdpan_cli/_vendor/openapi_client/model/quotaresponse.py +276 -0
  20. bdpan_cli/_vendor/openapi_client/model/uinforesponse.py +284 -0
  21. bdpan_cli/_vendor/openapi_client/model_utils.py +2039 -0
  22. bdpan_cli/_vendor/openapi_client/rest.py +385 -0
  23. bdpan_cli/_version.py +3 -0
  24. bdpan_cli/account.py +78 -0
  25. bdpan_cli/apply_scrape_rename.py +99 -0
  26. bdpan_cli/auth.py +218 -0
  27. bdpan_cli/cli.py +1428 -0
  28. bdpan_cli/config.py +26 -0
  29. bdpan_cli/dedup.py +310 -0
  30. bdpan_cli/downloader.py +178 -0
  31. bdpan_cli/file_manager.py +389 -0
  32. bdpan_cli/foldering.py +181 -0
  33. bdpan_cli/logger.py +101 -0
  34. bdpan_cli/mcp_server.py +547 -0
  35. bdpan_cli/media_info.py +251 -0
  36. bdpan_cli/ops.py +173 -0
  37. bdpan_cli/organize.py +108 -0
  38. bdpan_cli/preview_scrape.py +182 -0
  39. bdpan_cli/scraper.py +505 -0
  40. bdpan_cli/uploader.py +391 -0
  41. bdpan_cli-0.1.0.dist-info/METADATA +167 -0
  42. bdpan_cli-0.1.0.dist-info/RECORD +44 -0
  43. bdpan_cli-0.1.0.dist-info/WHEEL +4 -0
  44. bdpan_cli-0.1.0.dist-info/entry_points.txt +5 -0
@@ -0,0 +1,737 @@
1
+ """
2
+ xpan
3
+
4
+ xpanapi # noqa: E501
5
+
6
+ The version of the OpenAPI document: 0.1
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from bdpan_cli._vendor.openapi_client.api_client import ApiClient, Endpoint as _Endpoint
15
+ from bdpan_cli._vendor.openapi_client.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
+
25
+
26
+ class FileinfoApi(object):
27
+ """NOTE: This class is auto generated by OpenAPI Generator
28
+ Ref: https://openapi-generator.tech
29
+
30
+ Do not edit the class manually.
31
+ """
32
+
33
+ def __init__(self, api_client=None):
34
+ if api_client is None:
35
+ api_client = ApiClient()
36
+ self.api_client = api_client
37
+ self.xpanfiledoclist_endpoint = _Endpoint(
38
+ settings={
39
+ 'response_type': (dict,),
40
+ 'auth': [],
41
+ 'endpoint_path': '/rest/2.0/xpan/file?method=doclist&openapi=xpansdk',
42
+ 'operation_id': 'xpanfiledoclist',
43
+ 'http_method': 'GET',
44
+ 'servers': [
45
+ {
46
+ 'url': "https://pan.baidu.com",
47
+ 'description': "No description provided",
48
+ },
49
+ ]
50
+ },
51
+ params_map={
52
+ 'all': [
53
+ 'access_token',
54
+ 'parent_path',
55
+ 'recursion',
56
+ 'page',
57
+ 'num',
58
+ 'order',
59
+ 'desc',
60
+ 'web',
61
+ ],
62
+ 'required': [
63
+ 'access_token',
64
+ ],
65
+ 'nullable': [
66
+ ],
67
+ 'enum': [
68
+ ],
69
+ 'validation': [
70
+ ]
71
+ },
72
+ root_map={
73
+ 'validations': {
74
+ },
75
+ 'allowed_values': {
76
+ },
77
+ 'openapi_types': {
78
+ 'access_token':
79
+ (str,),
80
+ 'parent_path':
81
+ (str,),
82
+ 'recursion':
83
+ (str,),
84
+ 'page':
85
+ (int,),
86
+ 'num':
87
+ (int,),
88
+ 'order':
89
+ (str,),
90
+ 'desc':
91
+ (str,),
92
+ 'web':
93
+ (str,),
94
+ },
95
+ 'attribute_map': {
96
+ 'access_token': 'access_token',
97
+ 'parent_path': 'parent_path',
98
+ 'recursion': 'recursion',
99
+ 'page': 'page',
100
+ 'num': 'num',
101
+ 'order': 'order',
102
+ 'desc': 'desc',
103
+ 'web': 'web',
104
+ },
105
+ 'location_map': {
106
+ 'access_token': 'query',
107
+ 'parent_path': 'query',
108
+ 'recursion': 'query',
109
+ 'page': 'query',
110
+ 'num': 'query',
111
+ 'order': 'query',
112
+ 'desc': 'query',
113
+ 'web': 'query',
114
+ },
115
+ 'collection_format_map': {
116
+ }
117
+ },
118
+ headers_map={
119
+ 'accept': [
120
+ 'application/json; charset=UTF-8'
121
+ ],
122
+ 'content_type': [],
123
+ },
124
+ api_client=api_client
125
+ )
126
+ self.xpanfileimagelist_endpoint = _Endpoint(
127
+ settings={
128
+ 'response_type': (dict,),
129
+ 'auth': [],
130
+ 'endpoint_path': '/rest/2.0/xpan/file?method=imagelist&openapi=xpansdk',
131
+ 'operation_id': 'xpanfileimagelist',
132
+ 'http_method': 'GET',
133
+ 'servers': [
134
+ {
135
+ 'url': "https://pan.baidu.com",
136
+ 'description': "No description provided",
137
+ },
138
+ ]
139
+ },
140
+ params_map={
141
+ 'all': [
142
+ 'access_token',
143
+ 'parent_path',
144
+ 'recursion',
145
+ 'page',
146
+ 'num',
147
+ 'order',
148
+ 'desc',
149
+ 'web',
150
+ ],
151
+ 'required': [
152
+ 'access_token',
153
+ ],
154
+ 'nullable': [
155
+ ],
156
+ 'enum': [
157
+ ],
158
+ 'validation': [
159
+ ]
160
+ },
161
+ root_map={
162
+ 'validations': {
163
+ },
164
+ 'allowed_values': {
165
+ },
166
+ 'openapi_types': {
167
+ 'access_token':
168
+ (str,),
169
+ 'parent_path':
170
+ (str,),
171
+ 'recursion':
172
+ (str,),
173
+ 'page':
174
+ (int,),
175
+ 'num':
176
+ (int,),
177
+ 'order':
178
+ (str,),
179
+ 'desc':
180
+ (str,),
181
+ 'web':
182
+ (str,),
183
+ },
184
+ 'attribute_map': {
185
+ 'access_token': 'access_token',
186
+ 'parent_path': 'parent_path',
187
+ 'recursion': 'recursion',
188
+ 'page': 'page',
189
+ 'num': 'num',
190
+ 'order': 'order',
191
+ 'desc': 'desc',
192
+ 'web': 'web',
193
+ },
194
+ 'location_map': {
195
+ 'access_token': 'query',
196
+ 'parent_path': 'query',
197
+ 'recursion': 'query',
198
+ 'page': 'query',
199
+ 'num': 'query',
200
+ 'order': 'query',
201
+ 'desc': 'query',
202
+ 'web': 'query',
203
+ },
204
+ 'collection_format_map': {
205
+ }
206
+ },
207
+ headers_map={
208
+ 'accept': [
209
+ 'application/json; charset=UTF-8'
210
+ ],
211
+ 'content_type': [],
212
+ },
213
+ api_client=api_client
214
+ )
215
+ self.xpanfilelist_endpoint = _Endpoint(
216
+ settings={
217
+ 'response_type': (dict,),
218
+ 'auth': [],
219
+ 'endpoint_path': '/rest/2.0/xpan/file?method=list&openapi=xpansdk',
220
+ 'operation_id': 'xpanfilelist',
221
+ 'http_method': 'GET',
222
+ 'servers': [
223
+ {
224
+ 'url': "https://pan.baidu.com",
225
+ 'description': "No description provided",
226
+ },
227
+ ]
228
+ },
229
+ params_map={
230
+ 'all': [
231
+ 'access_token',
232
+ 'dir',
233
+ 'folder',
234
+ 'start',
235
+ 'limit',
236
+ 'order',
237
+ 'desc',
238
+ 'web',
239
+ 'showempty',
240
+ ],
241
+ 'required': [
242
+ 'access_token',
243
+ ],
244
+ 'nullable': [
245
+ ],
246
+ 'enum': [
247
+ ],
248
+ 'validation': [
249
+ ]
250
+ },
251
+ root_map={
252
+ 'validations': {
253
+ },
254
+ 'allowed_values': {
255
+ },
256
+ 'openapi_types': {
257
+ 'access_token':
258
+ (str,),
259
+ 'dir':
260
+ (str,),
261
+ 'folder':
262
+ (str,),
263
+ 'start':
264
+ (str,),
265
+ 'limit':
266
+ (int,),
267
+ 'order':
268
+ (str,),
269
+ 'desc':
270
+ (int,),
271
+ 'web':
272
+ (str,),
273
+ 'showempty':
274
+ (int,),
275
+ },
276
+ 'attribute_map': {
277
+ 'access_token': 'access_token',
278
+ 'dir': 'dir',
279
+ 'folder': 'folder',
280
+ 'start': 'start',
281
+ 'limit': 'limit',
282
+ 'order': 'order',
283
+ 'desc': 'desc',
284
+ 'web': 'web',
285
+ 'showempty': 'showempty',
286
+ },
287
+ 'location_map': {
288
+ 'access_token': 'query',
289
+ 'dir': 'query',
290
+ 'folder': 'query',
291
+ 'start': 'query',
292
+ 'limit': 'query',
293
+ 'order': 'query',
294
+ 'desc': 'query',
295
+ 'web': 'query',
296
+ 'showempty': 'query',
297
+ },
298
+ 'collection_format_map': {
299
+ }
300
+ },
301
+ headers_map={
302
+ 'accept': [
303
+ 'application/json; charset=UTF-8'
304
+ ],
305
+ 'content_type': [],
306
+ },
307
+ api_client=api_client
308
+ )
309
+ self.xpanfilesearch_endpoint = _Endpoint(
310
+ settings={
311
+ 'response_type': (dict,),
312
+ 'auth': [],
313
+ 'endpoint_path': '/rest/2.0/xpan/file?method=search&openapi=xpansdk',
314
+ 'operation_id': 'xpanfilesearch',
315
+ 'http_method': 'GET',
316
+ 'servers': [
317
+ {
318
+ 'url': "https://pan.baidu.com",
319
+ 'description': "No description provided",
320
+ },
321
+ ]
322
+ },
323
+ params_map={
324
+ 'all': [
325
+ 'access_token',
326
+ 'key',
327
+ 'web',
328
+ 'num',
329
+ 'page',
330
+ 'dir',
331
+ 'recursion',
332
+ ],
333
+ 'required': [
334
+ 'access_token',
335
+ 'key',
336
+ ],
337
+ 'nullable': [
338
+ ],
339
+ 'enum': [
340
+ ],
341
+ 'validation': [
342
+ ]
343
+ },
344
+ root_map={
345
+ 'validations': {
346
+ },
347
+ 'allowed_values': {
348
+ },
349
+ 'openapi_types': {
350
+ 'access_token':
351
+ (str,),
352
+ 'key':
353
+ (str,),
354
+ 'web':
355
+ (str,),
356
+ 'num':
357
+ (str,),
358
+ 'page':
359
+ (str,),
360
+ 'dir':
361
+ (str,),
362
+ 'recursion':
363
+ (str,),
364
+ },
365
+ 'attribute_map': {
366
+ 'access_token': 'access_token',
367
+ 'key': 'key',
368
+ 'web': 'web',
369
+ 'num': 'num',
370
+ 'page': 'page',
371
+ 'dir': 'dir',
372
+ 'recursion': 'recursion',
373
+ },
374
+ 'location_map': {
375
+ 'access_token': 'query',
376
+ 'key': 'query',
377
+ 'web': 'query',
378
+ 'num': 'query',
379
+ 'page': 'query',
380
+ 'dir': 'query',
381
+ 'recursion': 'query',
382
+ },
383
+ 'collection_format_map': {
384
+ }
385
+ },
386
+ headers_map={
387
+ 'accept': [
388
+ 'application/json; charset=UTF-8'
389
+ ],
390
+ 'content_type': [],
391
+ },
392
+ api_client=api_client
393
+ )
394
+
395
+ def xpanfiledoclist(
396
+ self,
397
+ access_token,
398
+ **kwargs
399
+ ):
400
+ """xpanfiledoclist # noqa: E501
401
+
402
+ file doclist # noqa: E501
403
+ This method makes a synchronous HTTP request by default. To make an
404
+ asynchronous HTTP request, please pass async_req=True
405
+
406
+ >>> thread = api.xpanfiledoclist(access_token, async_req=True)
407
+ >>> result = thread.get()
408
+
409
+ Args:
410
+ access_token (str):
411
+
412
+ Keyword Args:
413
+ parent_path (str): [optional]
414
+ recursion (str): [optional]
415
+ page (int): [optional]
416
+ num (int): [optional]
417
+ order (str): [optional]
418
+ desc (str): [optional]
419
+ web (str): [optional]
420
+ _return_http_data_only (bool): response data without head status
421
+ code and headers. Default is True.
422
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
423
+ will be returned without reading/decoding response data.
424
+ Default is True.
425
+ _request_timeout (int/float/tuple): timeout setting for this request. If
426
+ one number provided, it will be total request timeout. It can also
427
+ be a pair (tuple) of (connection, read) timeouts.
428
+ Default is None.
429
+ _check_input_type (bool): specifies if type checking
430
+ should be done one the data sent to the server.
431
+ Default is True.
432
+ _check_return_type (bool): specifies if type checking
433
+ should be done one the data received from the server.
434
+ Default is True.
435
+ _spec_property_naming (bool): True if the variable names in the input data
436
+ are serialized names, as specified in the OpenAPI document.
437
+ False if the variable names in the input data
438
+ are pythonic names, e.g. snake case (default)
439
+ _content_type (str/None): force body content-type.
440
+ Default is None and content-type will be predicted by allowed
441
+ content-types and body.
442
+ _host_index (int/None): specifies the index of the server
443
+ that we want to use.
444
+ Default is read from the configuration.
445
+ async_req (bool): execute request asynchronously
446
+
447
+ Returns:
448
+ str
449
+ If the method is called asynchronously, returns the request
450
+ thread.
451
+ """
452
+ kwargs['async_req'] = kwargs.get(
453
+ 'async_req', False
454
+ )
455
+ kwargs['_return_http_data_only'] = kwargs.get(
456
+ '_return_http_data_only', True
457
+ )
458
+ kwargs['_preload_content'] = kwargs.get(
459
+ '_preload_content', True
460
+ )
461
+ kwargs['_request_timeout'] = kwargs.get(
462
+ '_request_timeout', None
463
+ )
464
+ kwargs['_check_input_type'] = kwargs.get(
465
+ '_check_input_type', True
466
+ )
467
+ kwargs['_check_return_type'] = kwargs.get(
468
+ '_check_return_type', True
469
+ )
470
+ kwargs['_spec_property_naming'] = kwargs.get(
471
+ '_spec_property_naming', False
472
+ )
473
+ kwargs['_content_type'] = kwargs.get(
474
+ '_content_type')
475
+ kwargs['_host_index'] = kwargs.get('_host_index')
476
+ kwargs['access_token'] = \
477
+ access_token
478
+ return self.xpanfiledoclist_endpoint.call_with_http_info(**kwargs)
479
+
480
+ def xpanfileimagelist(
481
+ self,
482
+ access_token,
483
+ **kwargs
484
+ ):
485
+ """xpanfileimagelist # noqa: E501
486
+
487
+ file imagelist # noqa: E501
488
+ This method makes a synchronous HTTP request by default. To make an
489
+ asynchronous HTTP request, please pass async_req=True
490
+
491
+ >>> thread = api.xpanfileimagelist(access_token, async_req=True)
492
+ >>> result = thread.get()
493
+
494
+ Args:
495
+ access_token (str):
496
+
497
+ Keyword Args:
498
+ parent_path (str): [optional]
499
+ recursion (str): [optional]
500
+ page (int): [optional]
501
+ num (int): [optional]
502
+ order (str): [optional]
503
+ desc (str): [optional]
504
+ web (str): [optional]
505
+ _return_http_data_only (bool): response data without head status
506
+ code and headers. Default is True.
507
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
508
+ will be returned without reading/decoding response data.
509
+ Default is True.
510
+ _request_timeout (int/float/tuple): timeout setting for this request. If
511
+ one number provided, it will be total request timeout. It can also
512
+ be a pair (tuple) of (connection, read) timeouts.
513
+ Default is None.
514
+ _check_input_type (bool): specifies if type checking
515
+ should be done one the data sent to the server.
516
+ Default is True.
517
+ _check_return_type (bool): specifies if type checking
518
+ should be done one the data received from the server.
519
+ Default is True.
520
+ _spec_property_naming (bool): True if the variable names in the input data
521
+ are serialized names, as specified in the OpenAPI document.
522
+ False if the variable names in the input data
523
+ are pythonic names, e.g. snake case (default)
524
+ _content_type (str/None): force body content-type.
525
+ Default is None and content-type will be predicted by allowed
526
+ content-types and body.
527
+ _host_index (int/None): specifies the index of the server
528
+ that we want to use.
529
+ Default is read from the configuration.
530
+ async_req (bool): execute request asynchronously
531
+
532
+ Returns:
533
+ str
534
+ If the method is called asynchronously, returns the request
535
+ thread.
536
+ """
537
+ kwargs['async_req'] = kwargs.get(
538
+ 'async_req', False
539
+ )
540
+ kwargs['_return_http_data_only'] = kwargs.get(
541
+ '_return_http_data_only', True
542
+ )
543
+ kwargs['_preload_content'] = kwargs.get(
544
+ '_preload_content', True
545
+ )
546
+ kwargs['_request_timeout'] = kwargs.get(
547
+ '_request_timeout', None
548
+ )
549
+ kwargs['_check_input_type'] = kwargs.get(
550
+ '_check_input_type', True
551
+ )
552
+ kwargs['_check_return_type'] = kwargs.get(
553
+ '_check_return_type', True
554
+ )
555
+ kwargs['_spec_property_naming'] = kwargs.get(
556
+ '_spec_property_naming', False
557
+ )
558
+ kwargs['_content_type'] = kwargs.get(
559
+ '_content_type')
560
+ kwargs['_host_index'] = kwargs.get('_host_index')
561
+ kwargs['access_token'] = \
562
+ access_token
563
+ return self.xpanfileimagelist_endpoint.call_with_http_info(**kwargs)
564
+
565
+ def xpanfilelist(
566
+ self,
567
+ access_token,
568
+ **kwargs
569
+ ):
570
+ """xpanfilelist # noqa: E501
571
+
572
+ file list # noqa: E501
573
+ This method makes a synchronous HTTP request by default. To make an
574
+ asynchronous HTTP request, please pass async_req=True
575
+
576
+ >>> thread = api.xpanfilelist(access_token, async_req=True)
577
+ >>> result = thread.get()
578
+
579
+ Args:
580
+ access_token (str):
581
+
582
+ Keyword Args:
583
+ dir (str): [optional]
584
+ folder (str): [optional]
585
+ start (str): [optional]
586
+ limit (int): [optional]
587
+ order (str): [optional]
588
+ desc (int): [optional]
589
+ web (str): [optional]
590
+ showempty (int): [optional]
591
+ _return_http_data_only (bool): response data without head status
592
+ code and headers. Default is True.
593
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
594
+ will be returned without reading/decoding response data.
595
+ Default is True.
596
+ _request_timeout (int/float/tuple): timeout setting for this request. If
597
+ one number provided, it will be total request timeout. It can also
598
+ be a pair (tuple) of (connection, read) timeouts.
599
+ Default is None.
600
+ _check_input_type (bool): specifies if type checking
601
+ should be done one the data sent to the server.
602
+ Default is True.
603
+ _check_return_type (bool): specifies if type checking
604
+ should be done one the data received from the server.
605
+ Default is True.
606
+ _spec_property_naming (bool): True if the variable names in the input data
607
+ are serialized names, as specified in the OpenAPI document.
608
+ False if the variable names in the input data
609
+ are pythonic names, e.g. snake case (default)
610
+ _content_type (str/None): force body content-type.
611
+ Default is None and content-type will be predicted by allowed
612
+ content-types and body.
613
+ _host_index (int/None): specifies the index of the server
614
+ that we want to use.
615
+ Default is read from the configuration.
616
+ async_req (bool): execute request asynchronously
617
+
618
+ Returns:
619
+ str
620
+ If the method is called asynchronously, returns the request
621
+ thread.
622
+ """
623
+ kwargs['async_req'] = kwargs.get(
624
+ 'async_req', False
625
+ )
626
+ kwargs['_return_http_data_only'] = kwargs.get(
627
+ '_return_http_data_only', True
628
+ )
629
+ kwargs['_preload_content'] = kwargs.get(
630
+ '_preload_content', True
631
+ )
632
+ kwargs['_request_timeout'] = kwargs.get(
633
+ '_request_timeout', None
634
+ )
635
+ kwargs['_check_input_type'] = kwargs.get(
636
+ '_check_input_type', True
637
+ )
638
+ kwargs['_check_return_type'] = kwargs.get(
639
+ '_check_return_type', True
640
+ )
641
+ kwargs['_spec_property_naming'] = kwargs.get(
642
+ '_spec_property_naming', False
643
+ )
644
+ kwargs['_content_type'] = kwargs.get(
645
+ '_content_type')
646
+ kwargs['_host_index'] = kwargs.get('_host_index')
647
+ kwargs['access_token'] = \
648
+ access_token
649
+ return self.xpanfilelist_endpoint.call_with_http_info(**kwargs)
650
+
651
+ def xpanfilesearch(
652
+ self,
653
+ access_token,
654
+ key,
655
+ **kwargs
656
+ ):
657
+ """xpanfilesearch # noqa: E501
658
+
659
+ file search # noqa: E501
660
+ This method makes a synchronous HTTP request by default. To make an
661
+ asynchronous HTTP request, please pass async_req=True
662
+
663
+ >>> thread = api.xpanfilesearch(access_token, key, async_req=True)
664
+ >>> result = thread.get()
665
+
666
+ Args:
667
+ access_token (str):
668
+ key (str):
669
+
670
+ Keyword Args:
671
+ web (str): [optional]
672
+ num (str): [optional]
673
+ page (str): [optional]
674
+ dir (str): [optional]
675
+ recursion (str): [optional]
676
+ _return_http_data_only (bool): response data without head status
677
+ code and headers. Default is True.
678
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
679
+ will be returned without reading/decoding response data.
680
+ Default is True.
681
+ _request_timeout (int/float/tuple): timeout setting for this request. If
682
+ one number provided, it will be total request timeout. It can also
683
+ be a pair (tuple) of (connection, read) timeouts.
684
+ Default is None.
685
+ _check_input_type (bool): specifies if type checking
686
+ should be done one the data sent to the server.
687
+ Default is True.
688
+ _check_return_type (bool): specifies if type checking
689
+ should be done one the data received from the server.
690
+ Default is True.
691
+ _spec_property_naming (bool): True if the variable names in the input data
692
+ are serialized names, as specified in the OpenAPI document.
693
+ False if the variable names in the input data
694
+ are pythonic names, e.g. snake case (default)
695
+ _content_type (str/None): force body content-type.
696
+ Default is None and content-type will be predicted by allowed
697
+ content-types and body.
698
+ _host_index (int/None): specifies the index of the server
699
+ that we want to use.
700
+ Default is read from the configuration.
701
+ async_req (bool): execute request asynchronously
702
+
703
+ Returns:
704
+ str
705
+ If the method is called asynchronously, returns the request
706
+ thread.
707
+ """
708
+ kwargs['async_req'] = kwargs.get(
709
+ 'async_req', False
710
+ )
711
+ kwargs['_return_http_data_only'] = kwargs.get(
712
+ '_return_http_data_only', True
713
+ )
714
+ kwargs['_preload_content'] = kwargs.get(
715
+ '_preload_content', True
716
+ )
717
+ kwargs['_request_timeout'] = kwargs.get(
718
+ '_request_timeout', None
719
+ )
720
+ kwargs['_check_input_type'] = kwargs.get(
721
+ '_check_input_type', True
722
+ )
723
+ kwargs['_check_return_type'] = kwargs.get(
724
+ '_check_return_type', True
725
+ )
726
+ kwargs['_spec_property_naming'] = kwargs.get(
727
+ '_spec_property_naming', False
728
+ )
729
+ kwargs['_content_type'] = kwargs.get(
730
+ '_content_type')
731
+ kwargs['_host_index'] = kwargs.get('_host_index')
732
+ kwargs['access_token'] = \
733
+ access_token
734
+ kwargs['key'] = \
735
+ key
736
+ return self.xpanfilesearch_endpoint.call_with_http_info(**kwargs)
737
+