yandexcloud 0.317.0__py3-none-any.whl → 0.319.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/assistants/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +101 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.py +88 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +293 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +127 -0
- yandex/cloud/ai/assistants/v1/common_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.py +40 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +154 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +237 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/searchindex/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +47 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +43 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +72 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +100 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +59 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.py +37 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +132 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +205 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +200 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +111 -0
- yandex/cloud/ai/assistants/v1/threads/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +176 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.py +55 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +133 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.py +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +200 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/users/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.py +75 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +195 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/common/__init__.py +0 -0
- yandex/cloud/ai/common/common_pb2.py +30 -0
- yandex/cloud/ai/common/common_pb2.pyi +69 -0
- yandex/cloud/ai/common/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/common/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/__init__.py +0 -0
- yandex/cloud/ai/files/v1/__init__.py +0 -0
- yandex/cloud/ai/files/v1/file_pb2.py +32 -0
- yandex/cloud/ai/files/v1/file_pb2.pyi +85 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.py +4 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/v1/file_service_pb2.py +85 -0
- yandex/cloud/ai/files/v1/file_service_pb2.pyi +228 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +127 -0
- yandex/cloud/backup/v1/provider_service_pb2.py +12 -10
- yandex/cloud/backup/v1/provider_service_pb2.pyi +5 -1
- yandex/cloud/billing/v1/customer_pb2.pyi +32 -8
- yandex/cloud/billing/v1/customer_service_pb2.pyi +10 -2
- yandex/cloud/cloudrouter/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.py +42 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.pyi +215 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.py +4 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.py +57 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.pyi +137 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.py +179 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.pyi +138 -0
- yandex/cloud/iam/v1/refresh_token_pb2.py +29 -0
- yandex/cloud/iam/v1/refresh_token_pb2.pyi +98 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.py +4 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.py +67 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.pyi +186 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.py +105 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.pyi +71 -0
- yandex/cloud/iam/v1/service_control_pb2.py +5 -5
- yandex/cloud/iam/v1/service_control_pb2.pyi +4 -0
- yandex/cloud/lockbox/v1/secret_pb2.py +23 -11
- yandex/cloud/lockbox/v1/secret_pb2.pyi +73 -4
- yandex/cloud/lockbox/v1/secret_service_pb2.py +46 -46
- yandex/cloud/lockbox/v1/secret_service_pb2.pyi +14 -3
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.py +27 -25
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.pyi +16 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.py +81 -57
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.pyi +144 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.py +68 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.pyi +40 -0
- yandex/cloud/oauth/claims_pb2.py +8 -7
- yandex/cloud/oauth/claims_pb2.pyi +9 -2
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.pyi +1 -1
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +3 -1
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.pyi +2 -0
- yandex/cloud/storage/v1/s3api_pb2.py +35 -0
- yandex/cloud/storage/v1/s3api_pb2.pyi +181 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.py +4 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.pyi +17 -0
- yandexcloud/_sdk.py +2 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/RECORD +135 -28
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/assistants/v1/users/user_service.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from yandex.cloud.ai.common import common_pb2 as yandex_dot_cloud_dot_ai_dot_common_dot_common__pb2
|
|
15
|
+
from yandex.cloud.ai.assistants.v1.users import user_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2
|
|
16
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
17
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
18
|
+
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/ai/assistants/v1/users/user_service.proto\x12#yandex.cloud.ai.assistants.v1.users\x1a#yandex/cloud/ai/common/common.proto\x1a.yandex/cloud/ai/assistants/v1/users/user.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"\xa7\x02\n\x11\x43reateUserRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x43\n\x11\x65xpiration_config\x18\x05 \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12R\n\x06labels\x18\x06 \x03(\x0b\x32\x42.yandex.cloud.ai.assistants.v1.users.CreateUserRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\'\n\x0eGetUserRequest\x12\x15\n\x07user_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\xcc\x02\n\x11UpdateUserRequest\x12\x15\n\x07user_id\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\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x43\n\x11\x65xpiration_config\x18\x05 \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12R\n\x06labels\x18\x06 \x03(\x0b\x32\x42.yandex.cloud.ai.assistants.v1.users.UpdateUserRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"*\n\x11\x44\x65leteUserRequest\x12\x15\n\x07user_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\x14\n\x12\x44\x65leteUserResponse\"R\n\x10ListUsersRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x11\n\tpage_size\x18\x02 \x01(\x03\x12\x12\n\npage_token\x18\x03 \x01(\t\"f\n\x11ListUsersResponse\x12\x38\n\x05users\x18\x01 \x03(\x0b\x32).yandex.cloud.ai.assistants.v1.users.User\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xe6\x05\n\x0bUserService\x12\x87\x01\n\x06\x43reate\x12\x36.yandex.cloud.ai.assistants.v1.users.CreateUserRequest\x1a).yandex.cloud.ai.assistants.v1.users.User\"\x1a\x82\xd3\xe4\x93\x02\x14\"\x0f/users/v1/users:\x01*\x12\x88\x01\n\x03Get\x12\x33.yandex.cloud.ai.assistants.v1.users.GetUserRequest\x1a).yandex.cloud.ai.assistants.v1.users.User\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/users/v1/users/{user_id}\x12\x91\x01\n\x06Update\x12\x36.yandex.cloud.ai.assistants.v1.users.UpdateUserRequest\x1a).yandex.cloud.ai.assistants.v1.users.User\"$\x82\xd3\xe4\x93\x02\x1e\x32\x19/users/v1/users/{user_id}:\x01*\x12\x9c\x01\n\x06\x44\x65lete\x12\x36.yandex.cloud.ai.assistants.v1.users.DeleteUserRequest\x1a\x37.yandex.cloud.ai.assistants.v1.users.DeleteUserResponse\"!\x82\xd3\xe4\x93\x02\x1b*\x19/users/v1/users/{user_id}\x12\x8e\x01\n\x04List\x12\x35.yandex.cloud.ai.assistants.v1.users.ListUsersRequest\x1a\x36.yandex.cloud.ai.assistants.v1.users.ListUsersResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/users/v1/usersBx\n\'yandex.cloud.api.ai.assistants.v1.usersZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/users;usersb\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.v1.users.user_service_pb2', _globals)
|
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'\n\'yandex.cloud.api.ai.assistants.v1.usersZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/users;users'
|
|
29
|
+
_CREATEUSERREQUEST_LABELSENTRY._options = None
|
|
30
|
+
_CREATEUSERREQUEST_LABELSENTRY._serialized_options = b'8\001'
|
|
31
|
+
_CREATEUSERREQUEST.fields_by_name['folder_id']._options = None
|
|
32
|
+
_CREATEUSERREQUEST.fields_by_name['folder_id']._serialized_options = b'\350\3071\001'
|
|
33
|
+
_GETUSERREQUEST.fields_by_name['user_id']._options = None
|
|
34
|
+
_GETUSERREQUEST.fields_by_name['user_id']._serialized_options = b'\350\3071\001'
|
|
35
|
+
_UPDATEUSERREQUEST_LABELSENTRY._options = None
|
|
36
|
+
_UPDATEUSERREQUEST_LABELSENTRY._serialized_options = b'8\001'
|
|
37
|
+
_UPDATEUSERREQUEST.fields_by_name['user_id']._options = None
|
|
38
|
+
_UPDATEUSERREQUEST.fields_by_name['user_id']._serialized_options = b'\350\3071\001'
|
|
39
|
+
_UPDATEUSERREQUEST.fields_by_name['update_mask']._options = None
|
|
40
|
+
_UPDATEUSERREQUEST.fields_by_name['update_mask']._serialized_options = b'\350\3071\001'
|
|
41
|
+
_DELETEUSERREQUEST.fields_by_name['user_id']._options = None
|
|
42
|
+
_DELETEUSERREQUEST.fields_by_name['user_id']._serialized_options = b'\350\3071\001'
|
|
43
|
+
_LISTUSERSREQUEST.fields_by_name['folder_id']._options = None
|
|
44
|
+
_LISTUSERSREQUEST.fields_by_name['folder_id']._serialized_options = b'\350\3071\001'
|
|
45
|
+
_USERSERVICE.methods_by_name['Create']._options = None
|
|
46
|
+
_USERSERVICE.methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\024\"\017/users/v1/users:\001*'
|
|
47
|
+
_USERSERVICE.methods_by_name['Get']._options = None
|
|
48
|
+
_USERSERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\033\022\031/users/v1/users/{user_id}'
|
|
49
|
+
_USERSERVICE.methods_by_name['Update']._options = None
|
|
50
|
+
_USERSERVICE.methods_by_name['Update']._serialized_options = b'\202\323\344\223\002\0362\031/users/v1/users/{user_id}:\001*'
|
|
51
|
+
_USERSERVICE.methods_by_name['Delete']._options = None
|
|
52
|
+
_USERSERVICE.methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\033*\031/users/v1/users/{user_id}'
|
|
53
|
+
_USERSERVICE.methods_by_name['List']._options = None
|
|
54
|
+
_USERSERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\021\022\017/users/v1/users'
|
|
55
|
+
_globals['_CREATEUSERREQUEST']._serialized_start=276
|
|
56
|
+
_globals['_CREATEUSERREQUEST']._serialized_end=571
|
|
57
|
+
_globals['_CREATEUSERREQUEST_LABELSENTRY']._serialized_start=526
|
|
58
|
+
_globals['_CREATEUSERREQUEST_LABELSENTRY']._serialized_end=571
|
|
59
|
+
_globals['_GETUSERREQUEST']._serialized_start=573
|
|
60
|
+
_globals['_GETUSERREQUEST']._serialized_end=612
|
|
61
|
+
_globals['_UPDATEUSERREQUEST']._serialized_start=615
|
|
62
|
+
_globals['_UPDATEUSERREQUEST']._serialized_end=947
|
|
63
|
+
_globals['_UPDATEUSERREQUEST_LABELSENTRY']._serialized_start=526
|
|
64
|
+
_globals['_UPDATEUSERREQUEST_LABELSENTRY']._serialized_end=571
|
|
65
|
+
_globals['_DELETEUSERREQUEST']._serialized_start=949
|
|
66
|
+
_globals['_DELETEUSERREQUEST']._serialized_end=991
|
|
67
|
+
_globals['_DELETEUSERRESPONSE']._serialized_start=993
|
|
68
|
+
_globals['_DELETEUSERRESPONSE']._serialized_end=1013
|
|
69
|
+
_globals['_LISTUSERSREQUEST']._serialized_start=1015
|
|
70
|
+
_globals['_LISTUSERSREQUEST']._serialized_end=1097
|
|
71
|
+
_globals['_LISTUSERSRESPONSE']._serialized_start=1099
|
|
72
|
+
_globals['_LISTUSERSRESPONSE']._serialized_end=1201
|
|
73
|
+
_globals['_USERSERVICE']._serialized_start=1204
|
|
74
|
+
_globals['_USERSERVICE']._serialized_end=1946
|
|
75
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.field_mask_pb2
|
|
10
|
+
import google.protobuf.internal.containers
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import typing
|
|
13
|
+
import yandex.cloud.ai.assistants.v1.users.user_pb2
|
|
14
|
+
import yandex.cloud.ai.common.common_pb2
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class CreateUserRequest(google.protobuf.message.Message):
|
|
20
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
|
+
|
|
22
|
+
@typing.final
|
|
23
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
25
|
+
|
|
26
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
27
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
28
|
+
key: builtins.str
|
|
29
|
+
value: builtins.str
|
|
30
|
+
def __init__(
|
|
31
|
+
self,
|
|
32
|
+
*,
|
|
33
|
+
key: builtins.str = ...,
|
|
34
|
+
value: builtins.str = ...,
|
|
35
|
+
) -> None: ...
|
|
36
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
37
|
+
|
|
38
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
39
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
40
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
41
|
+
SOURCE_FIELD_NUMBER: builtins.int
|
|
42
|
+
EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
|
|
43
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
44
|
+
folder_id: builtins.str
|
|
45
|
+
name: builtins.str
|
|
46
|
+
description: builtins.str
|
|
47
|
+
source: builtins.str
|
|
48
|
+
@property
|
|
49
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig: ...
|
|
50
|
+
@property
|
|
51
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
52
|
+
def __init__(
|
|
53
|
+
self,
|
|
54
|
+
*,
|
|
55
|
+
folder_id: builtins.str = ...,
|
|
56
|
+
name: builtins.str = ...,
|
|
57
|
+
description: builtins.str = ...,
|
|
58
|
+
source: builtins.str = ...,
|
|
59
|
+
expiration_config: yandex.cloud.ai.common.common_pb2.ExpirationConfig | None = ...,
|
|
60
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
61
|
+
) -> None: ...
|
|
62
|
+
def HasField(self, field_name: typing.Literal["expiration_config", b"expiration_config"]) -> builtins.bool: ...
|
|
63
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "expiration_config", b"expiration_config", "folder_id", b"folder_id", "labels", b"labels", "name", b"name", "source", b"source"]) -> None: ...
|
|
64
|
+
|
|
65
|
+
global___CreateUserRequest = CreateUserRequest
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class GetUserRequest(google.protobuf.message.Message):
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
70
|
+
|
|
71
|
+
USER_ID_FIELD_NUMBER: builtins.int
|
|
72
|
+
user_id: builtins.str
|
|
73
|
+
def __init__(
|
|
74
|
+
self,
|
|
75
|
+
*,
|
|
76
|
+
user_id: builtins.str = ...,
|
|
77
|
+
) -> None: ...
|
|
78
|
+
def ClearField(self, field_name: typing.Literal["user_id", b"user_id"]) -> None: ...
|
|
79
|
+
|
|
80
|
+
global___GetUserRequest = GetUserRequest
|
|
81
|
+
|
|
82
|
+
@typing.final
|
|
83
|
+
class UpdateUserRequest(google.protobuf.message.Message):
|
|
84
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
85
|
+
|
|
86
|
+
@typing.final
|
|
87
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
88
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
89
|
+
|
|
90
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
91
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
92
|
+
key: builtins.str
|
|
93
|
+
value: builtins.str
|
|
94
|
+
def __init__(
|
|
95
|
+
self,
|
|
96
|
+
*,
|
|
97
|
+
key: builtins.str = ...,
|
|
98
|
+
value: builtins.str = ...,
|
|
99
|
+
) -> None: ...
|
|
100
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
101
|
+
|
|
102
|
+
USER_ID_FIELD_NUMBER: builtins.int
|
|
103
|
+
UPDATE_MASK_FIELD_NUMBER: builtins.int
|
|
104
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
105
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
106
|
+
EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
|
|
107
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
108
|
+
user_id: builtins.str
|
|
109
|
+
name: builtins.str
|
|
110
|
+
description: builtins.str
|
|
111
|
+
@property
|
|
112
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: ...
|
|
113
|
+
@property
|
|
114
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig: ...
|
|
115
|
+
@property
|
|
116
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
117
|
+
def __init__(
|
|
118
|
+
self,
|
|
119
|
+
*,
|
|
120
|
+
user_id: builtins.str = ...,
|
|
121
|
+
update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
|
|
122
|
+
name: builtins.str = ...,
|
|
123
|
+
description: builtins.str = ...,
|
|
124
|
+
expiration_config: yandex.cloud.ai.common.common_pb2.ExpirationConfig | None = ...,
|
|
125
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
126
|
+
) -> None: ...
|
|
127
|
+
def HasField(self, field_name: typing.Literal["expiration_config", b"expiration_config", "update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
128
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "expiration_config", b"expiration_config", "labels", b"labels", "name", b"name", "update_mask", b"update_mask", "user_id", b"user_id"]) -> None: ...
|
|
129
|
+
|
|
130
|
+
global___UpdateUserRequest = UpdateUserRequest
|
|
131
|
+
|
|
132
|
+
@typing.final
|
|
133
|
+
class DeleteUserRequest(google.protobuf.message.Message):
|
|
134
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
135
|
+
|
|
136
|
+
USER_ID_FIELD_NUMBER: builtins.int
|
|
137
|
+
user_id: builtins.str
|
|
138
|
+
def __init__(
|
|
139
|
+
self,
|
|
140
|
+
*,
|
|
141
|
+
user_id: builtins.str = ...,
|
|
142
|
+
) -> None: ...
|
|
143
|
+
def ClearField(self, field_name: typing.Literal["user_id", b"user_id"]) -> None: ...
|
|
144
|
+
|
|
145
|
+
global___DeleteUserRequest = DeleteUserRequest
|
|
146
|
+
|
|
147
|
+
@typing.final
|
|
148
|
+
class DeleteUserResponse(google.protobuf.message.Message):
|
|
149
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
150
|
+
|
|
151
|
+
def __init__(
|
|
152
|
+
self,
|
|
153
|
+
) -> None: ...
|
|
154
|
+
|
|
155
|
+
global___DeleteUserResponse = DeleteUserResponse
|
|
156
|
+
|
|
157
|
+
@typing.final
|
|
158
|
+
class ListUsersRequest(google.protobuf.message.Message):
|
|
159
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
160
|
+
|
|
161
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
162
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
163
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
164
|
+
folder_id: builtins.str
|
|
165
|
+
page_size: builtins.int
|
|
166
|
+
page_token: builtins.str
|
|
167
|
+
def __init__(
|
|
168
|
+
self,
|
|
169
|
+
*,
|
|
170
|
+
folder_id: builtins.str = ...,
|
|
171
|
+
page_size: builtins.int = ...,
|
|
172
|
+
page_token: builtins.str = ...,
|
|
173
|
+
) -> None: ...
|
|
174
|
+
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
175
|
+
|
|
176
|
+
global___ListUsersRequest = ListUsersRequest
|
|
177
|
+
|
|
178
|
+
@typing.final
|
|
179
|
+
class ListUsersResponse(google.protobuf.message.Message):
|
|
180
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
181
|
+
|
|
182
|
+
USERS_FIELD_NUMBER: builtins.int
|
|
183
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
184
|
+
next_page_token: builtins.str
|
|
185
|
+
@property
|
|
186
|
+
def users(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.users.user_pb2.User]: ...
|
|
187
|
+
def __init__(
|
|
188
|
+
self,
|
|
189
|
+
*,
|
|
190
|
+
users: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.users.user_pb2.User] | None = ...,
|
|
191
|
+
next_page_token: builtins.str = ...,
|
|
192
|
+
) -> None: ...
|
|
193
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "users", b"users"]) -> None: ...
|
|
194
|
+
|
|
195
|
+
global___ListUsersResponse = ListUsersResponse
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from yandex.cloud.ai.assistants.v1.users import user_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2
|
|
6
|
+
from yandex.cloud.ai.assistants.v1.users import user_service_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class UserServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Create = channel.unary_unary(
|
|
19
|
+
'/yandex.cloud.ai.assistants.v1.users.UserService/Create',
|
|
20
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.CreateUserRequest.SerializeToString,
|
|
21
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.Get = channel.unary_unary(
|
|
24
|
+
'/yandex.cloud.ai.assistants.v1.users.UserService/Get',
|
|
25
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.GetUserRequest.SerializeToString,
|
|
26
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.Update = channel.unary_unary(
|
|
29
|
+
'/yandex.cloud.ai.assistants.v1.users.UserService/Update',
|
|
30
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.UpdateUserRequest.SerializeToString,
|
|
31
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.Delete = channel.unary_unary(
|
|
34
|
+
'/yandex.cloud.ai.assistants.v1.users.UserService/Delete',
|
|
35
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.DeleteUserRequest.SerializeToString,
|
|
36
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.DeleteUserResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.List = channel.unary_unary(
|
|
39
|
+
'/yandex.cloud.ai.assistants.v1.users.UserService/List',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.ListUsersRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.ListUsersResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class UserServiceServicer(object):
|
|
46
|
+
"""Missing associated documentation comment in .proto file."""
|
|
47
|
+
|
|
48
|
+
def Create(self, request, context):
|
|
49
|
+
"""Missing associated documentation comment in .proto file."""
|
|
50
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
51
|
+
context.set_details('Method not implemented!')
|
|
52
|
+
raise NotImplementedError('Method not implemented!')
|
|
53
|
+
|
|
54
|
+
def Get(self, request, context):
|
|
55
|
+
"""Missing associated documentation comment in .proto file."""
|
|
56
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
57
|
+
context.set_details('Method not implemented!')
|
|
58
|
+
raise NotImplementedError('Method not implemented!')
|
|
59
|
+
|
|
60
|
+
def Update(self, request, context):
|
|
61
|
+
"""Missing associated documentation comment in .proto file."""
|
|
62
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
63
|
+
context.set_details('Method not implemented!')
|
|
64
|
+
raise NotImplementedError('Method not implemented!')
|
|
65
|
+
|
|
66
|
+
def Delete(self, request, context):
|
|
67
|
+
"""Missing associated documentation comment in .proto file."""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details('Method not implemented!')
|
|
70
|
+
raise NotImplementedError('Method not implemented!')
|
|
71
|
+
|
|
72
|
+
def List(self, request, context):
|
|
73
|
+
"""Missing associated documentation comment in .proto file."""
|
|
74
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
|
+
context.set_details('Method not implemented!')
|
|
76
|
+
raise NotImplementedError('Method not implemented!')
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def add_UserServiceServicer_to_server(servicer, server):
|
|
80
|
+
rpc_method_handlers = {
|
|
81
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
82
|
+
servicer.Create,
|
|
83
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.CreateUserRequest.FromString,
|
|
84
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.SerializeToString,
|
|
85
|
+
),
|
|
86
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
87
|
+
servicer.Get,
|
|
88
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.GetUserRequest.FromString,
|
|
89
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.SerializeToString,
|
|
90
|
+
),
|
|
91
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
92
|
+
servicer.Update,
|
|
93
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.UpdateUserRequest.FromString,
|
|
94
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.SerializeToString,
|
|
95
|
+
),
|
|
96
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
97
|
+
servicer.Delete,
|
|
98
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.DeleteUserRequest.FromString,
|
|
99
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.DeleteUserResponse.SerializeToString,
|
|
100
|
+
),
|
|
101
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
102
|
+
servicer.List,
|
|
103
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.ListUsersRequest.FromString,
|
|
104
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.ListUsersResponse.SerializeToString,
|
|
105
|
+
),
|
|
106
|
+
}
|
|
107
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
108
|
+
'yandex.cloud.ai.assistants.v1.users.UserService', rpc_method_handlers)
|
|
109
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# This class is part of an EXPERIMENTAL API.
|
|
113
|
+
class UserService(object):
|
|
114
|
+
"""Missing associated documentation comment in .proto file."""
|
|
115
|
+
|
|
116
|
+
@staticmethod
|
|
117
|
+
def Create(request,
|
|
118
|
+
target,
|
|
119
|
+
options=(),
|
|
120
|
+
channel_credentials=None,
|
|
121
|
+
call_credentials=None,
|
|
122
|
+
insecure=False,
|
|
123
|
+
compression=None,
|
|
124
|
+
wait_for_ready=None,
|
|
125
|
+
timeout=None,
|
|
126
|
+
metadata=None):
|
|
127
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.users.UserService/Create',
|
|
128
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.CreateUserRequest.SerializeToString,
|
|
129
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.FromString,
|
|
130
|
+
options, channel_credentials,
|
|
131
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
132
|
+
|
|
133
|
+
@staticmethod
|
|
134
|
+
def Get(request,
|
|
135
|
+
target,
|
|
136
|
+
options=(),
|
|
137
|
+
channel_credentials=None,
|
|
138
|
+
call_credentials=None,
|
|
139
|
+
insecure=False,
|
|
140
|
+
compression=None,
|
|
141
|
+
wait_for_ready=None,
|
|
142
|
+
timeout=None,
|
|
143
|
+
metadata=None):
|
|
144
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.users.UserService/Get',
|
|
145
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.GetUserRequest.SerializeToString,
|
|
146
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.FromString,
|
|
147
|
+
options, channel_credentials,
|
|
148
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
149
|
+
|
|
150
|
+
@staticmethod
|
|
151
|
+
def Update(request,
|
|
152
|
+
target,
|
|
153
|
+
options=(),
|
|
154
|
+
channel_credentials=None,
|
|
155
|
+
call_credentials=None,
|
|
156
|
+
insecure=False,
|
|
157
|
+
compression=None,
|
|
158
|
+
wait_for_ready=None,
|
|
159
|
+
timeout=None,
|
|
160
|
+
metadata=None):
|
|
161
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.users.UserService/Update',
|
|
162
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.UpdateUserRequest.SerializeToString,
|
|
163
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__pb2.User.FromString,
|
|
164
|
+
options, channel_credentials,
|
|
165
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
166
|
+
|
|
167
|
+
@staticmethod
|
|
168
|
+
def Delete(request,
|
|
169
|
+
target,
|
|
170
|
+
options=(),
|
|
171
|
+
channel_credentials=None,
|
|
172
|
+
call_credentials=None,
|
|
173
|
+
insecure=False,
|
|
174
|
+
compression=None,
|
|
175
|
+
wait_for_ready=None,
|
|
176
|
+
timeout=None,
|
|
177
|
+
metadata=None):
|
|
178
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.users.UserService/Delete',
|
|
179
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.DeleteUserRequest.SerializeToString,
|
|
180
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.DeleteUserResponse.FromString,
|
|
181
|
+
options, channel_credentials,
|
|
182
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
183
|
+
|
|
184
|
+
@staticmethod
|
|
185
|
+
def List(request,
|
|
186
|
+
target,
|
|
187
|
+
options=(),
|
|
188
|
+
channel_credentials=None,
|
|
189
|
+
call_credentials=None,
|
|
190
|
+
insecure=False,
|
|
191
|
+
compression=None,
|
|
192
|
+
wait_for_ready=None,
|
|
193
|
+
timeout=None,
|
|
194
|
+
metadata=None):
|
|
195
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.users.UserService/List',
|
|
196
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.ListUsersRequest.SerializeToString,
|
|
197
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_users_dot_user__service__pb2.ListUsersResponse.FromString,
|
|
198
|
+
options, channel_credentials,
|
|
199
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
import yandex.cloud.ai.assistants.v1.users.user_pb2
|
|
12
|
+
import yandex.cloud.ai.assistants.v1.users.user_service_pb2
|
|
13
|
+
|
|
14
|
+
_T = typing.TypeVar("_T")
|
|
15
|
+
|
|
16
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
17
|
+
|
|
18
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
class UserServiceStub:
|
|
22
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
23
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
24
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.CreateUserRequest,
|
|
25
|
+
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
29
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.GetUserRequest,
|
|
30
|
+
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
34
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.UpdateUserRequest,
|
|
35
|
+
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserRequest,
|
|
40
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserResponse,
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersRequest,
|
|
45
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersResponse,
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
class UserServiceAsyncStub:
|
|
49
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
50
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.CreateUserRequest,
|
|
51
|
+
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
55
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.GetUserRequest,
|
|
56
|
+
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.UpdateUserRequest,
|
|
61
|
+
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
65
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserRequest,
|
|
66
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserResponse,
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
70
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersRequest,
|
|
71
|
+
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersResponse,
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
class UserServiceServicer(metaclass=abc.ABCMeta):
|
|
75
|
+
@abc.abstractmethod
|
|
76
|
+
def Create(
|
|
77
|
+
self,
|
|
78
|
+
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.CreateUserRequest,
|
|
79
|
+
context: _ServicerContext,
|
|
80
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_pb2.User, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_pb2.User]]: ...
|
|
81
|
+
|
|
82
|
+
@abc.abstractmethod
|
|
83
|
+
def Get(
|
|
84
|
+
self,
|
|
85
|
+
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.GetUserRequest,
|
|
86
|
+
context: _ServicerContext,
|
|
87
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_pb2.User, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_pb2.User]]: ...
|
|
88
|
+
|
|
89
|
+
@abc.abstractmethod
|
|
90
|
+
def Update(
|
|
91
|
+
self,
|
|
92
|
+
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.UpdateUserRequest,
|
|
93
|
+
context: _ServicerContext,
|
|
94
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_pb2.User, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_pb2.User]]: ...
|
|
95
|
+
|
|
96
|
+
@abc.abstractmethod
|
|
97
|
+
def Delete(
|
|
98
|
+
self,
|
|
99
|
+
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserRequest,
|
|
100
|
+
context: _ServicerContext,
|
|
101
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserResponse]]: ...
|
|
102
|
+
|
|
103
|
+
@abc.abstractmethod
|
|
104
|
+
def List(
|
|
105
|
+
self,
|
|
106
|
+
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersRequest,
|
|
107
|
+
context: _ServicerContext,
|
|
108
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersResponse]]: ...
|
|
109
|
+
|
|
110
|
+
def add_UserServiceServicer_to_server(servicer: UserServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/common/common.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#yandex/cloud/ai/common/common.proto\x12\x16yandex.cloud.ai.common\"\xd4\x01\n\x10\x45xpirationConfig\x12T\n\x11\x65xpiration_policy\x18\x01 \x01(\x0e\x32\x39.yandex.cloud.ai.common.ExpirationConfig.ExpirationPolicy\x12\x10\n\x08ttl_days\x18\x02 \x01(\x03\"X\n\x10\x45xpirationPolicy\x12!\n\x1d\x45XPIRATION_POLICY_UNSPECIFIED\x10\x00\x12\n\n\x06STATIC\x10\x01\x12\x15\n\x11SINCE_LAST_ACTIVE\x10\x02\"&\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x03\x12\x0f\n\x07message\x18\x02 \x01(\tB_\n\x1ayandex.cloud.api.ai.commonZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/common;commonb\x06proto3')
|
|
17
|
+
|
|
18
|
+
_globals = globals()
|
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.common.common_pb2', _globals)
|
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'\n\032yandex.cloud.api.ai.commonZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/common;common'
|
|
24
|
+
_globals['_EXPIRATIONCONFIG']._serialized_start=64
|
|
25
|
+
_globals['_EXPIRATIONCONFIG']._serialized_end=276
|
|
26
|
+
_globals['_EXPIRATIONCONFIG_EXPIRATIONPOLICY']._serialized_start=188
|
|
27
|
+
_globals['_EXPIRATIONCONFIG_EXPIRATIONPOLICY']._serialized_end=276
|
|
28
|
+
_globals['_ERROR']._serialized_start=278
|
|
29
|
+
_globals['_ERROR']._serialized_end=316
|
|
30
|
+
# @@protoc_insertion_point(module_scope)
|