yandexcloud 0.343.0__py3-none-any.whl → 0.345.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.
- yandex/cloud/ai/tts/v3/tts_pb2.py +13 -1
- yandex/cloud/ai/tts/v3/tts_pb2.pyi +171 -0
- yandex/cloud/ai/tts/v3/tts_service_pb2.py +2 -2
- yandex/cloud/ai/tts/v3/tts_service_pb2_grpc.py +44 -0
- yandex/cloud/ai/tts/v3/tts_service_pb2_grpc.pyi +20 -0
- yandex/cloud/clouddesktop/__init__.py +0 -0
- yandex/cloud/clouddesktop/v1/__init__.py +0 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2.py +71 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2.pyi +232 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2_grpc.pyi +17 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.py +146 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.pyi +443 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2_grpc.py +502 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2_grpc.pyi +242 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2.py +44 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2.pyi +111 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2_grpc.pyi +17 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2.py +115 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2.pyi +275 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2_grpc.py +323 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2_grpc.pyi +152 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2.py +65 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2.pyi +208 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2_grpc.pyi +17 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2.py +171 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2.pyi +541 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2_grpc.py +589 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2_grpc.pyi +281 -0
- yandex/cloud/clouddesktop/v1/disk_pb2.py +44 -0
- yandex/cloud/clouddesktop/v1/disk_pb2.pyi +61 -0
- yandex/cloud/clouddesktop/v1/disk_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/disk_pb2_grpc.pyi +17 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.py +6 -3
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.pyi +6 -0
- yandex/cloud/metastore/__init__.py +0 -0
- yandex/cloud/metastore/v1/__init__.py +0 -0
- yandex/cloud/metastore/v1/cluster_pb2.py +67 -0
- yandex/cloud/metastore/v1/cluster_pb2.pyi +325 -0
- yandex/cloud/metastore/v1/cluster_pb2_grpc.py +24 -0
- yandex/cloud/metastore/v1/cluster_pb2_grpc.pyi +17 -0
- yandex/cloud/metastore/v1/cluster_service_pb2.py +176 -0
- yandex/cloud/metastore/v1/cluster_service_pb2.pyi +628 -0
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.py +502 -0
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.pyi +247 -0
- yandex/cloud/metastore/v1/maintenance_pb2.py +53 -0
- yandex/cloud/metastore/v1/maintenance_pb2.pyi +123 -0
- yandex/cloud/metastore/v1/maintenance_pb2_grpc.py +24 -0
- yandex/cloud/metastore/v1/maintenance_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/chart_widget_pb2.py +52 -47
- yandex/cloud/monitoring/v3/chart_widget_pb2.pyi +52 -5
- yandex/cloud/monitoring/v3/dashboard_pb2.py +6 -5
- yandex/cloud/monitoring/v3/dashboard_pb2.pyi +8 -1
- yandex/cloud/monitoring/v3/dashboard_service_pb2.py +30 -29
- yandex/cloud/monitoring/v3/dashboard_service_pb2.pyi +15 -2
- yandex/cloud/monitoring/v3/link_item_pb2.py +40 -0
- yandex/cloud/monitoring/v3/link_item_pb2.pyi +53 -0
- yandex/cloud/monitoring/v3/link_item_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/link_item_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/link_pb2.py +39 -0
- yandex/cloud/monitoring/v3/link_pb2.pyi +70 -0
- yandex/cloud/monitoring/v3/link_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/link_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.py +60 -55
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.pyi +52 -5
- yandex/cloud/monitoring/v3/thresholds_pb2.py +41 -0
- yandex/cloud/monitoring/v3/thresholds_pb2.pyi +73 -0
- yandex/cloud/monitoring/v3/thresholds_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/thresholds_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/widget_pb2.py +6 -5
- yandex/cloud/monitoring/v3/widget_pb2.pyi +8 -1
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +25 -25
- yandex/cloud/speechsense/v1/talk_service_pb2.py +39 -31
- yandex/cloud/speechsense/v1/talk_service_pb2.pyi +38 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.py +46 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.pyi +27 -0
- yandex/cloud/storage/v1/bucket_service_pb2.py +30 -30
- yandex/cloud/storage/v1/bucket_service_pb2.pyi +26 -4
- yandexcloud/__init__.py +1 -1
- yandexcloud/_sdk.py +5 -3
- {yandexcloud-0.343.0.dist-info → yandexcloud-0.345.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.343.0.dist-info → yandexcloud-0.345.0.dist-info}/RECORD +88 -32
- {yandexcloud-0.343.0.dist-info → yandexcloud-0.345.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.343.0.dist-info → yandexcloud-0.345.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.343.0.dist-info → yandexcloud-0.345.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.343.0.dist-info → yandexcloud-0.345.0.dist-info}/top_level.txt +0 -0
|
@@ -26,7 +26,7 @@ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
|
26
26
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2yandex/cloud/searchapi/v2/gen_search_service.proto\x12\x19yandex.cloud.searchapi.v2\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\"
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2yandex/cloud/searchapi/v2/gen_search_service.proto\x12\x19yandex.cloud.searchapi.v2\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\"i\n\x10GenSearchMessage\x12 \n\x07\x63ontent\x18\x01 \x01(\tB\x0f\xe8\xc7\x31\x01\x8a\xc8\x31\x07<=16384\x12\x33\n\x04role\x18\x02 \x01(\x0e\x32\x1f.yandex.cloud.searchapi.v2.RoleB\x04\xe8\xc7\x31\x01\"\xae\x08\n\x10GenSearchRequest\x12H\n\x08messages\x18\x01 \x03(\x0b\x32+.yandex.cloud.searchapi.v2.GenSearchMessageB\t\x82\xc8\x31\x05\x31-100\x12\x1f\n\tfolder_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12L\n\x04site\x18\x03 \x01(\x0b\x32\x36.yandex.cloud.searchapi.v2.GenSearchRequest.SiteOptionB\x04\xe8\xc7\x31\x01H\x00\x12L\n\x04host\x18\x04 \x01(\x0b\x32\x36.yandex.cloud.searchapi.v2.GenSearchRequest.HostOptionB\x04\xe8\xc7\x31\x01H\x00\x12J\n\x03url\x18\x05 \x01(\x0b\x32\x35.yandex.cloud.searchapi.v2.GenSearchRequest.UrlOptionB\x04\xe8\xc7\x31\x01H\x00\x12\x14\n\x0c\x66ix_misspell\x18\x06 \x01(\x08\x12\x18\n\x10\x65nable_nrfm_docs\x18\x07 \x01(\x08\x12Z\n\x0esearch_filters\x18\x08 \x03(\x0b\x32\x38.yandex.cloud.searchapi.v2.GenSearchRequest.SearchFilterB\x08\x82\xc8\x31\x04<=10\x1a/\n\nSiteOption\x12!\n\x04site\x18\x01 \x03(\tB\x13\x82\xc8\x31\x05<=100\x8a\xc8\x31\x06<=1024\x1a-\n\tUrlOption\x12 \n\x03url\x18\x01 \x03(\tB\x13\x82\xc8\x31\x05<=100\x8a\xc8\x31\x06<=1024\x1a/\n\nHostOption\x12!\n\x04host\x18\x01 \x03(\tB\x13\x82\xc8\x31\x05<=100\x8a\xc8\x31\x06<=1024\x1a\x99\x03\n\x0cSearchFilter\x12\x18\n\x04\x64\x61te\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=25H\x00\x12\x15\n\x04lang\x18\x02 \x01(\tB\x05\x8a\xc8\x31\x01\x32H\x00\x12T\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x42.yandex.cloud.searchapi.v2.GenSearchRequest.SearchFilter.DocFormatH\x00\"\xef\x01\n\tDocFormat\x12\x1a\n\x16\x44OC_FORMAT_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x44OC_FORMAT_PDF\x10\x01\x12\x12\n\x0e\x44OC_FORMAT_XLS\x10\x02\x12\x12\n\x0e\x44OC_FORMAT_ODS\x10\x03\x12\x12\n\x0e\x44OC_FORMAT_RTF\x10\x04\x12\x12\n\x0e\x44OC_FORMAT_PPT\x10\x05\x12\x12\n\x0e\x44OC_FORMAT_ODP\x10\x06\x12\x12\n\x0e\x44OC_FORMAT_SWF\x10\x07\x12\x12\n\x0e\x44OC_FORMAT_ODT\x10\x08\x12\x12\n\x0e\x44OC_FORMAT_ODG\x10\t\x12\x12\n\x0e\x44OC_FORMAT_DOC\x10\nB\x10\n\x0e\x66ilter_optionsB\x0e\n\x0csite_options\"\x9e\x03\n\x11GenSearchResponse\x12<\n\x07message\x18\x01 \x01(\x0b\x32+.yandex.cloud.searchapi.v2.GenSearchMessage\x12\x44\n\x07sources\x18\x02 \x03(\x0b\x32\x33.yandex.cloud.searchapi.v2.GenSearchResponse.Source\x12P\n\x0esearch_queries\x18\x03 \x03(\x0b\x32\x38.yandex.cloud.searchapi.v2.GenSearchResponse.SearchQuery\x12\x1c\n\x14\x66ixed_misspell_query\x18\x04 \x01(\t\x12\x1a\n\x12is_answer_rejected\x18\x05 \x01(\x08\x12\x18\n\x10is_bullet_answer\x18\x06 \x01(\x08\x1a\x32\n\x06Source\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0c\n\x04used\x18\x03 \x01(\x08\x1a+\n\x0bSearchQuery\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0e\n\x06req_id\x18\x02 \x01(\t*?\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\r\n\tROLE_USER\x10\x01\x12\x12\n\x0eROLE_ASSISTANT\x10\x02\x32\x95\x01\n\x10GenSearchService\x12\x80\x01\n\x06Search\x12+.yandex.cloud.searchapi.v2.GenSearchRequest\x1a,.yandex.cloud.searchapi.v2.GenSearchResponse\"\x19\x82\xd3\xe4\x93\x02\x13\"\x0e/v2/gen/search:\x01*0\x01\x42\x65\n\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3')
|
|
30
30
|
|
|
31
31
|
_globals = globals()
|
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -35,7 +35,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
35
35
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
36
|
_globals['DESCRIPTOR']._serialized_options = b'\n\032yandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapi'
|
|
37
37
|
_globals['_GENSEARCHMESSAGE'].fields_by_name['content']._loaded_options = None
|
|
38
|
-
_globals['_GENSEARCHMESSAGE'].fields_by_name['content']._serialized_options = b'\350\3071\001\212\3101\
|
|
38
|
+
_globals['_GENSEARCHMESSAGE'].fields_by_name['content']._serialized_options = b'\350\3071\001\212\3101\007<=16384'
|
|
39
39
|
_globals['_GENSEARCHMESSAGE'].fields_by_name['role']._loaded_options = None
|
|
40
40
|
_globals['_GENSEARCHMESSAGE'].fields_by_name['role']._serialized_options = b'\350\3071\001'
|
|
41
41
|
_globals['_GENSEARCHREQUEST_SITEOPTION'].fields_by_name['site']._loaded_options = None
|
|
@@ -62,28 +62,28 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
62
62
|
_globals['_GENSEARCHREQUEST'].fields_by_name['search_filters']._serialized_options = b'\202\3101\004<=10'
|
|
63
63
|
_globals['_GENSEARCHSERVICE'].methods_by_name['Search']._loaded_options = None
|
|
64
64
|
_globals['_GENSEARCHSERVICE'].methods_by_name['Search']._serialized_options = b'\202\323\344\223\002\023\"\016/v2/gen/search:\001*'
|
|
65
|
-
_globals['_ROLE']._serialized_start=
|
|
66
|
-
_globals['_ROLE']._serialized_end=
|
|
65
|
+
_globals['_ROLE']._serialized_start=1739
|
|
66
|
+
_globals['_ROLE']._serialized_end=1802
|
|
67
67
|
_globals['_GENSEARCHMESSAGE']._serialized_start=142
|
|
68
|
-
_globals['_GENSEARCHMESSAGE']._serialized_end=
|
|
69
|
-
_globals['_GENSEARCHREQUEST']._serialized_start=
|
|
70
|
-
_globals['_GENSEARCHREQUEST']._serialized_end=
|
|
71
|
-
_globals['_GENSEARCHREQUEST_SITEOPTION']._serialized_start=
|
|
72
|
-
_globals['_GENSEARCHREQUEST_SITEOPTION']._serialized_end=
|
|
73
|
-
_globals['_GENSEARCHREQUEST_URLOPTION']._serialized_start=
|
|
74
|
-
_globals['_GENSEARCHREQUEST_URLOPTION']._serialized_end=
|
|
75
|
-
_globals['_GENSEARCHREQUEST_HOSTOPTION']._serialized_start=
|
|
76
|
-
_globals['_GENSEARCHREQUEST_HOSTOPTION']._serialized_end=
|
|
77
|
-
_globals['_GENSEARCHREQUEST_SEARCHFILTER']._serialized_start=
|
|
78
|
-
_globals['_GENSEARCHREQUEST_SEARCHFILTER']._serialized_end=
|
|
79
|
-
_globals['_GENSEARCHREQUEST_SEARCHFILTER_DOCFORMAT']._serialized_start=
|
|
80
|
-
_globals['_GENSEARCHREQUEST_SEARCHFILTER_DOCFORMAT']._serialized_end=
|
|
81
|
-
_globals['_GENSEARCHRESPONSE']._serialized_start=
|
|
82
|
-
_globals['_GENSEARCHRESPONSE']._serialized_end=
|
|
83
|
-
_globals['_GENSEARCHRESPONSE_SOURCE']._serialized_start=
|
|
84
|
-
_globals['_GENSEARCHRESPONSE_SOURCE']._serialized_end=
|
|
85
|
-
_globals['_GENSEARCHRESPONSE_SEARCHQUERY']._serialized_start=
|
|
86
|
-
_globals['_GENSEARCHRESPONSE_SEARCHQUERY']._serialized_end=
|
|
87
|
-
_globals['_GENSEARCHSERVICE']._serialized_start=
|
|
88
|
-
_globals['_GENSEARCHSERVICE']._serialized_end=
|
|
68
|
+
_globals['_GENSEARCHMESSAGE']._serialized_end=247
|
|
69
|
+
_globals['_GENSEARCHREQUEST']._serialized_start=250
|
|
70
|
+
_globals['_GENSEARCHREQUEST']._serialized_end=1320
|
|
71
|
+
_globals['_GENSEARCHREQUEST_SITEOPTION']._serialized_start=749
|
|
72
|
+
_globals['_GENSEARCHREQUEST_SITEOPTION']._serialized_end=796
|
|
73
|
+
_globals['_GENSEARCHREQUEST_URLOPTION']._serialized_start=798
|
|
74
|
+
_globals['_GENSEARCHREQUEST_URLOPTION']._serialized_end=843
|
|
75
|
+
_globals['_GENSEARCHREQUEST_HOSTOPTION']._serialized_start=845
|
|
76
|
+
_globals['_GENSEARCHREQUEST_HOSTOPTION']._serialized_end=892
|
|
77
|
+
_globals['_GENSEARCHREQUEST_SEARCHFILTER']._serialized_start=895
|
|
78
|
+
_globals['_GENSEARCHREQUEST_SEARCHFILTER']._serialized_end=1304
|
|
79
|
+
_globals['_GENSEARCHREQUEST_SEARCHFILTER_DOCFORMAT']._serialized_start=1047
|
|
80
|
+
_globals['_GENSEARCHREQUEST_SEARCHFILTER_DOCFORMAT']._serialized_end=1286
|
|
81
|
+
_globals['_GENSEARCHRESPONSE']._serialized_start=1323
|
|
82
|
+
_globals['_GENSEARCHRESPONSE']._serialized_end=1737
|
|
83
|
+
_globals['_GENSEARCHRESPONSE_SOURCE']._serialized_start=1642
|
|
84
|
+
_globals['_GENSEARCHRESPONSE_SOURCE']._serialized_end=1692
|
|
85
|
+
_globals['_GENSEARCHRESPONSE_SEARCHQUERY']._serialized_start=1694
|
|
86
|
+
_globals['_GENSEARCHRESPONSE_SEARCHQUERY']._serialized_end=1737
|
|
87
|
+
_globals['_GENSEARCHSERVICE']._serialized_start=1805
|
|
88
|
+
_globals['_GENSEARCHSERVICE']._serialized_end=1954
|
|
89
89
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -24,13 +24,15 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
26
|
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
27
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
28
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
27
29
|
from yandex.cloud.speechsense.v1 import audio_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_audio__pb2
|
|
28
30
|
from yandex.cloud.speechsense.v1 import text_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_text__pb2
|
|
29
31
|
from yandex.cloud.speechsense.v1 import search_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_search__pb2
|
|
30
32
|
from yandex.cloud.speechsense.v1 import talk_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__pb2
|
|
31
33
|
|
|
32
34
|
|
|
33
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.yandex/cloud/speechsense/v1/talk_service.proto\x12\x1byandex.cloud.speechsense.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\'yandex/cloud/speechsense/v1/audio.proto\x1a&yandex/cloud/speechsense/v1/text.proto\x1a(yandex/cloud/speechsense/v1/search.proto\x1a&yandex/cloud/speechsense/v1/talk.proto\"\xa0\x01\n\x11StreamTalkRequest\x12=\n\x08metadata\x18\x01 \x01(\x0b\x32).yandex.cloud.speechsense.v1.TalkMetadataH\x00\x12\x43\n\x05\x61udio\x18\x02 \x01(\x0b\x32\x32.yandex.cloud.speechsense.v1.AudioStreamingRequestH\x00\x42\x07\n\x05\x45vent\"\x9b\x01\n\x11UploadTalkRequest\x12\x0f\n\x07talk_id\x18\x03 \x01(\t\x12;\n\x08metadata\x18\x01 \x01(\x0b\x32).yandex.cloud.speechsense.v1.TalkMetadata\x12\x38\n\x05\x61udio\x18\x02 \x01(\x0b\x32).yandex.cloud.speechsense.v1.AudioRequest\"%\n\x12UploadTalkResponse\x12\x0f\n\x07talk_id\x18\x01 \x01(\t\"\xa1\x01\n\x11UploadTextRequest\x12\x0f\n\x07talk_id\x18\x03 \x01(\t\x12;\n\x08metadata\x18\x01 \x01(\x0b\x32).yandex.cloud.speechsense.v1.TalkMetadata\x12>\n\x0ctext_content\x18\x02 \x01(\x0b\x32(.yandex.cloud.speechsense.v1.TextContent\"%\n\x12UploadTextResponse\x12\x0f\n\x07talk_id\x18\x01 \x01(\t\"\xd5\x01\n\x0cTalkMetadata\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x45\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x35.yandex.cloud.speechsense.v1.TalkMetadata.FieldsEntry\x12\x38\n\x05users\x18\x03 \x03(\x0b\x32).yandex.cloud.speechsense.v1.UserMetadata\x1a-\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc5\x01\n\x0cUserMetadata\x12\n\n\x02id\x18\x01 \x01(\t\x12\x33\n\x04role\x18\x02 \x01(\x0e\x32%.yandex.cloud.speechsense.v1.UserRole\x12\x45\n\x06\x66ields\x18\x03 \x03(\x0b\x32\x35.yandex.cloud.speechsense.v1.UserMetadata.FieldsEntry\x1a-\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb3\x02\n\x11SearchTalkRequest\x12\x17\n\x0forganization_id\x18\x01 \x01(\t\x12\x10\n\x08space_id\x18\x02 \x01(\t\x12\x15\n\rconnection_id\x18\x03 \x01(\t\x12\x12\n\nproject_id\x18\x04 \x01(\t\x12\x34\n\x07\x66ilters\x18\x05 \x03(\x0b\x32#.yandex.cloud.speechsense.v1.Filter\x12\x31\n\x05query\x18\x06 \x01(\x0b\x32\".yandex.cloud.speechsense.v1.Query\x12\x11\n\tpage_size\x18\x07 \x01(\x03\x12\x12\n\npage_token\x18\x08 \x01(\t\x12\x38\n\tsort_data\x18\t \x01(\x0b\x32%.yandex.cloud.speechsense.v1.SortData\"T\n\x12SearchTalkResponse\x12\x10\n\x08talk_ids\x18\x01 \x03(\t\x12\x13\n\x0btalks_count\x18\x02 \x01(\x03\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\xaa\x01\n\x0eGetTalkRequest\x12\x17\n\x0forganization_id\x18\x01 \x01(\t\x12\x10\n\x08space_id\x18\x02 \x01(\t\x12\x15\n\rconnection_id\x18\x03 \x01(\t\x12\x12\n\nproject_id\x18\x04 \x01(\t\x12\x10\n\x08talk_ids\x18\x05 \x03(\t\x12\x30\n\x0cresults_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"B\n\x0fGetTalkResponse\x12/\n\x04talk\x18\x01 \x03(\x0b\x32!.yandex.cloud.speechsense.v1.Talk*f\n\x08UserRole\x12\x19\n\x15USER_ROLE_UNSPECIFIED\x10\x00\x12\x16\n\x12USER_ROLE_OPERATOR\x10\x01\x12\x14\n\x10USER_ROLE_CLIENT\x10\x02\x12\x11\n\rUSER_ROLE_BOT\x10\x03\x32\
|
|
35
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.yandex/cloud/speechsense/v1/talk_service.proto\x12\x1byandex.cloud.speechsense.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\'yandex/cloud/speechsense/v1/audio.proto\x1a&yandex/cloud/speechsense/v1/text.proto\x1a(yandex/cloud/speechsense/v1/search.proto\x1a&yandex/cloud/speechsense/v1/talk.proto\"\xa0\x01\n\x11StreamTalkRequest\x12=\n\x08metadata\x18\x01 \x01(\x0b\x32).yandex.cloud.speechsense.v1.TalkMetadataH\x00\x12\x43\n\x05\x61udio\x18\x02 \x01(\x0b\x32\x32.yandex.cloud.speechsense.v1.AudioStreamingRequestH\x00\x42\x07\n\x05\x45vent\"\x9b\x01\n\x11UploadTalkRequest\x12\x0f\n\x07talk_id\x18\x03 \x01(\t\x12;\n\x08metadata\x18\x01 \x01(\x0b\x32).yandex.cloud.speechsense.v1.TalkMetadata\x12\x38\n\x05\x61udio\x18\x02 \x01(\x0b\x32).yandex.cloud.speechsense.v1.AudioRequest\"%\n\x12UploadTalkResponse\x12\x0f\n\x07talk_id\x18\x01 \x01(\t\"\xa1\x01\n\x11UploadTextRequest\x12\x0f\n\x07talk_id\x18\x03 \x01(\t\x12;\n\x08metadata\x18\x01 \x01(\x0b\x32).yandex.cloud.speechsense.v1.TalkMetadata\x12>\n\x0ctext_content\x18\x02 \x01(\x0b\x32(.yandex.cloud.speechsense.v1.TextContent\"%\n\x12UploadTextResponse\x12\x0f\n\x07talk_id\x18\x01 \x01(\t\"\xd5\x01\n\x0cTalkMetadata\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x45\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x35.yandex.cloud.speechsense.v1.TalkMetadata.FieldsEntry\x12\x38\n\x05users\x18\x03 \x03(\x0b\x32).yandex.cloud.speechsense.v1.UserMetadata\x1a-\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc5\x01\n\x0cUserMetadata\x12\n\n\x02id\x18\x01 \x01(\t\x12\x33\n\x04role\x18\x02 \x01(\x0e\x32%.yandex.cloud.speechsense.v1.UserRole\x12\x45\n\x06\x66ields\x18\x03 \x03(\x0b\x32\x35.yandex.cloud.speechsense.v1.UserMetadata.FieldsEntry\x1a-\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb3\x02\n\x11SearchTalkRequest\x12\x17\n\x0forganization_id\x18\x01 \x01(\t\x12\x10\n\x08space_id\x18\x02 \x01(\t\x12\x15\n\rconnection_id\x18\x03 \x01(\t\x12\x12\n\nproject_id\x18\x04 \x01(\t\x12\x34\n\x07\x66ilters\x18\x05 \x03(\x0b\x32#.yandex.cloud.speechsense.v1.Filter\x12\x31\n\x05query\x18\x06 \x01(\x0b\x32\".yandex.cloud.speechsense.v1.Query\x12\x11\n\tpage_size\x18\x07 \x01(\x03\x12\x12\n\npage_token\x18\x08 \x01(\t\x12\x38\n\tsort_data\x18\t \x01(\x0b\x32%.yandex.cloud.speechsense.v1.SortData\"T\n\x12SearchTalkResponse\x12\x10\n\x08talk_ids\x18\x01 \x03(\t\x12\x13\n\x0btalks_count\x18\x02 \x01(\x03\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\xaa\x01\n\x0eGetTalkRequest\x12\x17\n\x0forganization_id\x18\x01 \x01(\t\x12\x10\n\x08space_id\x18\x02 \x01(\t\x12\x15\n\rconnection_id\x18\x03 \x01(\t\x12\x12\n\nproject_id\x18\x04 \x01(\t\x12\x10\n\x08talk_ids\x18\x05 \x03(\t\x12\x30\n\x0cresults_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"B\n\x0fGetTalkResponse\x12/\n\x04talk\x18\x01 \x03(\x0b\x32!.yandex.cloud.speechsense.v1.Talk\"\'\n\x13UploadBadgeMetadata\x12\x10\n\x08\x62\x61\x64ge_id\x18\x01 \x01(\t\"9\n\x13UploadBadgeResponse\x12\x10\n\x08\x62\x61\x64ge_id\x18\x01 \x01(\t\x12\x10\n\x08talk_ids\x18\x02 \x03(\t*f\n\x08UserRole\x12\x19\n\x15USER_ROLE_UNSPECIFIED\x10\x00\x12\x16\n\x12USER_ROLE_OPERATOR\x10\x01\x12\x14\n\x10USER_ROLE_CLIENT\x10\x02\x12\x11\n\rUSER_ROLE_BOT\x10\x03\x32\x93\x06\n\x0bTalkService\x12s\n\x0eUploadAsStream\x12..yandex.cloud.speechsense.v1.StreamTalkRequest\x1a/.yandex.cloud.speechsense.v1.UploadTalkResponse(\x01\x12k\n\x06Upload\x12..yandex.cloud.speechsense.v1.UploadTalkRequest\x1a/.yandex.cloud.speechsense.v1.UploadTalkResponse\"\x00\x12o\n\nUploadText\x12..yandex.cloud.speechsense.v1.UploadTextRequest\x1a/.yandex.cloud.speechsense.v1.UploadTextResponse\"\x00\x12\x92\x01\n\x0bUploadBadge\x12..yandex.cloud.speechsense.v1.StreamTalkRequest\x1a!.yandex.cloud.operation.Operation\".\xb2\xd2**\n\x13UploadBadgeMetadata\x12\x13UploadBadgeResponse(\x01\x12\x92\x01\n\x06Search\x12..yandex.cloud.speechsense.v1.SearchTalkRequest\x1a/.yandex.cloud.speechsense.v1.SearchTalkResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1c/speechsense/v1/talks/search:\x01*\x12\x86\x01\n\x03Get\x12+.yandex.cloud.speechsense.v1.GetTalkRequest\x1a,.yandex.cloud.speechsense.v1.GetTalkResponse\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/speechsense/v1/talks/get:\x01*B\x80\x01\n\x1fyandex.cloud.api.speechsense.v1B\x10TalkServiceProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsenseb\x06proto3')
|
|
34
36
|
|
|
35
37
|
_globals = globals()
|
|
36
38
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -42,38 +44,44 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
42
44
|
_globals['_TALKMETADATA_FIELDSENTRY']._serialized_options = b'8\001'
|
|
43
45
|
_globals['_USERMETADATA_FIELDSENTRY']._loaded_options = None
|
|
44
46
|
_globals['_USERMETADATA_FIELDSENTRY']._serialized_options = b'8\001'
|
|
47
|
+
_globals['_TALKSERVICE'].methods_by_name['UploadBadge']._loaded_options = None
|
|
48
|
+
_globals['_TALKSERVICE'].methods_by_name['UploadBadge']._serialized_options = b'\262\322**\n\023UploadBadgeMetadata\022\023UploadBadgeResponse'
|
|
45
49
|
_globals['_TALKSERVICE'].methods_by_name['Search']._loaded_options = None
|
|
46
50
|
_globals['_TALKSERVICE'].methods_by_name['Search']._serialized_options = b'\202\323\344\223\002!\"\034/speechsense/v1/talks/search:\001*'
|
|
47
51
|
_globals['_TALKSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
48
52
|
_globals['_TALKSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\036\"\031/speechsense/v1/talks/get:\001*'
|
|
49
|
-
_globals['_USERROLE']._serialized_start=
|
|
50
|
-
_globals['_USERROLE']._serialized_end=
|
|
51
|
-
_globals['_STREAMTALKREQUEST']._serialized_start=
|
|
52
|
-
_globals['_STREAMTALKREQUEST']._serialized_end=
|
|
53
|
-
_globals['_UPLOADTALKREQUEST']._serialized_start=
|
|
54
|
-
_globals['_UPLOADTALKREQUEST']._serialized_end=
|
|
55
|
-
_globals['_UPLOADTALKRESPONSE']._serialized_start=
|
|
56
|
-
_globals['_UPLOADTALKRESPONSE']._serialized_end=
|
|
57
|
-
_globals['_UPLOADTEXTREQUEST']._serialized_start=
|
|
58
|
-
_globals['_UPLOADTEXTREQUEST']._serialized_end=
|
|
59
|
-
_globals['_UPLOADTEXTRESPONSE']._serialized_start=
|
|
60
|
-
_globals['_UPLOADTEXTRESPONSE']._serialized_end=
|
|
61
|
-
_globals['_TALKMETADATA']._serialized_start=
|
|
62
|
-
_globals['_TALKMETADATA']._serialized_end=
|
|
63
|
-
_globals['_TALKMETADATA_FIELDSENTRY']._serialized_start=
|
|
64
|
-
_globals['_TALKMETADATA_FIELDSENTRY']._serialized_end=
|
|
65
|
-
_globals['_USERMETADATA']._serialized_start=
|
|
66
|
-
_globals['_USERMETADATA']._serialized_end=
|
|
67
|
-
_globals['_USERMETADATA_FIELDSENTRY']._serialized_start=
|
|
68
|
-
_globals['_USERMETADATA_FIELDSENTRY']._serialized_end=
|
|
69
|
-
_globals['_SEARCHTALKREQUEST']._serialized_start=
|
|
70
|
-
_globals['_SEARCHTALKREQUEST']._serialized_end=
|
|
71
|
-
_globals['_SEARCHTALKRESPONSE']._serialized_start=
|
|
72
|
-
_globals['_SEARCHTALKRESPONSE']._serialized_end=
|
|
73
|
-
_globals['_GETTALKREQUEST']._serialized_start=
|
|
74
|
-
_globals['_GETTALKREQUEST']._serialized_end=
|
|
75
|
-
_globals['_GETTALKRESPONSE']._serialized_start=
|
|
76
|
-
_globals['_GETTALKRESPONSE']._serialized_end=
|
|
77
|
-
_globals['
|
|
78
|
-
_globals['
|
|
53
|
+
_globals['_USERROLE']._serialized_start=2096
|
|
54
|
+
_globals['_USERROLE']._serialized_end=2198
|
|
55
|
+
_globals['_STREAMTALKREQUEST']._serialized_start=381
|
|
56
|
+
_globals['_STREAMTALKREQUEST']._serialized_end=541
|
|
57
|
+
_globals['_UPLOADTALKREQUEST']._serialized_start=544
|
|
58
|
+
_globals['_UPLOADTALKREQUEST']._serialized_end=699
|
|
59
|
+
_globals['_UPLOADTALKRESPONSE']._serialized_start=701
|
|
60
|
+
_globals['_UPLOADTALKRESPONSE']._serialized_end=738
|
|
61
|
+
_globals['_UPLOADTEXTREQUEST']._serialized_start=741
|
|
62
|
+
_globals['_UPLOADTEXTREQUEST']._serialized_end=902
|
|
63
|
+
_globals['_UPLOADTEXTRESPONSE']._serialized_start=904
|
|
64
|
+
_globals['_UPLOADTEXTRESPONSE']._serialized_end=941
|
|
65
|
+
_globals['_TALKMETADATA']._serialized_start=944
|
|
66
|
+
_globals['_TALKMETADATA']._serialized_end=1157
|
|
67
|
+
_globals['_TALKMETADATA_FIELDSENTRY']._serialized_start=1112
|
|
68
|
+
_globals['_TALKMETADATA_FIELDSENTRY']._serialized_end=1157
|
|
69
|
+
_globals['_USERMETADATA']._serialized_start=1160
|
|
70
|
+
_globals['_USERMETADATA']._serialized_end=1357
|
|
71
|
+
_globals['_USERMETADATA_FIELDSENTRY']._serialized_start=1112
|
|
72
|
+
_globals['_USERMETADATA_FIELDSENTRY']._serialized_end=1157
|
|
73
|
+
_globals['_SEARCHTALKREQUEST']._serialized_start=1360
|
|
74
|
+
_globals['_SEARCHTALKREQUEST']._serialized_end=1667
|
|
75
|
+
_globals['_SEARCHTALKRESPONSE']._serialized_start=1669
|
|
76
|
+
_globals['_SEARCHTALKRESPONSE']._serialized_end=1753
|
|
77
|
+
_globals['_GETTALKREQUEST']._serialized_start=1756
|
|
78
|
+
_globals['_GETTALKREQUEST']._serialized_end=1926
|
|
79
|
+
_globals['_GETTALKRESPONSE']._serialized_start=1928
|
|
80
|
+
_globals['_GETTALKRESPONSE']._serialized_end=1994
|
|
81
|
+
_globals['_UPLOADBADGEMETADATA']._serialized_start=1996
|
|
82
|
+
_globals['_UPLOADBADGEMETADATA']._serialized_end=2035
|
|
83
|
+
_globals['_UPLOADBADGERESPONSE']._serialized_start=2037
|
|
84
|
+
_globals['_UPLOADBADGERESPONSE']._serialized_end=2094
|
|
85
|
+
_globals['_TALKSERVICE']._serialized_start=2201
|
|
86
|
+
_globals['_TALKSERVICE']._serialized_end=2988
|
|
79
87
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -380,3 +380,41 @@ class GetTalkResponse(google.protobuf.message.Message):
|
|
|
380
380
|
def ClearField(self, field_name: typing.Literal["talk", b"talk"]) -> None: ...
|
|
381
381
|
|
|
382
382
|
global___GetTalkResponse = GetTalkResponse
|
|
383
|
+
|
|
384
|
+
@typing.final
|
|
385
|
+
class UploadBadgeMetadata(google.protobuf.message.Message):
|
|
386
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
387
|
+
|
|
388
|
+
BADGE_ID_FIELD_NUMBER: builtins.int
|
|
389
|
+
badge_id: builtins.str
|
|
390
|
+
"""id of uploaded badge"""
|
|
391
|
+
def __init__(
|
|
392
|
+
self,
|
|
393
|
+
*,
|
|
394
|
+
badge_id: builtins.str = ...,
|
|
395
|
+
) -> None: ...
|
|
396
|
+
def ClearField(self, field_name: typing.Literal["badge_id", b"badge_id"]) -> None: ...
|
|
397
|
+
|
|
398
|
+
global___UploadBadgeMetadata = UploadBadgeMetadata
|
|
399
|
+
|
|
400
|
+
@typing.final
|
|
401
|
+
class UploadBadgeResponse(google.protobuf.message.Message):
|
|
402
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
403
|
+
|
|
404
|
+
BADGE_ID_FIELD_NUMBER: builtins.int
|
|
405
|
+
TALK_IDS_FIELD_NUMBER: builtins.int
|
|
406
|
+
badge_id: builtins.str
|
|
407
|
+
"""id of uploaded badge"""
|
|
408
|
+
@property
|
|
409
|
+
def talk_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
410
|
+
"""id of created talks related to badge"""
|
|
411
|
+
|
|
412
|
+
def __init__(
|
|
413
|
+
self,
|
|
414
|
+
*,
|
|
415
|
+
badge_id: builtins.str = ...,
|
|
416
|
+
talk_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
417
|
+
) -> None: ...
|
|
418
|
+
def ClearField(self, field_name: typing.Literal["badge_id", b"badge_id", "talk_ids", b"talk_ids"]) -> None: ...
|
|
419
|
+
|
|
420
|
+
global___UploadBadgeResponse = UploadBadgeResponse
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import grpc
|
|
4
4
|
import warnings
|
|
5
5
|
|
|
6
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
6
7
|
from yandex.cloud.speechsense.v1 import talk_service_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2
|
|
7
8
|
|
|
8
9
|
GRPC_GENERATED_VERSION = '1.70.0'
|
|
@@ -49,6 +50,11 @@ class TalkServiceStub(object):
|
|
|
49
50
|
request_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.UploadTextRequest.SerializeToString,
|
|
50
51
|
response_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.UploadTextResponse.FromString,
|
|
51
52
|
_registered_method=True)
|
|
53
|
+
self.UploadBadge = channel.stream_unary(
|
|
54
|
+
'/yandex.cloud.speechsense.v1.TalkService/UploadBadge',
|
|
55
|
+
request_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.StreamTalkRequest.SerializeToString,
|
|
56
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
57
|
+
_registered_method=True)
|
|
52
58
|
self.Search = channel.unary_unary(
|
|
53
59
|
'/yandex.cloud.speechsense.v1.TalkService/Search',
|
|
54
60
|
request_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.SearchTalkRequest.SerializeToString,
|
|
@@ -86,6 +92,14 @@ class TalkServiceServicer(object):
|
|
|
86
92
|
context.set_details('Method not implemented!')
|
|
87
93
|
raise NotImplementedError('Method not implemented!')
|
|
88
94
|
|
|
95
|
+
def UploadBadge(self, request_iterator, context):
|
|
96
|
+
"""rpc for streaming document that contains combined talks. First message should contain Talk related metadata,
|
|
97
|
+
second - audio metadata, others should contain audio bytes in chunks
|
|
98
|
+
"""
|
|
99
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
100
|
+
context.set_details('Method not implemented!')
|
|
101
|
+
raise NotImplementedError('Method not implemented!')
|
|
102
|
+
|
|
89
103
|
def Search(self, request, context):
|
|
90
104
|
"""rpc for searching talks. will return ids only
|
|
91
105
|
"""
|
|
@@ -118,6 +132,11 @@ def add_TalkServiceServicer_to_server(servicer, server):
|
|
|
118
132
|
request_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.UploadTextRequest.FromString,
|
|
119
133
|
response_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.UploadTextResponse.SerializeToString,
|
|
120
134
|
),
|
|
135
|
+
'UploadBadge': grpc.stream_unary_rpc_method_handler(
|
|
136
|
+
servicer.UploadBadge,
|
|
137
|
+
request_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.StreamTalkRequest.FromString,
|
|
138
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
139
|
+
),
|
|
121
140
|
'Search': grpc.unary_unary_rpc_method_handler(
|
|
122
141
|
servicer.Search,
|
|
123
142
|
request_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.SearchTalkRequest.FromString,
|
|
@@ -220,6 +239,33 @@ class TalkService(object):
|
|
|
220
239
|
metadata,
|
|
221
240
|
_registered_method=True)
|
|
222
241
|
|
|
242
|
+
@staticmethod
|
|
243
|
+
def UploadBadge(request_iterator,
|
|
244
|
+
target,
|
|
245
|
+
options=(),
|
|
246
|
+
channel_credentials=None,
|
|
247
|
+
call_credentials=None,
|
|
248
|
+
insecure=False,
|
|
249
|
+
compression=None,
|
|
250
|
+
wait_for_ready=None,
|
|
251
|
+
timeout=None,
|
|
252
|
+
metadata=None):
|
|
253
|
+
return grpc.experimental.stream_unary(
|
|
254
|
+
request_iterator,
|
|
255
|
+
target,
|
|
256
|
+
'/yandex.cloud.speechsense.v1.TalkService/UploadBadge',
|
|
257
|
+
yandex_dot_cloud_dot_speechsense_dot_v1_dot_talk__service__pb2.StreamTalkRequest.SerializeToString,
|
|
258
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
259
|
+
options,
|
|
260
|
+
channel_credentials,
|
|
261
|
+
insecure,
|
|
262
|
+
call_credentials,
|
|
263
|
+
compression,
|
|
264
|
+
wait_for_ready,
|
|
265
|
+
timeout,
|
|
266
|
+
metadata,
|
|
267
|
+
_registered_method=True)
|
|
268
|
+
|
|
223
269
|
@staticmethod
|
|
224
270
|
def Search(request,
|
|
225
271
|
target,
|
|
@@ -8,6 +8,7 @@ import collections.abc
|
|
|
8
8
|
import grpc
|
|
9
9
|
import grpc.aio
|
|
10
10
|
import typing
|
|
11
|
+
import yandex.cloud.operation.operation_pb2
|
|
11
12
|
import yandex.cloud.speechsense.v1.talk_service_pb2
|
|
12
13
|
|
|
13
14
|
_T = typing.TypeVar("_T")
|
|
@@ -39,6 +40,14 @@ class TalkServiceStub:
|
|
|
39
40
|
]
|
|
40
41
|
"""rpc for uploading text talk document"""
|
|
41
42
|
|
|
43
|
+
UploadBadge: grpc.StreamUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.speechsense.v1.talk_service_pb2.StreamTalkRequest,
|
|
45
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
46
|
+
]
|
|
47
|
+
"""rpc for streaming document that contains combined talks. First message should contain Talk related metadata,
|
|
48
|
+
second - audio metadata, others should contain audio bytes in chunks
|
|
49
|
+
"""
|
|
50
|
+
|
|
42
51
|
Search: grpc.UnaryUnaryMultiCallable[
|
|
43
52
|
yandex.cloud.speechsense.v1.talk_service_pb2.SearchTalkRequest,
|
|
44
53
|
yandex.cloud.speechsense.v1.talk_service_pb2.SearchTalkResponse,
|
|
@@ -72,6 +81,14 @@ class TalkServiceAsyncStub:
|
|
|
72
81
|
]
|
|
73
82
|
"""rpc for uploading text talk document"""
|
|
74
83
|
|
|
84
|
+
UploadBadge: grpc.aio.StreamUnaryMultiCallable[
|
|
85
|
+
yandex.cloud.speechsense.v1.talk_service_pb2.StreamTalkRequest,
|
|
86
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
87
|
+
]
|
|
88
|
+
"""rpc for streaming document that contains combined talks. First message should contain Talk related metadata,
|
|
89
|
+
second - audio metadata, others should contain audio bytes in chunks
|
|
90
|
+
"""
|
|
91
|
+
|
|
75
92
|
Search: grpc.aio.UnaryUnaryMultiCallable[
|
|
76
93
|
yandex.cloud.speechsense.v1.talk_service_pb2.SearchTalkRequest,
|
|
77
94
|
yandex.cloud.speechsense.v1.talk_service_pb2.SearchTalkResponse,
|
|
@@ -111,6 +128,16 @@ class TalkServiceServicer(metaclass=abc.ABCMeta):
|
|
|
111
128
|
) -> typing.Union[yandex.cloud.speechsense.v1.talk_service_pb2.UploadTextResponse, collections.abc.Awaitable[yandex.cloud.speechsense.v1.talk_service_pb2.UploadTextResponse]]:
|
|
112
129
|
"""rpc for uploading text talk document"""
|
|
113
130
|
|
|
131
|
+
@abc.abstractmethod
|
|
132
|
+
def UploadBadge(
|
|
133
|
+
self,
|
|
134
|
+
request_iterator: _MaybeAsyncIterator[yandex.cloud.speechsense.v1.talk_service_pb2.StreamTalkRequest],
|
|
135
|
+
context: _ServicerContext,
|
|
136
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
137
|
+
"""rpc for streaming document that contains combined talks. First message should contain Talk related metadata,
|
|
138
|
+
second - audio metadata, others should contain audio bytes in chunks
|
|
139
|
+
"""
|
|
140
|
+
|
|
114
141
|
@abc.abstractmethod
|
|
115
142
|
def Search(
|
|
116
143
|
self,
|
|
@@ -31,7 +31,7 @@ from yandex.cloud.storage.v1 import bucket_pb2 as yandex_dot_cloud_dot_storage_d
|
|
|
31
31
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/storage/v1/bucket_service.proto\x12\x17yandex.cloud.storage.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a$yandex/cloud/storage/v1/bucket.proto\x1a\x1dyandex/cloud/validation.proto\"\xaf\x01\n\x10GetBucketRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12<\n\x04view\x18\x02 \x01(\x0e\x32..yandex.cloud.storage.v1.GetBucketRequest.View\"I\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\x0e\n\nVIEW_BASIC\x10\x01\x12\x0c\n\x08VIEW_ACL\x10\x02\x12\r\n\tVIEW_FULL\x10\x03\"5\n\x12ListBucketsRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"G\n\x13ListBucketsResponse\x12\x30\n\x07\x62uckets\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.storage.v1.Bucket\"\
|
|
34
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/storage/v1/bucket_service.proto\x12\x17yandex.cloud.storage.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a$yandex/cloud/storage/v1/bucket.proto\x1a\x1dyandex/cloud/validation.proto\"\xaf\x01\n\x10GetBucketRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12<\n\x04view\x18\x02 \x01(\x0e\x32..yandex.cloud.storage.v1.GetBucketRequest.View\"I\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\x0e\n\nVIEW_BASIC\x10\x01\x12\x0c\n\x08VIEW_ACL\x10\x02\x12\r\n\tVIEW_FULL\x10\x03\"5\n\x12ListBucketsRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"G\n\x13ListBucketsResponse\x12\x30\n\x07\x62uckets\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.storage.v1.Bucket\"\xf4\x03\n\x13\x43reateBucketRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1f\n\tfolder_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\x15\x64\x65\x66\x61ult_storage_class\x18\x04 \x01(\t\x12\x10\n\x08max_size\x18\x05 \x01(\x03\x12M\n\x16\x61nonymous_access_flags\x18\x06 \x01(\x0b\x32-.yandex.cloud.storage.v1.AnonymousAccessFlags\x12)\n\x03\x61\x63l\x18\x07 \x01(\x0b\x32\x1c.yandex.cloud.storage.v1.ACL\x12*\n\x04tags\x18\x08 \x03(\x0b\x32\x1c.yandex.cloud.storage.v1.Tag\x12\x37\n\nencryption\x18\t \x01(\x0b\x32#.yandex.cloud.storage.v1.Encryption\x12\x37\n\nversioning\x18\n \x01(\x0e\x32#.yandex.cloud.storage.v1.Versioning\x12Y\n\x19\x61llowed_private_endpoints\x18\x0b \x01(\x0b\x32\x36.yandex.cloud.storage.v1.BucketAllowedPrivateEndpointsJ\x04\x08\x03\x10\x04\"$\n\x14\x43reateBucketMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x9d\x06\n\x13UpdateBucketRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe8\xc7\x31\x01\x12M\n\x16\x61nonymous_access_flags\x18\x03 \x01(\x0b\x32-.yandex.cloud.storage.v1.AnonymousAccessFlags\x12\x1d\n\x15\x64\x65\x66\x61ult_storage_class\x18\x04 \x01(\t\x12\x10\n\x08max_size\x18\x05 \x01(\x03\x12/\n\x04\x63ors\x18\x06 \x03(\x0b\x32!.yandex.cloud.storage.v1.CorsRule\x12\x42\n\x10website_settings\x18\x07 \x01(\x0b\x32(.yandex.cloud.storage.v1.WebsiteSettings\x12\x37\n\nversioning\x18\x08 \x01(\x0e\x32#.yandex.cloud.storage.v1.Versioning\x12?\n\x0flifecycle_rules\x18\t \x03(\x0b\x32&.yandex.cloud.storage.v1.LifecycleRule\x12\'\n\x06policy\x18\n \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x03\x61\x63l\x18\x0b \x01(\x0b\x32\x1c.yandex.cloud.storage.v1.ACL\x12*\n\x04tags\x18\x0c \x03(\x0b\x32\x1c.yandex.cloud.storage.v1.Tag\x12\x38\n\x0bobject_lock\x18\r \x01(\x0b\x32#.yandex.cloud.storage.v1.ObjectLock\x12\x37\n\nencryption\x18\x0e \x01(\x0b\x32#.yandex.cloud.storage.v1.Encryption\x12Y\n\x19\x61llowed_private_endpoints\x18\x0f \x01(\x0b\x32\x36.yandex.cloud.storage.v1.BucketAllowedPrivateEndpoints\"$\n\x14UpdateBucketMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\")\n\x13\x44\x65leteBucketRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"$\n\x14\x44\x65leteBucketMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\"+\n\x15GetBucketStatsRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"1\n\x1bGetBucketHTTPSConfigRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"n\n\x1cSelfManagedHTTPSConfigParams\x12&\n\x0f\x63\x65rtificate_pem\x18\x01 \x01(\tB\r\x8a\xc8\x31\t<=3145728\x12&\n\x0fprivate_key_pem\x18\x02 \x01(\tB\r\x8a\xc8\x31\t<=3145728\"=\n#CertificateManagerHTTPSConfigParams\x12\x16\n\x0e\x63\x65rtificate_id\x18\x01 \x01(\t\"\xed\x01\n\x1bSetBucketHTTPSConfigRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12M\n\x0cself_managed\x18\x02 \x01(\x0b\x32\x35.yandex.cloud.storage.v1.SelfManagedHTTPSConfigParamsH\x00\x12[\n\x13\x63\x65rtificate_manager\x18\x03 \x01(\x0b\x32<.yandex.cloud.storage.v1.CertificateManagerHTTPSConfigParamsH\x00\x42\x0e\n\x06params\x12\x04\xc0\xc1\x31\x01\",\n\x1cSetBucketHTTPSConfigMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\"4\n\x1e\x44\x65leteBucketHTTPSConfigRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"/\n\x1f\x44\x65leteBucketHTTPSConfigMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t2\xe1\x0b\n\rBucketService\x12~\n\x04List\x12+.yandex.cloud.storage.v1.ListBucketsRequest\x1a,.yandex.cloud.storage.v1.ListBucketsResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/storage/v1/buckets\x12u\n\x03Get\x12).yandex.cloud.storage.v1.GetBucketRequest\x1a\x1f.yandex.cloud.storage.v1.Bucket\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/storage/v1/buckets/{name}\x12\x9b\x01\n\x06\x43reate\x12,.yandex.cloud.storage.v1.CreateBucketRequest\x1a!.yandex.cloud.operation.Operation\"@\xb2\xd2*\x1e\n\x14\x43reateBucketMetadata\x12\x06\x42ucket\x82\xd3\xe4\x93\x02\x18\"\x13/storage/v1/buckets:\x01*\x12\xa2\x01\n\x06Update\x12,.yandex.cloud.storage.v1.UpdateBucketRequest\x1a!.yandex.cloud.operation.Operation\"G\xb2\xd2*\x1e\n\x14UpdateBucketMetadata\x12\x06\x42ucket\x82\xd3\xe4\x93\x02\x1f\x32\x1a/storage/v1/buckets/{name}:\x01*\x12\xae\x01\n\x06\x44\x65lete\x12,.yandex.cloud.storage.v1.DeleteBucketRequest\x1a!.yandex.cloud.operation.Operation\"S\xb2\xd2*-\n\x14\x44\x65leteBucketMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02\x1c*\x1a/storage/v1/buckets/{name}\x12\x8d\x01\n\x08GetStats\x12..yandex.cloud.storage.v1.GetBucketStatsRequest\x1a$.yandex.cloud.storage.v1.BucketStats\"+\x82\xd3\xe4\x93\x02%\x12#/storage/v1/buckets/{name}:getStats\x12\x9f\x01\n\x0eGetHTTPSConfig\x12\x34.yandex.cloud.storage.v1.GetBucketHTTPSConfigRequest\x1a$.yandex.cloud.storage.v1.HTTPSConfig\"1\x82\xd3\xe4\x93\x02+\x12)/storage/v1/buckets/{name}:getHttpsConfig\x12\xce\x01\n\x0eSetHTTPSConfig\x12\x34.yandex.cloud.storage.v1.SetBucketHTTPSConfigRequest\x1a!.yandex.cloud.operation.Operation\"c\xb2\xd2*+\n\x1cSetBucketHTTPSConfigMetadata\x12\x0bHTTPSConfig\x82\xd3\xe4\x93\x02.\")/storage/v1/buckets/{name}:setHttpsConfig:\x01*\x12\xe1\x01\n\x11\x44\x65leteHTTPSConfig\x12\x37.yandex.cloud.storage.v1.DeleteBucketHTTPSConfigRequest\x1a!.yandex.cloud.operation.Operation\"p\xb2\xd2*8\n\x1f\x44\x65leteBucketHTTPSConfigMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02.\",/storage/v1/buckets/{name}:deleteHttpsConfigBb\n\x1byandex.cloud.api.storage.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/storage/v1;storageb\x06proto3')
|
|
35
35
|
|
|
36
36
|
_globals = globals()
|
|
37
37
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -94,33 +94,33 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
94
94
|
_globals['_LISTBUCKETSRESPONSE']._serialized_start=543
|
|
95
95
|
_globals['_LISTBUCKETSRESPONSE']._serialized_end=614
|
|
96
96
|
_globals['_CREATEBUCKETREQUEST']._serialized_start=617
|
|
97
|
-
_globals['_CREATEBUCKETREQUEST']._serialized_end=
|
|
98
|
-
_globals['_CREATEBUCKETMETADATA']._serialized_start=
|
|
99
|
-
_globals['_CREATEBUCKETMETADATA']._serialized_end=
|
|
100
|
-
_globals['_UPDATEBUCKETREQUEST']._serialized_start=
|
|
101
|
-
_globals['_UPDATEBUCKETREQUEST']._serialized_end=
|
|
102
|
-
_globals['_UPDATEBUCKETMETADATA']._serialized_start=
|
|
103
|
-
_globals['_UPDATEBUCKETMETADATA']._serialized_end=
|
|
104
|
-
_globals['_DELETEBUCKETREQUEST']._serialized_start=
|
|
105
|
-
_globals['_DELETEBUCKETREQUEST']._serialized_end=
|
|
106
|
-
_globals['_DELETEBUCKETMETADATA']._serialized_start=
|
|
107
|
-
_globals['_DELETEBUCKETMETADATA']._serialized_end=
|
|
108
|
-
_globals['_GETBUCKETSTATSREQUEST']._serialized_start=
|
|
109
|
-
_globals['_GETBUCKETSTATSREQUEST']._serialized_end=
|
|
110
|
-
_globals['_GETBUCKETHTTPSCONFIGREQUEST']._serialized_start=
|
|
111
|
-
_globals['_GETBUCKETHTTPSCONFIGREQUEST']._serialized_end=
|
|
112
|
-
_globals['_SELFMANAGEDHTTPSCONFIGPARAMS']._serialized_start=
|
|
113
|
-
_globals['_SELFMANAGEDHTTPSCONFIGPARAMS']._serialized_end=
|
|
114
|
-
_globals['_CERTIFICATEMANAGERHTTPSCONFIGPARAMS']._serialized_start=
|
|
115
|
-
_globals['_CERTIFICATEMANAGERHTTPSCONFIGPARAMS']._serialized_end=
|
|
116
|
-
_globals['_SETBUCKETHTTPSCONFIGREQUEST']._serialized_start=
|
|
117
|
-
_globals['_SETBUCKETHTTPSCONFIGREQUEST']._serialized_end=
|
|
118
|
-
_globals['_SETBUCKETHTTPSCONFIGMETADATA']._serialized_start=
|
|
119
|
-
_globals['_SETBUCKETHTTPSCONFIGMETADATA']._serialized_end=
|
|
120
|
-
_globals['_DELETEBUCKETHTTPSCONFIGREQUEST']._serialized_start=
|
|
121
|
-
_globals['_DELETEBUCKETHTTPSCONFIGREQUEST']._serialized_end=
|
|
122
|
-
_globals['_DELETEBUCKETHTTPSCONFIGMETADATA']._serialized_start=
|
|
123
|
-
_globals['_DELETEBUCKETHTTPSCONFIGMETADATA']._serialized_end=
|
|
124
|
-
_globals['_BUCKETSERVICE']._serialized_start=
|
|
125
|
-
_globals['_BUCKETSERVICE']._serialized_end=
|
|
97
|
+
_globals['_CREATEBUCKETREQUEST']._serialized_end=1117
|
|
98
|
+
_globals['_CREATEBUCKETMETADATA']._serialized_start=1119
|
|
99
|
+
_globals['_CREATEBUCKETMETADATA']._serialized_end=1155
|
|
100
|
+
_globals['_UPDATEBUCKETREQUEST']._serialized_start=1158
|
|
101
|
+
_globals['_UPDATEBUCKETREQUEST']._serialized_end=1955
|
|
102
|
+
_globals['_UPDATEBUCKETMETADATA']._serialized_start=1957
|
|
103
|
+
_globals['_UPDATEBUCKETMETADATA']._serialized_end=1993
|
|
104
|
+
_globals['_DELETEBUCKETREQUEST']._serialized_start=1995
|
|
105
|
+
_globals['_DELETEBUCKETREQUEST']._serialized_end=2036
|
|
106
|
+
_globals['_DELETEBUCKETMETADATA']._serialized_start=2038
|
|
107
|
+
_globals['_DELETEBUCKETMETADATA']._serialized_end=2074
|
|
108
|
+
_globals['_GETBUCKETSTATSREQUEST']._serialized_start=2076
|
|
109
|
+
_globals['_GETBUCKETSTATSREQUEST']._serialized_end=2119
|
|
110
|
+
_globals['_GETBUCKETHTTPSCONFIGREQUEST']._serialized_start=2121
|
|
111
|
+
_globals['_GETBUCKETHTTPSCONFIGREQUEST']._serialized_end=2170
|
|
112
|
+
_globals['_SELFMANAGEDHTTPSCONFIGPARAMS']._serialized_start=2172
|
|
113
|
+
_globals['_SELFMANAGEDHTTPSCONFIGPARAMS']._serialized_end=2282
|
|
114
|
+
_globals['_CERTIFICATEMANAGERHTTPSCONFIGPARAMS']._serialized_start=2284
|
|
115
|
+
_globals['_CERTIFICATEMANAGERHTTPSCONFIGPARAMS']._serialized_end=2345
|
|
116
|
+
_globals['_SETBUCKETHTTPSCONFIGREQUEST']._serialized_start=2348
|
|
117
|
+
_globals['_SETBUCKETHTTPSCONFIGREQUEST']._serialized_end=2585
|
|
118
|
+
_globals['_SETBUCKETHTTPSCONFIGMETADATA']._serialized_start=2587
|
|
119
|
+
_globals['_SETBUCKETHTTPSCONFIGMETADATA']._serialized_end=2631
|
|
120
|
+
_globals['_DELETEBUCKETHTTPSCONFIGREQUEST']._serialized_start=2633
|
|
121
|
+
_globals['_DELETEBUCKETHTTPSCONFIGREQUEST']._serialized_end=2685
|
|
122
|
+
_globals['_DELETEBUCKETHTTPSCONFIGMETADATA']._serialized_start=2687
|
|
123
|
+
_globals['_DELETEBUCKETHTTPSCONFIGMETADATA']._serialized_end=2734
|
|
124
|
+
_globals['_BUCKETSERVICE']._serialized_start=2737
|
|
125
|
+
_globals['_BUCKETSERVICE']._serialized_end=4242
|
|
126
126
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -136,6 +136,9 @@ class CreateBucketRequest(google.protobuf.message.Message):
|
|
|
136
136
|
ANONYMOUS_ACCESS_FLAGS_FIELD_NUMBER: builtins.int
|
|
137
137
|
ACL_FIELD_NUMBER: builtins.int
|
|
138
138
|
TAGS_FIELD_NUMBER: builtins.int
|
|
139
|
+
ENCRYPTION_FIELD_NUMBER: builtins.int
|
|
140
|
+
VERSIONING_FIELD_NUMBER: builtins.int
|
|
141
|
+
ALLOWED_PRIVATE_ENDPOINTS_FIELD_NUMBER: builtins.int
|
|
139
142
|
name: builtins.str
|
|
140
143
|
"""Name of the bucket.
|
|
141
144
|
|
|
@@ -156,6 +159,10 @@ class CreateBucketRequest(google.protobuf.message.Message):
|
|
|
156
159
|
"""Maximum size of the bucket.
|
|
157
160
|
For details, see [documentation](/docs/storage/operations/buckets/limit-max-volume).
|
|
158
161
|
"""
|
|
162
|
+
versioning: yandex.cloud.storage.v1.bucket_pb2.Versioning.ValueType
|
|
163
|
+
"""Bucket versioning status.
|
|
164
|
+
For details, see [documentation](/docs/storage/concepts/versioning).
|
|
165
|
+
"""
|
|
159
166
|
@property
|
|
160
167
|
def anonymous_access_flags(self) -> yandex.cloud.storage.v1.bucket_pb2.AnonymousAccessFlags:
|
|
161
168
|
"""Flags for configuring public (anonymous) access to the bucket's content and settings.
|
|
@@ -174,6 +181,18 @@ class CreateBucketRequest(google.protobuf.message.Message):
|
|
|
174
181
|
For details, see [documentation](/docs/resource-manager/concepts/labels).
|
|
175
182
|
"""
|
|
176
183
|
|
|
184
|
+
@property
|
|
185
|
+
def encryption(self) -> yandex.cloud.storage.v1.bucket_pb2.Encryption:
|
|
186
|
+
"""Configuration for bucket's encryption.
|
|
187
|
+
For details, see [documentation](/docs/storage/concepts/encryption).
|
|
188
|
+
"""
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def allowed_private_endpoints(self) -> yandex.cloud.storage.v1.bucket_pb2.BucketAllowedPrivateEndpoints:
|
|
192
|
+
"""Configuration for bucket's allowed private endpoints.
|
|
193
|
+
requires permission s3:PutBucketAllowedPrivateEndpoints
|
|
194
|
+
"""
|
|
195
|
+
|
|
177
196
|
def __init__(
|
|
178
197
|
self,
|
|
179
198
|
*,
|
|
@@ -184,9 +203,12 @@ class CreateBucketRequest(google.protobuf.message.Message):
|
|
|
184
203
|
anonymous_access_flags: yandex.cloud.storage.v1.bucket_pb2.AnonymousAccessFlags | None = ...,
|
|
185
204
|
acl: yandex.cloud.storage.v1.bucket_pb2.ACL | None = ...,
|
|
186
205
|
tags: collections.abc.Iterable[yandex.cloud.storage.v1.bucket_pb2.Tag] | None = ...,
|
|
206
|
+
encryption: yandex.cloud.storage.v1.bucket_pb2.Encryption | None = ...,
|
|
207
|
+
versioning: yandex.cloud.storage.v1.bucket_pb2.Versioning.ValueType = ...,
|
|
208
|
+
allowed_private_endpoints: yandex.cloud.storage.v1.bucket_pb2.BucketAllowedPrivateEndpoints | None = ...,
|
|
187
209
|
) -> None: ...
|
|
188
|
-
def HasField(self, field_name: typing.Literal["acl", b"acl", "anonymous_access_flags", b"anonymous_access_flags"]) -> builtins.bool: ...
|
|
189
|
-
def ClearField(self, field_name: typing.Literal["acl", b"acl", "anonymous_access_flags", b"anonymous_access_flags", "default_storage_class", b"default_storage_class", "folder_id", b"folder_id", "max_size", b"max_size", "name", b"name", "tags", b"tags"]) -> None: ...
|
|
210
|
+
def HasField(self, field_name: typing.Literal["acl", b"acl", "allowed_private_endpoints", b"allowed_private_endpoints", "anonymous_access_flags", b"anonymous_access_flags", "encryption", b"encryption"]) -> builtins.bool: ...
|
|
211
|
+
def ClearField(self, field_name: typing.Literal["acl", b"acl", "allowed_private_endpoints", b"allowed_private_endpoints", "anonymous_access_flags", b"anonymous_access_flags", "default_storage_class", b"default_storage_class", "encryption", b"encryption", "folder_id", b"folder_id", "max_size", b"max_size", "name", b"name", "tags", b"tags", "versioning", b"versioning"]) -> None: ...
|
|
190
212
|
|
|
191
213
|
global___CreateBucketRequest = CreateBucketRequest
|
|
192
214
|
|
|
@@ -301,8 +323,8 @@ class UpdateBucketRequest(google.protobuf.message.Message):
|
|
|
301
323
|
|
|
302
324
|
@property
|
|
303
325
|
def encryption(self) -> yandex.cloud.storage.v1.bucket_pb2.Encryption:
|
|
304
|
-
"""Configuration for bucket's encryption
|
|
305
|
-
For
|
|
326
|
+
"""Configuration for bucket's encryption.
|
|
327
|
+
For details, see [documentation](/docs/storage/concepts/encryption)
|
|
306
328
|
"""
|
|
307
329
|
|
|
308
330
|
@property
|
yandexcloud/__init__.py
CHANGED
yandexcloud/_sdk.py
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import inspect
|
|
2
|
-
from typing import TYPE_CHECKING, Any, Dict, Optional, Type, Union
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Type, TypeVar, Union
|
|
3
3
|
|
|
4
4
|
import grpc
|
|
5
5
|
|
|
6
6
|
from yandexcloud import _channels, _helpers, _operation_waiter, _retry_policy
|
|
7
7
|
from yandexcloud._wrappers import Wrappers
|
|
8
8
|
|
|
9
|
+
Client = TypeVar("Client")
|
|
10
|
+
|
|
9
11
|
if TYPE_CHECKING:
|
|
10
12
|
import logging
|
|
11
13
|
|
|
@@ -70,7 +72,7 @@ class SDK:
|
|
|
70
72
|
|
|
71
73
|
def client(
|
|
72
74
|
self,
|
|
73
|
-
stub_ctor:
|
|
75
|
+
stub_ctor: Callable[[Any], Client],
|
|
74
76
|
interceptor: Union[
|
|
75
77
|
grpc.UnaryUnaryClientInterceptor,
|
|
76
78
|
grpc.UnaryStreamClientInterceptor,
|
|
@@ -80,7 +82,7 @@ class SDK:
|
|
|
80
82
|
] = None,
|
|
81
83
|
endpoint: Optional[str] = None,
|
|
82
84
|
insecure: bool = False,
|
|
83
|
-
) ->
|
|
85
|
+
) -> Client:
|
|
84
86
|
service = _service_for_ctor(stub_ctor)
|
|
85
87
|
channel = self._channels.channel(service, endpoint, insecure)
|
|
86
88
|
if interceptor is not None:
|