Total Complexity | 0 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | # api.py |
||
|
|||
2 | # BackBlaze API endpoints |
||
3 | |||
4 | 1 | API_VERSION = '/b2api/v2' |
|
5 | 1 | BASE_URL = 'https://api.backblazeb2.com' + API_VERSION |
|
6 | |||
7 | |||
8 | 1 | class API(): |
|
9 | 1 | authorize = '/b2_authorize_account' |
|
10 | 1 | delete_file = '/b2_hide_file' |
|
11 | 1 | delete_file_version = '/b2_delete_file_version' |
|
12 | 1 | file_info = '/b2_get_file_info' |
|
13 | 1 | download_file_by_id = '/b2_download_file_by_id' |
|
14 | 1 | list_all_files = '/b2_list_file_names' |
|
15 | 1 | list_file_versions = '/b2_list_file_versions' |
|
16 | 1 | upload_url = '/b2_get_upload_url' |
|
17 | 1 | upload_large = '/b2_start_large_file' |
|
18 | 1 | upload_large_part = '/b2_get_upload_part_url' |
|
19 | 1 | upload_large_finish = '/b2_finish_large_file' |
|
20 | 1 | create_bucket = '/b2_create_bucket' |
|
21 | delete_bucket = '/b2_delete_bucket' |
||
22 | list_all_buckets = '/b2_list_buckets' |
||
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.