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,391 @@
|
|
|
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 MultimediafileApi(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.xpanfilelistall_endpoint = _Endpoint(
|
|
38
|
+
settings={
|
|
39
|
+
'response_type': (dict,),
|
|
40
|
+
'auth': [],
|
|
41
|
+
'endpoint_path': '/rest/2.0/xpan/multimedia?method=listall&openapi=xpansdk',
|
|
42
|
+
'operation_id': 'xpanfilelistall',
|
|
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
|
+
'path',
|
|
55
|
+
'recursion',
|
|
56
|
+
'web',
|
|
57
|
+
'start',
|
|
58
|
+
'limit',
|
|
59
|
+
'order',
|
|
60
|
+
'desc',
|
|
61
|
+
],
|
|
62
|
+
'required': [
|
|
63
|
+
'access_token',
|
|
64
|
+
'path',
|
|
65
|
+
'recursion',
|
|
66
|
+
],
|
|
67
|
+
'nullable': [
|
|
68
|
+
],
|
|
69
|
+
'enum': [
|
|
70
|
+
],
|
|
71
|
+
'validation': [
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
root_map={
|
|
75
|
+
'validations': {
|
|
76
|
+
},
|
|
77
|
+
'allowed_values': {
|
|
78
|
+
},
|
|
79
|
+
'openapi_types': {
|
|
80
|
+
'access_token':
|
|
81
|
+
(str,),
|
|
82
|
+
'path':
|
|
83
|
+
(str,),
|
|
84
|
+
'recursion':
|
|
85
|
+
(int,),
|
|
86
|
+
'web':
|
|
87
|
+
(str,),
|
|
88
|
+
'start':
|
|
89
|
+
(int,),
|
|
90
|
+
'limit':
|
|
91
|
+
(int,),
|
|
92
|
+
'order':
|
|
93
|
+
(str,),
|
|
94
|
+
'desc':
|
|
95
|
+
(int,),
|
|
96
|
+
},
|
|
97
|
+
'attribute_map': {
|
|
98
|
+
'access_token': 'access_token',
|
|
99
|
+
'path': 'path',
|
|
100
|
+
'recursion': 'recursion',
|
|
101
|
+
'web': 'web',
|
|
102
|
+
'start': 'start',
|
|
103
|
+
'limit': 'limit',
|
|
104
|
+
'order': 'order',
|
|
105
|
+
'desc': 'desc',
|
|
106
|
+
},
|
|
107
|
+
'location_map': {
|
|
108
|
+
'access_token': 'query',
|
|
109
|
+
'path': 'query',
|
|
110
|
+
'recursion': 'query',
|
|
111
|
+
'web': 'query',
|
|
112
|
+
'start': 'query',
|
|
113
|
+
'limit': 'query',
|
|
114
|
+
'order': 'query',
|
|
115
|
+
'desc': 'query',
|
|
116
|
+
},
|
|
117
|
+
'collection_format_map': {
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
headers_map={
|
|
121
|
+
'accept': [
|
|
122
|
+
'application/json; charset=UTF-8'
|
|
123
|
+
],
|
|
124
|
+
'content_type': [],
|
|
125
|
+
},
|
|
126
|
+
api_client=api_client
|
|
127
|
+
)
|
|
128
|
+
self.xpanmultimediafilemetas_endpoint = _Endpoint(
|
|
129
|
+
settings={
|
|
130
|
+
'response_type': (dict,),
|
|
131
|
+
'auth': [],
|
|
132
|
+
'endpoint_path': '/rest/2.0/xpan/multimedia?method=filemetas&openapi=xpansdk',
|
|
133
|
+
'operation_id': 'xpanmultimediafilemetas',
|
|
134
|
+
'http_method': 'GET',
|
|
135
|
+
'servers': [
|
|
136
|
+
{
|
|
137
|
+
'url': "https://pan.baidu.com",
|
|
138
|
+
'description': "No description provided",
|
|
139
|
+
},
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
params_map={
|
|
143
|
+
'all': [
|
|
144
|
+
'access_token',
|
|
145
|
+
'fsids',
|
|
146
|
+
'thumb',
|
|
147
|
+
'extra',
|
|
148
|
+
'dlink',
|
|
149
|
+
'path',
|
|
150
|
+
'needmedia',
|
|
151
|
+
],
|
|
152
|
+
'required': [
|
|
153
|
+
'access_token',
|
|
154
|
+
'fsids',
|
|
155
|
+
],
|
|
156
|
+
'nullable': [
|
|
157
|
+
],
|
|
158
|
+
'enum': [
|
|
159
|
+
],
|
|
160
|
+
'validation': [
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
root_map={
|
|
164
|
+
'validations': {
|
|
165
|
+
},
|
|
166
|
+
'allowed_values': {
|
|
167
|
+
},
|
|
168
|
+
'openapi_types': {
|
|
169
|
+
'access_token':
|
|
170
|
+
(str,),
|
|
171
|
+
'fsids':
|
|
172
|
+
(str,),
|
|
173
|
+
'thumb':
|
|
174
|
+
(str,),
|
|
175
|
+
'extra':
|
|
176
|
+
(str,),
|
|
177
|
+
'dlink':
|
|
178
|
+
(str,),
|
|
179
|
+
'path':
|
|
180
|
+
(str,),
|
|
181
|
+
'needmedia':
|
|
182
|
+
(int,),
|
|
183
|
+
},
|
|
184
|
+
'attribute_map': {
|
|
185
|
+
'access_token': 'access_token',
|
|
186
|
+
'fsids': 'fsids',
|
|
187
|
+
'thumb': 'thumb',
|
|
188
|
+
'extra': 'extra',
|
|
189
|
+
'dlink': 'dlink',
|
|
190
|
+
'path': 'path',
|
|
191
|
+
'needmedia': 'needmedia',
|
|
192
|
+
},
|
|
193
|
+
'location_map': {
|
|
194
|
+
'access_token': 'query',
|
|
195
|
+
'fsids': 'query',
|
|
196
|
+
'thumb': 'query',
|
|
197
|
+
'extra': 'query',
|
|
198
|
+
'dlink': 'query',
|
|
199
|
+
'path': 'query',
|
|
200
|
+
'needmedia': 'query',
|
|
201
|
+
},
|
|
202
|
+
'collection_format_map': {
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
headers_map={
|
|
206
|
+
'accept': [
|
|
207
|
+
'application/json; UTF-8'
|
|
208
|
+
],
|
|
209
|
+
'content_type': [],
|
|
210
|
+
},
|
|
211
|
+
api_client=api_client
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
def xpanfilelistall(
|
|
215
|
+
self,
|
|
216
|
+
access_token,
|
|
217
|
+
path,
|
|
218
|
+
recursion,
|
|
219
|
+
**kwargs
|
|
220
|
+
):
|
|
221
|
+
"""xpanfilelistall # noqa: E501
|
|
222
|
+
|
|
223
|
+
listall # noqa: E501
|
|
224
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
+
asynchronous HTTP request, please pass async_req=True
|
|
226
|
+
|
|
227
|
+
>>> thread = api.xpanfilelistall(access_token, path, recursion, async_req=True)
|
|
228
|
+
>>> result = thread.get()
|
|
229
|
+
|
|
230
|
+
Args:
|
|
231
|
+
access_token (str):
|
|
232
|
+
path (str):
|
|
233
|
+
recursion (int):
|
|
234
|
+
|
|
235
|
+
Keyword Args:
|
|
236
|
+
web (str): [optional]
|
|
237
|
+
start (int): [optional]
|
|
238
|
+
limit (int): [optional]
|
|
239
|
+
order (str): [optional]
|
|
240
|
+
desc (int): [optional]
|
|
241
|
+
_return_http_data_only (bool): response data without head status
|
|
242
|
+
code and headers. Default is True.
|
|
243
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
244
|
+
will be returned without reading/decoding response data.
|
|
245
|
+
Default is True.
|
|
246
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
247
|
+
one number provided, it will be total request timeout. It can also
|
|
248
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
249
|
+
Default is None.
|
|
250
|
+
_check_input_type (bool): specifies if type checking
|
|
251
|
+
should be done one the data sent to the server.
|
|
252
|
+
Default is True.
|
|
253
|
+
_check_return_type (bool): specifies if type checking
|
|
254
|
+
should be done one the data received from the server.
|
|
255
|
+
Default is True.
|
|
256
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
257
|
+
are serialized names, as specified in the OpenAPI document.
|
|
258
|
+
False if the variable names in the input data
|
|
259
|
+
are pythonic names, e.g. snake case (default)
|
|
260
|
+
_content_type (str/None): force body content-type.
|
|
261
|
+
Default is None and content-type will be predicted by allowed
|
|
262
|
+
content-types and body.
|
|
263
|
+
_host_index (int/None): specifies the index of the server
|
|
264
|
+
that we want to use.
|
|
265
|
+
Default is read from the configuration.
|
|
266
|
+
async_req (bool): execute request asynchronously
|
|
267
|
+
|
|
268
|
+
Returns:
|
|
269
|
+
str
|
|
270
|
+
If the method is called asynchronously, returns the request
|
|
271
|
+
thread.
|
|
272
|
+
"""
|
|
273
|
+
kwargs['async_req'] = kwargs.get(
|
|
274
|
+
'async_req', False
|
|
275
|
+
)
|
|
276
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
277
|
+
'_return_http_data_only', True
|
|
278
|
+
)
|
|
279
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
280
|
+
'_preload_content', True
|
|
281
|
+
)
|
|
282
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
283
|
+
'_request_timeout', None
|
|
284
|
+
)
|
|
285
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
286
|
+
'_check_input_type', True
|
|
287
|
+
)
|
|
288
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
289
|
+
'_check_return_type', True
|
|
290
|
+
)
|
|
291
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
292
|
+
'_spec_property_naming', False
|
|
293
|
+
)
|
|
294
|
+
kwargs['_content_type'] = kwargs.get(
|
|
295
|
+
'_content_type')
|
|
296
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
297
|
+
kwargs['access_token'] = \
|
|
298
|
+
access_token
|
|
299
|
+
kwargs['path'] = \
|
|
300
|
+
path
|
|
301
|
+
kwargs['recursion'] = \
|
|
302
|
+
recursion
|
|
303
|
+
return self.xpanfilelistall_endpoint.call_with_http_info(**kwargs)
|
|
304
|
+
|
|
305
|
+
def xpanmultimediafilemetas(
|
|
306
|
+
self,
|
|
307
|
+
access_token,
|
|
308
|
+
fsids,
|
|
309
|
+
**kwargs
|
|
310
|
+
):
|
|
311
|
+
"""xpanmultimediafilemetas # noqa: E501
|
|
312
|
+
|
|
313
|
+
multimedia filemetas # noqa: E501
|
|
314
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
315
|
+
asynchronous HTTP request, please pass async_req=True
|
|
316
|
+
|
|
317
|
+
>>> thread = api.xpanmultimediafilemetas(access_token, fsids, async_req=True)
|
|
318
|
+
>>> result = thread.get()
|
|
319
|
+
|
|
320
|
+
Args:
|
|
321
|
+
access_token (str):
|
|
322
|
+
fsids (str):
|
|
323
|
+
|
|
324
|
+
Keyword Args:
|
|
325
|
+
thumb (str): [optional]
|
|
326
|
+
extra (str): [optional]
|
|
327
|
+
dlink (str): 下载地址。下载接口需要用到dlink。. [optional]
|
|
328
|
+
path (str): 查询共享目录或专属空间内文件时需要。共享目录格式: /uk-fsid(其中uk为共享目录创建者id, fsid对应共享目录的fsid)。专属空间格式:/_pcs_.appdata/xpan/。. [optional]
|
|
329
|
+
needmedia (int): [optional]
|
|
330
|
+
_return_http_data_only (bool): response data without head status
|
|
331
|
+
code and headers. Default is True.
|
|
332
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
333
|
+
will be returned without reading/decoding response data.
|
|
334
|
+
Default is True.
|
|
335
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
336
|
+
one number provided, it will be total request timeout. It can also
|
|
337
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
338
|
+
Default is None.
|
|
339
|
+
_check_input_type (bool): specifies if type checking
|
|
340
|
+
should be done one the data sent to the server.
|
|
341
|
+
Default is True.
|
|
342
|
+
_check_return_type (bool): specifies if type checking
|
|
343
|
+
should be done one the data received from the server.
|
|
344
|
+
Default is True.
|
|
345
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
346
|
+
are serialized names, as specified in the OpenAPI document.
|
|
347
|
+
False if the variable names in the input data
|
|
348
|
+
are pythonic names, e.g. snake case (default)
|
|
349
|
+
_content_type (str/None): force body content-type.
|
|
350
|
+
Default is None and content-type will be predicted by allowed
|
|
351
|
+
content-types and body.
|
|
352
|
+
_host_index (int/None): specifies the index of the server
|
|
353
|
+
that we want to use.
|
|
354
|
+
Default is read from the configuration.
|
|
355
|
+
async_req (bool): execute request asynchronously
|
|
356
|
+
|
|
357
|
+
Returns:
|
|
358
|
+
str
|
|
359
|
+
If the method is called asynchronously, returns the request
|
|
360
|
+
thread.
|
|
361
|
+
"""
|
|
362
|
+
kwargs['async_req'] = kwargs.get(
|
|
363
|
+
'async_req', False
|
|
364
|
+
)
|
|
365
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
366
|
+
'_return_http_data_only', True
|
|
367
|
+
)
|
|
368
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
369
|
+
'_preload_content', True
|
|
370
|
+
)
|
|
371
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
372
|
+
'_request_timeout', None
|
|
373
|
+
)
|
|
374
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
375
|
+
'_check_input_type', True
|
|
376
|
+
)
|
|
377
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
378
|
+
'_check_return_type', True
|
|
379
|
+
)
|
|
380
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
381
|
+
'_spec_property_naming', False
|
|
382
|
+
)
|
|
383
|
+
kwargs['_content_type'] = kwargs.get(
|
|
384
|
+
'_content_type')
|
|
385
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
386
|
+
kwargs['access_token'] = \
|
|
387
|
+
access_token
|
|
388
|
+
kwargs['fsids'] = \
|
|
389
|
+
fsids
|
|
390
|
+
return self.xpanmultimediafilemetas_endpoint.call_with_http_info(**kwargs)
|
|
391
|
+
|
|
@@ -0,0 +1,315 @@
|
|
|
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
|
+
from bdpan_cli._vendor.openapi_client.model.quotaresponse import Quotaresponse
|
|
25
|
+
from bdpan_cli._vendor.openapi_client.model.uinforesponse import Uinforesponse
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class UserinfoApi(object):
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None):
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
self.apiquota_endpoint = _Endpoint(
|
|
40
|
+
settings={
|
|
41
|
+
'response_type': (Quotaresponse,),
|
|
42
|
+
'auth': [],
|
|
43
|
+
'endpoint_path': '/api/quota?openapi=xpansdk',
|
|
44
|
+
'operation_id': 'apiquota',
|
|
45
|
+
'http_method': 'GET',
|
|
46
|
+
'servers': [
|
|
47
|
+
{
|
|
48
|
+
'url': "https://pan.baidu.com",
|
|
49
|
+
'description': "No description provided",
|
|
50
|
+
},
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
params_map={
|
|
54
|
+
'all': [
|
|
55
|
+
'access_token',
|
|
56
|
+
'checkexpire',
|
|
57
|
+
'checkfree',
|
|
58
|
+
],
|
|
59
|
+
'required': [
|
|
60
|
+
'access_token',
|
|
61
|
+
],
|
|
62
|
+
'nullable': [
|
|
63
|
+
],
|
|
64
|
+
'enum': [
|
|
65
|
+
],
|
|
66
|
+
'validation': [
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
root_map={
|
|
70
|
+
'validations': {
|
|
71
|
+
},
|
|
72
|
+
'allowed_values': {
|
|
73
|
+
},
|
|
74
|
+
'openapi_types': {
|
|
75
|
+
'access_token':
|
|
76
|
+
(str,),
|
|
77
|
+
'checkexpire':
|
|
78
|
+
(int,),
|
|
79
|
+
'checkfree':
|
|
80
|
+
(int,),
|
|
81
|
+
},
|
|
82
|
+
'attribute_map': {
|
|
83
|
+
'access_token': 'access_token',
|
|
84
|
+
'checkexpire': 'checkexpire',
|
|
85
|
+
'checkfree': 'checkfree',
|
|
86
|
+
},
|
|
87
|
+
'location_map': {
|
|
88
|
+
'access_token': 'query',
|
|
89
|
+
'checkexpire': 'query',
|
|
90
|
+
'checkfree': 'query',
|
|
91
|
+
},
|
|
92
|
+
'collection_format_map': {
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
headers_map={
|
|
96
|
+
'accept': [
|
|
97
|
+
'application/json; charset=UTF-8'
|
|
98
|
+
],
|
|
99
|
+
'content_type': [],
|
|
100
|
+
},
|
|
101
|
+
api_client=api_client
|
|
102
|
+
)
|
|
103
|
+
self.xpannasuinfo_endpoint = _Endpoint(
|
|
104
|
+
settings={
|
|
105
|
+
'response_type': (Uinforesponse,),
|
|
106
|
+
'auth': [],
|
|
107
|
+
'endpoint_path': '/rest/2.0/xpan/nas?method=uinfo&openapi=xpansdk',
|
|
108
|
+
'operation_id': 'xpannasuinfo',
|
|
109
|
+
'http_method': 'GET',
|
|
110
|
+
'servers': [
|
|
111
|
+
{
|
|
112
|
+
'url': "https://pan.baidu.com",
|
|
113
|
+
'description': "No description provided",
|
|
114
|
+
},
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
params_map={
|
|
118
|
+
'all': [
|
|
119
|
+
'access_token',
|
|
120
|
+
],
|
|
121
|
+
'required': [
|
|
122
|
+
'access_token',
|
|
123
|
+
],
|
|
124
|
+
'nullable': [
|
|
125
|
+
],
|
|
126
|
+
'enum': [
|
|
127
|
+
],
|
|
128
|
+
'validation': [
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
root_map={
|
|
132
|
+
'validations': {
|
|
133
|
+
},
|
|
134
|
+
'allowed_values': {
|
|
135
|
+
},
|
|
136
|
+
'openapi_types': {
|
|
137
|
+
'access_token':
|
|
138
|
+
(str,),
|
|
139
|
+
},
|
|
140
|
+
'attribute_map': {
|
|
141
|
+
'access_token': 'access_token',
|
|
142
|
+
},
|
|
143
|
+
'location_map': {
|
|
144
|
+
'access_token': 'query',
|
|
145
|
+
},
|
|
146
|
+
'collection_format_map': {
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
headers_map={
|
|
150
|
+
'accept': [
|
|
151
|
+
'application/json; charset=UTF-8'
|
|
152
|
+
],
|
|
153
|
+
'content_type': [],
|
|
154
|
+
},
|
|
155
|
+
api_client=api_client
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
def apiquota(
|
|
159
|
+
self,
|
|
160
|
+
access_token,
|
|
161
|
+
**kwargs
|
|
162
|
+
):
|
|
163
|
+
"""apiquota # noqa: E501
|
|
164
|
+
|
|
165
|
+
api quota # noqa: E501
|
|
166
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
167
|
+
asynchronous HTTP request, please pass async_req=True
|
|
168
|
+
|
|
169
|
+
>>> thread = api.apiquota(access_token, async_req=True)
|
|
170
|
+
>>> result = thread.get()
|
|
171
|
+
|
|
172
|
+
Args:
|
|
173
|
+
access_token (str):
|
|
174
|
+
|
|
175
|
+
Keyword Args:
|
|
176
|
+
checkexpire (int): [optional]
|
|
177
|
+
checkfree (int): [optional]
|
|
178
|
+
_return_http_data_only (bool): response data without head status
|
|
179
|
+
code and headers. Default is True.
|
|
180
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
181
|
+
will be returned without reading/decoding response data.
|
|
182
|
+
Default is True.
|
|
183
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
184
|
+
one number provided, it will be total request timeout. It can also
|
|
185
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
186
|
+
Default is None.
|
|
187
|
+
_check_input_type (bool): specifies if type checking
|
|
188
|
+
should be done one the data sent to the server.
|
|
189
|
+
Default is True.
|
|
190
|
+
_check_return_type (bool): specifies if type checking
|
|
191
|
+
should be done one the data received from the server.
|
|
192
|
+
Default is True.
|
|
193
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
194
|
+
are serialized names, as specified in the OpenAPI document.
|
|
195
|
+
False if the variable names in the input data
|
|
196
|
+
are pythonic names, e.g. snake case (default)
|
|
197
|
+
_content_type (str/None): force body content-type.
|
|
198
|
+
Default is None and content-type will be predicted by allowed
|
|
199
|
+
content-types and body.
|
|
200
|
+
_host_index (int/None): specifies the index of the server
|
|
201
|
+
that we want to use.
|
|
202
|
+
Default is read from the configuration.
|
|
203
|
+
async_req (bool): execute request asynchronously
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
Quotaresponse
|
|
207
|
+
If the method is called asynchronously, returns the request
|
|
208
|
+
thread.
|
|
209
|
+
"""
|
|
210
|
+
kwargs['async_req'] = kwargs.get(
|
|
211
|
+
'async_req', False
|
|
212
|
+
)
|
|
213
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
214
|
+
'_return_http_data_only', True
|
|
215
|
+
)
|
|
216
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
217
|
+
'_preload_content', True
|
|
218
|
+
)
|
|
219
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
220
|
+
'_request_timeout', None
|
|
221
|
+
)
|
|
222
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
223
|
+
'_check_input_type', True
|
|
224
|
+
)
|
|
225
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
226
|
+
'_check_return_type', True
|
|
227
|
+
)
|
|
228
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
229
|
+
'_spec_property_naming', False
|
|
230
|
+
)
|
|
231
|
+
kwargs['_content_type'] = kwargs.get(
|
|
232
|
+
'_content_type')
|
|
233
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
234
|
+
kwargs['access_token'] = \
|
|
235
|
+
access_token
|
|
236
|
+
return self.apiquota_endpoint.call_with_http_info(**kwargs)
|
|
237
|
+
|
|
238
|
+
def xpannasuinfo(
|
|
239
|
+
self,
|
|
240
|
+
access_token,
|
|
241
|
+
**kwargs
|
|
242
|
+
):
|
|
243
|
+
"""xpannasuinfo # noqa: E501
|
|
244
|
+
|
|
245
|
+
user info # noqa: E501
|
|
246
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
247
|
+
asynchronous HTTP request, please pass async_req=True
|
|
248
|
+
|
|
249
|
+
>>> thread = api.xpannasuinfo(access_token, async_req=True)
|
|
250
|
+
>>> result = thread.get()
|
|
251
|
+
|
|
252
|
+
Args:
|
|
253
|
+
access_token (str):
|
|
254
|
+
|
|
255
|
+
Keyword Args:
|
|
256
|
+
_return_http_data_only (bool): response data without head status
|
|
257
|
+
code and headers. Default is True.
|
|
258
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
259
|
+
will be returned without reading/decoding response data.
|
|
260
|
+
Default is True.
|
|
261
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
262
|
+
one number provided, it will be total request timeout. It can also
|
|
263
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
264
|
+
Default is None.
|
|
265
|
+
_check_input_type (bool): specifies if type checking
|
|
266
|
+
should be done one the data sent to the server.
|
|
267
|
+
Default is True.
|
|
268
|
+
_check_return_type (bool): specifies if type checking
|
|
269
|
+
should be done one the data received from the server.
|
|
270
|
+
Default is True.
|
|
271
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
272
|
+
are serialized names, as specified in the OpenAPI document.
|
|
273
|
+
False if the variable names in the input data
|
|
274
|
+
are pythonic names, e.g. snake case (default)
|
|
275
|
+
_content_type (str/None): force body content-type.
|
|
276
|
+
Default is None and content-type will be predicted by allowed
|
|
277
|
+
content-types and body.
|
|
278
|
+
_host_index (int/None): specifies the index of the server
|
|
279
|
+
that we want to use.
|
|
280
|
+
Default is read from the configuration.
|
|
281
|
+
async_req (bool): execute request asynchronously
|
|
282
|
+
|
|
283
|
+
Returns:
|
|
284
|
+
Uinforesponse
|
|
285
|
+
If the method is called asynchronously, returns the request
|
|
286
|
+
thread.
|
|
287
|
+
"""
|
|
288
|
+
kwargs['async_req'] = kwargs.get(
|
|
289
|
+
'async_req', False
|
|
290
|
+
)
|
|
291
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
292
|
+
'_return_http_data_only', True
|
|
293
|
+
)
|
|
294
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
295
|
+
'_preload_content', True
|
|
296
|
+
)
|
|
297
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
298
|
+
'_request_timeout', None
|
|
299
|
+
)
|
|
300
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
301
|
+
'_check_input_type', True
|
|
302
|
+
)
|
|
303
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
304
|
+
'_check_return_type', True
|
|
305
|
+
)
|
|
306
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
307
|
+
'_spec_property_naming', False
|
|
308
|
+
)
|
|
309
|
+
kwargs['_content_type'] = kwargs.get(
|
|
310
|
+
'_content_type')
|
|
311
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
312
|
+
kwargs['access_token'] = \
|
|
313
|
+
access_token
|
|
314
|
+
return self.xpannasuinfo_endpoint.call_with_http_info(**kwargs)
|
|
315
|
+
|