tamar-file-hub-client 0.1.4__tar.gz → 0.1.5__tar.gz
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.
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/PKG-INFO +17 -2
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/README.md +16 -1
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/gen/file_service_pb2.py +30 -30
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/interceptors.py +578 -580
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/protos/file_service.proto +2 -1
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/schemas/file.py +171 -170
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/file/async_blob_service.py +1 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/file/sync_blob_service.py +1 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/logging.py +335 -318
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/setup.py +1 -1
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/tamar_file_hub_client.egg-info/PKG-INFO +17 -2
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/MANIFEST.in +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/client.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/enums/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/enums/export_format.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/enums/role.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/enums/upload_mode.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/errors/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/errors/exceptions.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/py.typed +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/async_client.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/gen/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/gen/file_service_pb2_grpc.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/gen/folder_service_pb2.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/gen/folder_service_pb2_grpc.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/gen/taple_service_pb2.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/gen/taple_service_pb2_grpc.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/protos/folder_service.proto +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/protos/taple_service.proto +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/rpc/sync_client.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/schemas/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/schemas/context.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/schemas/folder.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/schemas/taple.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/file/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/file/async_file_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/file/base_file_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/file/sync_file_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/folder/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/folder/async_folder_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/folder/sync_folder_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/taple/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/taple/async_taple_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/taple/base_taple_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/taple/idempotent_taple_mixin.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/services/taple/sync_taple_service.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/__init__.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/converter.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/download_helper.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/file_utils.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/idempotency.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/ip_detector.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/retry.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/smart_retry.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/file_hub_client/utils/upload_helper.py +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/setup.cfg +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/tamar_file_hub_client.egg-info/SOURCES.txt +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/tamar_file_hub_client.egg-info/dependency_links.txt +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/tamar_file_hub_client.egg-info/requires.txt +0 -0
- {tamar_file_hub_client-0.1.4 → tamar_file_hub_client-0.1.5}/tamar_file_hub_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tamar-file-hub-client
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.5
|
4
4
|
Summary: A Python SDK for gRPC-based file management system
|
5
5
|
Home-page: https://github.com/Tamar-Edge-AI/file-hub-client
|
6
6
|
Author: Oscar Ou
|
@@ -743,7 +743,14 @@ async with AsyncTamarFileHubClient() as client:
|
|
743
743
|
if url_info.error:
|
744
744
|
print(f"文件 {url_info.file_id} 生成URL失败: {url_info.error}")
|
745
745
|
else:
|
746
|
-
print(f"文件 {url_info.file_id}
|
746
|
+
print(f"文件 {url_info.file_id}:")
|
747
|
+
print(f" 下载URL: {url_info.url}")
|
748
|
+
print(f" MIME类型: {url_info.mime_type}")
|
749
|
+
# 根据MIME类型处理文件
|
750
|
+
if url_info.mime_type.startswith('image/'):
|
751
|
+
print(f" 这是一个图片文件")
|
752
|
+
elif url_info.mime_type == 'application/pdf':
|
753
|
+
print(f" 这是一个PDF文件")
|
747
754
|
```
|
748
755
|
|
749
756
|
同步客户端示例:
|
@@ -760,6 +767,12 @@ with TamarFileHubClient() as client:
|
|
760
767
|
)
|
761
768
|
```
|
762
769
|
|
770
|
+
**注意**:`batch_generate_download_url` 方法返回一个 `BatchDownloadUrlResponse` 对象,其中 `download_urls` 字段包含 `DownloadUrlInfo` 对象列表,每个对象包含:
|
771
|
+
- `file_id`: 文件ID
|
772
|
+
- `url`: 下载URL(如果成功生成)
|
773
|
+
- `mime_type`: 文件的MIME类型,便于正确处理文件内容
|
774
|
+
- `error`: 错误信息(如果生成失败)
|
775
|
+
|
763
776
|
##### 获取GCS URL
|
764
777
|
|
765
778
|
对于需要直接访问Google Cloud Storage的场景,可以获取文件的GCS URL和MIME类型信息:
|
@@ -2338,6 +2351,8 @@ MIT License
|
|
2338
2351
|
### v0.0.5 (2025-01)
|
2339
2352
|
- 新增批量下载URL生成接口 (batch_generate_download_url)
|
2340
2353
|
- 新增GCS URL获取接口 (get_gcs_url, batch_get_gcs_url)
|
2354
|
+
- **重要更新**: 批量下载URL接口 (BatchGenerateDownloadUrl) 现在返回MIME类型信息
|
2355
|
+
- **重要更新**: DownloadUrlInfo 结构新增 mime_type 字段,便于文件类型识别
|
2341
2356
|
- GCS URL接口返回MIME类型信息,便于文件类型识别
|
2342
2357
|
- 新增 keep_original_filename 参数支持保留原始文件名
|
2343
2358
|
- 更新相关文档和测试用例
|
@@ -697,7 +697,14 @@ async with AsyncTamarFileHubClient() as client:
|
|
697
697
|
if url_info.error:
|
698
698
|
print(f"文件 {url_info.file_id} 生成URL失败: {url_info.error}")
|
699
699
|
else:
|
700
|
-
print(f"文件 {url_info.file_id}
|
700
|
+
print(f"文件 {url_info.file_id}:")
|
701
|
+
print(f" 下载URL: {url_info.url}")
|
702
|
+
print(f" MIME类型: {url_info.mime_type}")
|
703
|
+
# 根据MIME类型处理文件
|
704
|
+
if url_info.mime_type.startswith('image/'):
|
705
|
+
print(f" 这是一个图片文件")
|
706
|
+
elif url_info.mime_type == 'application/pdf':
|
707
|
+
print(f" 这是一个PDF文件")
|
701
708
|
```
|
702
709
|
|
703
710
|
同步客户端示例:
|
@@ -714,6 +721,12 @@ with TamarFileHubClient() as client:
|
|
714
721
|
)
|
715
722
|
```
|
716
723
|
|
724
|
+
**注意**:`batch_generate_download_url` 方法返回一个 `BatchDownloadUrlResponse` 对象,其中 `download_urls` 字段包含 `DownloadUrlInfo` 对象列表,每个对象包含:
|
725
|
+
- `file_id`: 文件ID
|
726
|
+
- `url`: 下载URL(如果成功生成)
|
727
|
+
- `mime_type`: 文件的MIME类型,便于正确处理文件内容
|
728
|
+
- `error`: 错误信息(如果生成失败)
|
729
|
+
|
717
730
|
##### 获取GCS URL
|
718
731
|
|
719
732
|
对于需要直接访问Google Cloud Storage的场景,可以获取文件的GCS URL和MIME类型信息:
|
@@ -2292,6 +2305,8 @@ MIT License
|
|
2292
2305
|
### v0.0.5 (2025-01)
|
2293
2306
|
- 新增批量下载URL生成接口 (batch_generate_download_url)
|
2294
2307
|
- 新增GCS URL获取接口 (get_gcs_url, batch_get_gcs_url)
|
2308
|
+
- **重要更新**: 批量下载URL接口 (BatchGenerateDownloadUrl) 现在返回MIME类型信息
|
2309
|
+
- **重要更新**: DownloadUrlInfo 结构新增 mime_type 字段,便于文件类型识别
|
2295
2310
|
- GCS URL接口返回MIME类型信息,便于文件类型识别
|
2296
2311
|
- 新增 keep_original_filename 参数支持保留原始文件名
|
2297
2312
|
- 更新相关文档和测试用例
|
@@ -26,7 +26,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
26
26
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
27
27
|
|
28
28
|
|
29
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x66ile_service.proto\x12\x04\x66ile\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xab\x01\n\x04\x46ile\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12\x11\n\tfile_type\x18\x04 \x01(\t\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb7\x02\n\nUploadFile\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0f\n\x07\x66ile_id\x18\x03 \x01(\t\x12\x14\n\x0cstorage_type\x18\x04 \x01(\t\x12\x13\n\x0bstored_name\x18\x05 \x01(\t\x12\x13\n\x0bstored_path\x18\x06 \x01(\t\x12\x11\n\tfile_name\x18\x07 \x01(\t\x12\x11\n\tfile_size\x18\x08 \x01(\x03\x12\x10\n\x08\x66ile_ext\x18\t \x01(\t\x12\x11\n\tmime_type\x18\n \x01(\t\x12\x0e\n\x06status\x18\x0b \x01(\t\x12.\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9f\x02\n\x11UploadFileRequest\x12\x16\n\tfolder_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tfile_type\x18\x04 \x01(\t\x12\x11\n\tmime_type\x18\x05 \x01(\t\x12\x19\n\x0cis_temporary\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x07 \x01(\x05H\x02\x88\x01\x01\x12#\n\x16keep_original_filename\x18\x08 \x01(\x08H\x03\x88\x01\x01\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_secondsB\x19\n\x17_keep_original_filename\"\xb3\x02\n\x10UploadUrlRequest\x12\x16\n\tfolder_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x11\n\tfile_type\x18\x03 \x01(\t\x12\x11\n\tmime_type\x18\x04 \x01(\t\x12\x11\n\tfile_size\x18\x05 \x01(\x03\x12\x11\n\tfile_hash\x18\x06 \x01(\t\x12\x19\n\x0cis_temporary\x18\x07 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x08 \x01(\x05H\x02\x88\x01\x01\x12#\n\x16keep_original_filename\x18\t \x01(\x08H\x03\x88\x01\x01\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_secondsB\x19\n\x17_keep_original_filename\")\n\x16UploadCompletedRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"u\n\x12\x44ownloadUrlRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x13\n\x06is_cdn\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\t\n\x07_is_cdnB\x11\n\x0f_expire_seconds\"\xd4\x01\n\x10ShareLinkRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x11\n\tis_public\x18\x02 \x01(\x08\x12\x14\n\x0c\x61\x63\x63\x65ss_scope\x18\x03 \x01(\t\x12\x1b\n\x0e\x65xpire_seconds\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x17\n\nmax_access\x18\x05 \x01(\x05H\x01\x88\x01\x01\x12\x1b\n\x0eshare_password\x18\x06 \x01(\tH\x02\x88\x01\x01\x42\x11\n\x0f_expire_secondsB\r\n\x0b_max_accessB\x11\n\x0f_share_password\"\x82\x01\n\x10\x46ileVisitRequest\x12\x15\n\rfile_share_id\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63\x63\x65ss_type\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65ss_duration\x18\x03 \x01(\x05\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"!\n\x0eGetFileRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"6\n\x11RenameFileRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x10\n\x08new_name\x18\x02 \x01(\t\"$\n\x11\x44\x65leteFileRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"\x8d\x02\n\x10ListFilesRequest\x12\x16\n\tfolder_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tfile_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x11\n\tfile_type\x18\x03 \x03(\t\x12\x1c\n\x0f\x63reated_by_role\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x17\n\ncreated_by\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05H\x04\x88\x01\x01\x12\x11\n\x04page\x18\x07 \x01(\x05H\x05\x88\x01\x01\x42\x0c\n\n_folder_idB\x0c\n\n_file_nameB\x12\n\x10_created_by_roleB\r\n\x0b_created_byB\x0c\n\n_page_sizeB\x07\n\x05_page\"{\n\x17\x42\x61tchDownloadUrlRequest\x12\x10\n\x08\x66ile_ids\x18\x01 \x03(\t\x12\x13\n\x06is_cdn\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x03 \x01(\x05H\x01\x88\x01\x01\x42\t\n\x07_is_cdnB\x11\n\x0f_expire_seconds\"#\n\x10GetGcsUrlRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\")\n\x15\x42\x61tchGetGcsUrlRequest\x12\x10\n\x08\x66ile_ids\x18\x01 \x03(\t\"U\n\x12UploadFileResponse\x12\x18\n\x04\x66ile\x18\x01 \x01(\x0b\x32\n.file.File\x12%\n\x0bupload_file\x18\x02 \x01(\x0b\x32\x10.file.UploadFile\"a\n\x11UploadUrlResponse\x12\x18\n\x04\x66ile\x18\x01 \x01(\x0b\x32\n.file.File\x12%\n\x0bupload_file\x18\x02 \x01(\x0b\x32\x10.file.UploadFile\x12\x0b\n\x03url\x18\x03 \x01(\t\"\"\n\x13\x44ownloadUrlResponse\x12\x0b\n\x03url\x18\x01 \x01(\t\"*\n\x11ShareLinkResponse\x12\x15\n\rfile_share_id\x18\x01 \x01(\t\"-\n\x10\x46ileListResponse\x12\x19\n\x05\x66iles\x18\x01 \x03(\x0b\x32\n.file.File\"g\n\x0fGetFileResponse\x12\x18\n\x04\x66ile\x18\x01 \x01(\x0b\x32\n.file.File\x12*\n\x0bupload_file\x18\x02 \x01(\x0b\x32\x10.file.UploadFileH\x00\x88\x01\x01\x42\x0e\n\x0c_upload_file\"H\n\x18\x42\x61tchDownloadUrlResponse\x12,\n\rdownload_urls\x18\x01 \x03(\x0b\x32\x15.file.DownloadUrlInfo\"
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x66ile_service.proto\x12\x04\x66ile\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xab\x01\n\x04\x46ile\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12\x11\n\tfile_type\x18\x04 \x01(\t\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb7\x02\n\nUploadFile\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0f\n\x07\x66ile_id\x18\x03 \x01(\t\x12\x14\n\x0cstorage_type\x18\x04 \x01(\t\x12\x13\n\x0bstored_name\x18\x05 \x01(\t\x12\x13\n\x0bstored_path\x18\x06 \x01(\t\x12\x11\n\tfile_name\x18\x07 \x01(\t\x12\x11\n\tfile_size\x18\x08 \x01(\x03\x12\x10\n\x08\x66ile_ext\x18\t \x01(\t\x12\x11\n\tmime_type\x18\n \x01(\t\x12\x0e\n\x06status\x18\x0b \x01(\t\x12.\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9f\x02\n\x11UploadFileRequest\x12\x16\n\tfolder_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tfile_type\x18\x04 \x01(\t\x12\x11\n\tmime_type\x18\x05 \x01(\t\x12\x19\n\x0cis_temporary\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x07 \x01(\x05H\x02\x88\x01\x01\x12#\n\x16keep_original_filename\x18\x08 \x01(\x08H\x03\x88\x01\x01\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_secondsB\x19\n\x17_keep_original_filename\"\xb3\x02\n\x10UploadUrlRequest\x12\x16\n\tfolder_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x11\n\tfile_type\x18\x03 \x01(\t\x12\x11\n\tmime_type\x18\x04 \x01(\t\x12\x11\n\tfile_size\x18\x05 \x01(\x03\x12\x11\n\tfile_hash\x18\x06 \x01(\t\x12\x19\n\x0cis_temporary\x18\x07 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x08 \x01(\x05H\x02\x88\x01\x01\x12#\n\x16keep_original_filename\x18\t \x01(\x08H\x03\x88\x01\x01\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_secondsB\x19\n\x17_keep_original_filename\")\n\x16UploadCompletedRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"u\n\x12\x44ownloadUrlRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x13\n\x06is_cdn\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\t\n\x07_is_cdnB\x11\n\x0f_expire_seconds\"\xd4\x01\n\x10ShareLinkRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x11\n\tis_public\x18\x02 \x01(\x08\x12\x14\n\x0c\x61\x63\x63\x65ss_scope\x18\x03 \x01(\t\x12\x1b\n\x0e\x65xpire_seconds\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x17\n\nmax_access\x18\x05 \x01(\x05H\x01\x88\x01\x01\x12\x1b\n\x0eshare_password\x18\x06 \x01(\tH\x02\x88\x01\x01\x42\x11\n\x0f_expire_secondsB\r\n\x0b_max_accessB\x11\n\x0f_share_password\"\x82\x01\n\x10\x46ileVisitRequest\x12\x15\n\rfile_share_id\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63\x63\x65ss_type\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65ss_duration\x18\x03 \x01(\x05\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"!\n\x0eGetFileRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"6\n\x11RenameFileRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x10\n\x08new_name\x18\x02 \x01(\t\"$\n\x11\x44\x65leteFileRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"\x8d\x02\n\x10ListFilesRequest\x12\x16\n\tfolder_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tfile_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x11\n\tfile_type\x18\x03 \x03(\t\x12\x1c\n\x0f\x63reated_by_role\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x17\n\ncreated_by\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05H\x04\x88\x01\x01\x12\x11\n\x04page\x18\x07 \x01(\x05H\x05\x88\x01\x01\x42\x0c\n\n_folder_idB\x0c\n\n_file_nameB\x12\n\x10_created_by_roleB\r\n\x0b_created_byB\x0c\n\n_page_sizeB\x07\n\x05_page\"{\n\x17\x42\x61tchDownloadUrlRequest\x12\x10\n\x08\x66ile_ids\x18\x01 \x03(\t\x12\x13\n\x06is_cdn\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x1b\n\x0e\x65xpire_seconds\x18\x03 \x01(\x05H\x01\x88\x01\x01\x42\t\n\x07_is_cdnB\x11\n\x0f_expire_seconds\"#\n\x10GetGcsUrlRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\")\n\x15\x42\x61tchGetGcsUrlRequest\x12\x10\n\x08\x66ile_ids\x18\x01 \x03(\t\"U\n\x12UploadFileResponse\x12\x18\n\x04\x66ile\x18\x01 \x01(\x0b\x32\n.file.File\x12%\n\x0bupload_file\x18\x02 \x01(\x0b\x32\x10.file.UploadFile\"a\n\x11UploadUrlResponse\x12\x18\n\x04\x66ile\x18\x01 \x01(\x0b\x32\n.file.File\x12%\n\x0bupload_file\x18\x02 \x01(\x0b\x32\x10.file.UploadFile\x12\x0b\n\x03url\x18\x03 \x01(\t\"\"\n\x13\x44ownloadUrlResponse\x12\x0b\n\x03url\x18\x01 \x01(\t\"*\n\x11ShareLinkResponse\x12\x15\n\rfile_share_id\x18\x01 \x01(\t\"-\n\x10\x46ileListResponse\x12\x19\n\x05\x66iles\x18\x01 \x03(\x0b\x32\n.file.File\"g\n\x0fGetFileResponse\x12\x18\n\x04\x66ile\x18\x01 \x01(\x0b\x32\n.file.File\x12*\n\x0bupload_file\x18\x02 \x01(\x0b\x32\x10.file.UploadFileH\x00\x88\x01\x01\x42\x0e\n\x0c_upload_file\"H\n\x18\x42\x61tchDownloadUrlResponse\x12,\n\rdownload_urls\x18\x01 \x03(\x0b\x32\x15.file.DownloadUrlInfo\"`\n\x0f\x44ownloadUrlInfo\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x12\n\x05\x65rror\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"7\n\x11GetGcsUrlResponse\x12\x0f\n\x07gcs_url\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\"<\n\x16\x42\x61tchGetGcsUrlResponse\x12\"\n\x08gcs_urls\x18\x01 \x03(\x0b\x32\x10.file.GcsUrlInfo\"_\n\nGcsUrlInfo\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x0f\n\x07gcs_url\x18\x02 \x01(\t\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x12\n\x05\x65rror\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"+\n\x18\x43ompressionStatusRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"\x84\x01\n\x19\x43ompressionStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x1a\n\rerror_message\x18\x02 \x01(\tH\x00\x88\x01\x01\x12)\n\x08variants\x18\x03 \x03(\x0b\x32\x17.file.CompressedVariantB\x10\n\x0e_error_message\"Q\n\x12GetVariantsRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x19\n\x0cvariant_type\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_variant_type\"@\n\x13GetVariantsResponse\x12)\n\x08variants\x18\x01 \x03(\x0b\x32\x17.file.CompressedVariant\"\xc7\x02\n\x11\x43ompressedVariant\x12\x14\n\x0cvariant_name\x18\x01 \x01(\t\x12\x14\n\x0cvariant_type\x18\x02 \x01(\t\x12\x12\n\nmedia_type\x18\x03 \x01(\t\x12\r\n\x05width\x18\x04 \x01(\x05\x12\x0e\n\x06height\x18\x05 \x01(\x05\x12\x11\n\tfile_size\x18\x06 \x01(\x03\x12\x0e\n\x06\x66ormat\x18\x07 \x01(\t\x12\x14\n\x07quality\x18\x08 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08\x64uration\x18\t \x01(\x01H\x01\x88\x01\x01\x12\x14\n\x07\x62itrate\x18\n \x01(\x03H\x02\x88\x01\x01\x12\x10\n\x03\x66ps\x18\x0b \x01(\x05H\x03\x88\x01\x01\x12\x19\n\x11\x63ompression_ratio\x18\x0c \x01(\x01\x12\x13\n\x0bstored_path\x18\r \x01(\tB\n\n\x08_qualityB\x0b\n\t_durationB\n\n\x08_bitrateB\x06\n\x04_fps\"Y\n\x14RecompressionRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x1c\n\x0f\x66orce_reprocess\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x12\n\x10_force_reprocess\"8\n\x15RecompressionResponse\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\"\x92\x01\n\x19VariantDownloadUrlRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x14\n\x0cvariant_name\x18\x02 \x01(\t\x12\x1b\n\x0e\x65xpire_seconds\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12\x13\n\x06is_cdn\x18\x04 \x01(\x08H\x01\x88\x01\x01\x42\x11\n\x0f_expire_secondsB\t\n\x07_is_cdn\"\x8c\x01\n\x1aVariantDownloadUrlResponse\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x32\n\x0cvariant_info\x18\x03 \x01(\x0b\x32\x17.file.CompressedVariantH\x01\x88\x01\x01\x42\x08\n\x06_errorB\x0f\n\r_variant_info\"\x07\n\x05\x45mpty2\x87\n\n\x0b\x46ileService\x12?\n\nUploadFile\x12\x17.file.UploadFileRequest\x1a\x18.file.UploadFileResponse\x12\x44\n\x11GenerateUploadUrl\x12\x16.file.UploadUrlRequest\x1a\x17.file.UploadUrlResponse\x12M\n\x1aGenerateResumableUploadUrl\x12\x16.file.UploadUrlRequest\x1a\x17.file.UploadUrlResponse\x12\x43\n\x16\x43onfirmUploadCompleted\x12\x1c.file.UploadCompletedRequest\x1a\x0b.file.Empty\x12J\n\x13GenerateDownloadUrl\x12\x18.file.DownloadUrlRequest\x1a\x19.file.DownloadUrlResponse\x12Y\n\x18\x42\x61tchGenerateDownloadUrl\x12\x1d.file.BatchDownloadUrlRequest\x1a\x1e.file.BatchDownloadUrlResponse\x12<\n\tGetGcsUrl\x12\x16.file.GetGcsUrlRequest\x1a\x17.file.GetGcsUrlResponse\x12K\n\x0e\x42\x61tchGetGcsUrl\x12\x1b.file.BatchGetGcsUrlRequest\x1a\x1c.file.BatchGetGcsUrlResponse\x12\x44\n\x11GenerateShareLink\x12\x16.file.ShareLinkRequest\x1a\x17.file.ShareLinkResponse\x12\x30\n\tVisitFile\x12\x16.file.FileVisitRequest\x1a\x0b.file.Empty\x12\x36\n\x07GetFile\x12\x14.file.GetFileRequest\x1a\x15.file.GetFileResponse\x12\x31\n\nRenameFile\x12\x17.file.RenameFileRequest\x1a\n.file.File\x12\x32\n\nDeleteFile\x12\x17.file.DeleteFileRequest\x1a\x0b.file.Empty\x12;\n\tListFiles\x12\x16.file.ListFilesRequest\x1a\x16.file.FileListResponse\x12W\n\x14GetCompressionStatus\x12\x1e.file.CompressionStatusRequest\x1a\x1f.file.CompressionStatusResponse\x12L\n\x15GetCompressedVariants\x12\x18.file.GetVariantsRequest\x1a\x19.file.GetVariantsResponse\x12O\n\x14TriggerRecompression\x12\x1a.file.RecompressionRequest\x1a\x1b.file.RecompressionResponse\x12_\n\x1aGenerateVariantDownloadUrl\x12\x1f.file.VariantDownloadUrlRequest\x1a .file.VariantDownloadUrlResponseb\x06proto3')
|
30
30
|
|
31
31
|
_globals = globals()
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -78,33 +78,33 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
78
78
|
_globals['_BATCHDOWNLOADURLRESPONSE']._serialized_start=2713
|
79
79
|
_globals['_BATCHDOWNLOADURLRESPONSE']._serialized_end=2785
|
80
80
|
_globals['_DOWNLOADURLINFO']._serialized_start=2787
|
81
|
-
_globals['_DOWNLOADURLINFO']._serialized_end=
|
82
|
-
_globals['_GETGCSURLRESPONSE']._serialized_start=
|
83
|
-
_globals['_GETGCSURLRESPONSE']._serialized_end=
|
84
|
-
_globals['_BATCHGETGCSURLRESPONSE']._serialized_start=
|
85
|
-
_globals['_BATCHGETGCSURLRESPONSE']._serialized_end=
|
86
|
-
_globals['_GCSURLINFO']._serialized_start=
|
87
|
-
_globals['_GCSURLINFO']._serialized_end=
|
88
|
-
_globals['_COMPRESSIONSTATUSREQUEST']._serialized_start=
|
89
|
-
_globals['_COMPRESSIONSTATUSREQUEST']._serialized_end=
|
90
|
-
_globals['_COMPRESSIONSTATUSRESPONSE']._serialized_start=
|
91
|
-
_globals['_COMPRESSIONSTATUSRESPONSE']._serialized_end=
|
92
|
-
_globals['_GETVARIANTSREQUEST']._serialized_start=
|
93
|
-
_globals['_GETVARIANTSREQUEST']._serialized_end=
|
94
|
-
_globals['_GETVARIANTSRESPONSE']._serialized_start=
|
95
|
-
_globals['_GETVARIANTSRESPONSE']._serialized_end=
|
96
|
-
_globals['_COMPRESSEDVARIANT']._serialized_start=
|
97
|
-
_globals['_COMPRESSEDVARIANT']._serialized_end=
|
98
|
-
_globals['_RECOMPRESSIONREQUEST']._serialized_start=
|
99
|
-
_globals['_RECOMPRESSIONREQUEST']._serialized_end=
|
100
|
-
_globals['_RECOMPRESSIONRESPONSE']._serialized_start=
|
101
|
-
_globals['_RECOMPRESSIONRESPONSE']._serialized_end=
|
102
|
-
_globals['_VARIANTDOWNLOADURLREQUEST']._serialized_start=
|
103
|
-
_globals['_VARIANTDOWNLOADURLREQUEST']._serialized_end=
|
104
|
-
_globals['_VARIANTDOWNLOADURLRESPONSE']._serialized_start=
|
105
|
-
_globals['_VARIANTDOWNLOADURLRESPONSE']._serialized_end=
|
106
|
-
_globals['_EMPTY']._serialized_start=
|
107
|
-
_globals['_EMPTY']._serialized_end=
|
108
|
-
_globals['_FILESERVICE']._serialized_start=
|
109
|
-
_globals['_FILESERVICE']._serialized_end=
|
81
|
+
_globals['_DOWNLOADURLINFO']._serialized_end=2883
|
82
|
+
_globals['_GETGCSURLRESPONSE']._serialized_start=2885
|
83
|
+
_globals['_GETGCSURLRESPONSE']._serialized_end=2940
|
84
|
+
_globals['_BATCHGETGCSURLRESPONSE']._serialized_start=2942
|
85
|
+
_globals['_BATCHGETGCSURLRESPONSE']._serialized_end=3002
|
86
|
+
_globals['_GCSURLINFO']._serialized_start=3004
|
87
|
+
_globals['_GCSURLINFO']._serialized_end=3099
|
88
|
+
_globals['_COMPRESSIONSTATUSREQUEST']._serialized_start=3101
|
89
|
+
_globals['_COMPRESSIONSTATUSREQUEST']._serialized_end=3144
|
90
|
+
_globals['_COMPRESSIONSTATUSRESPONSE']._serialized_start=3147
|
91
|
+
_globals['_COMPRESSIONSTATUSRESPONSE']._serialized_end=3279
|
92
|
+
_globals['_GETVARIANTSREQUEST']._serialized_start=3281
|
93
|
+
_globals['_GETVARIANTSREQUEST']._serialized_end=3362
|
94
|
+
_globals['_GETVARIANTSRESPONSE']._serialized_start=3364
|
95
|
+
_globals['_GETVARIANTSRESPONSE']._serialized_end=3428
|
96
|
+
_globals['_COMPRESSEDVARIANT']._serialized_start=3431
|
97
|
+
_globals['_COMPRESSEDVARIANT']._serialized_end=3758
|
98
|
+
_globals['_RECOMPRESSIONREQUEST']._serialized_start=3760
|
99
|
+
_globals['_RECOMPRESSIONREQUEST']._serialized_end=3849
|
100
|
+
_globals['_RECOMPRESSIONRESPONSE']._serialized_start=3851
|
101
|
+
_globals['_RECOMPRESSIONRESPONSE']._serialized_end=3907
|
102
|
+
_globals['_VARIANTDOWNLOADURLREQUEST']._serialized_start=3910
|
103
|
+
_globals['_VARIANTDOWNLOADURLREQUEST']._serialized_end=4056
|
104
|
+
_globals['_VARIANTDOWNLOADURLRESPONSE']._serialized_start=4059
|
105
|
+
_globals['_VARIANTDOWNLOADURLRESPONSE']._serialized_end=4199
|
106
|
+
_globals['_EMPTY']._serialized_start=4201
|
107
|
+
_globals['_EMPTY']._serialized_end=4208
|
108
|
+
_globals['_FILESERVICE']._serialized_start=4211
|
109
|
+
_globals['_FILESERVICE']._serialized_end=5498
|
110
110
|
# @@protoc_insertion_point(module_scope)
|