tamar-file-hub-client 0.0.9__py3-none-any.whl → 0.0.11__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.
- file_hub_client/rpc/gen/file_service_pb2.py +28 -28
- file_hub_client/rpc/gen/taple_service_pb2.py +174 -174
- file_hub_client/rpc/protos/file_service.proto +1 -0
- file_hub_client/rpc/protos/taple_service.proto +4 -4
- file_hub_client/schemas/taple.py +412 -412
- file_hub_client/services/file/async_blob_service.py +3 -1
- file_hub_client/services/file/sync_blob_service.py +3 -1
- file_hub_client/services/taple/async_taple_service.py +2285 -2291
- file_hub_client/services/taple/base_taple_service.py +367 -352
- file_hub_client/services/taple/sync_taple_service.py +11 -17
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/METADATA +1 -1
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/RECORD +14 -14
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/WHEEL +0 -0
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/top_level.txt +0 -0
@@ -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\"\xdf\x01\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\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_seconds\"\xf3\x01\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\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_seconds\")\n\x16UploadCompletedRequest\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\"
|
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\"\xdf\x01\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\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_seconds\"\xf3\x01\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\x42\x0c\n\n_folder_idB\x0f\n\r_is_temporaryB\x11\n\x0f_expire_seconds\")\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\"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\"\x07\n\x05\x45mpty2\xbd\x05\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\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+\n\x07GetFile\x12\x14.file.GetFileRequest\x1a\n.file.File\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.FileListResponseb\x06proto3')
|
30
30
|
|
31
31
|
_globals = globals()
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -44,31 +44,31 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
44
44
|
_globals['_UPLOADCOMPLETEDREQUEST']._serialized_start=1051
|
45
45
|
_globals['_UPLOADCOMPLETEDREQUEST']._serialized_end=1092
|
46
46
|
_globals['_DOWNLOADURLREQUEST']._serialized_start=1094
|
47
|
-
_globals['_DOWNLOADURLREQUEST']._serialized_end=
|
48
|
-
_globals['_SHARELINKREQUEST']._serialized_start=
|
49
|
-
_globals['_SHARELINKREQUEST']._serialized_end=
|
50
|
-
_globals['_FILEVISITREQUEST']._serialized_start=
|
51
|
-
_globals['_FILEVISITREQUEST']._serialized_end=
|
52
|
-
_globals['_GETFILEREQUEST']._serialized_start=
|
53
|
-
_globals['_GETFILEREQUEST']._serialized_end=
|
54
|
-
_globals['_RENAMEFILEREQUEST']._serialized_start=
|
55
|
-
_globals['_RENAMEFILEREQUEST']._serialized_end=
|
56
|
-
_globals['_DELETEFILEREQUEST']._serialized_start=
|
57
|
-
_globals['_DELETEFILEREQUEST']._serialized_end=
|
58
|
-
_globals['_LISTFILESREQUEST']._serialized_start=
|
59
|
-
_globals['_LISTFILESREQUEST']._serialized_end=
|
60
|
-
_globals['_UPLOADFILERESPONSE']._serialized_start=
|
61
|
-
_globals['_UPLOADFILERESPONSE']._serialized_end=
|
62
|
-
_globals['_UPLOADURLRESPONSE']._serialized_start=
|
63
|
-
_globals['_UPLOADURLRESPONSE']._serialized_end=
|
64
|
-
_globals['_DOWNLOADURLRESPONSE']._serialized_start=
|
65
|
-
_globals['_DOWNLOADURLRESPONSE']._serialized_end=
|
66
|
-
_globals['_SHARELINKRESPONSE']._serialized_start=
|
67
|
-
_globals['_SHARELINKRESPONSE']._serialized_end=
|
68
|
-
_globals['_FILELISTRESPONSE']._serialized_start=
|
69
|
-
_globals['_FILELISTRESPONSE']._serialized_end=
|
70
|
-
_globals['_EMPTY']._serialized_start=
|
71
|
-
_globals['_EMPTY']._serialized_end=
|
72
|
-
_globals['_FILESERVICE']._serialized_start=
|
73
|
-
_globals['_FILESERVICE']._serialized_end=
|
47
|
+
_globals['_DOWNLOADURLREQUEST']._serialized_end=1211
|
48
|
+
_globals['_SHARELINKREQUEST']._serialized_start=1214
|
49
|
+
_globals['_SHARELINKREQUEST']._serialized_end=1426
|
50
|
+
_globals['_FILEVISITREQUEST']._serialized_start=1429
|
51
|
+
_globals['_FILEVISITREQUEST']._serialized_end=1559
|
52
|
+
_globals['_GETFILEREQUEST']._serialized_start=1561
|
53
|
+
_globals['_GETFILEREQUEST']._serialized_end=1594
|
54
|
+
_globals['_RENAMEFILEREQUEST']._serialized_start=1596
|
55
|
+
_globals['_RENAMEFILEREQUEST']._serialized_end=1650
|
56
|
+
_globals['_DELETEFILEREQUEST']._serialized_start=1652
|
57
|
+
_globals['_DELETEFILEREQUEST']._serialized_end=1688
|
58
|
+
_globals['_LISTFILESREQUEST']._serialized_start=1691
|
59
|
+
_globals['_LISTFILESREQUEST']._serialized_end=1960
|
60
|
+
_globals['_UPLOADFILERESPONSE']._serialized_start=1962
|
61
|
+
_globals['_UPLOADFILERESPONSE']._serialized_end=2047
|
62
|
+
_globals['_UPLOADURLRESPONSE']._serialized_start=2049
|
63
|
+
_globals['_UPLOADURLRESPONSE']._serialized_end=2146
|
64
|
+
_globals['_DOWNLOADURLRESPONSE']._serialized_start=2148
|
65
|
+
_globals['_DOWNLOADURLRESPONSE']._serialized_end=2182
|
66
|
+
_globals['_SHARELINKRESPONSE']._serialized_start=2184
|
67
|
+
_globals['_SHARELINKRESPONSE']._serialized_end=2226
|
68
|
+
_globals['_FILELISTRESPONSE']._serialized_start=2228
|
69
|
+
_globals['_FILELISTRESPONSE']._serialized_end=2273
|
70
|
+
_globals['_EMPTY']._serialized_start=2275
|
71
|
+
_globals['_EMPTY']._serialized_end=2282
|
72
|
+
_globals['_FILESERVICE']._serialized_start=2285
|
73
|
+
_globals['_FILESERVICE']._serialized_end=2986
|
74
74
|
# @@protoc_insertion_point(module_scope)
|