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