yandexcloud 0.321.0__py3-none-any.whl → 0.322.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.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +38 -8
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +89 -15
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +18 -9
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +30 -6
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +37 -6
- yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +55 -9
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +74 -11
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +18 -8
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +35 -5
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +15 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +8 -1
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +15 -1
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +10 -5
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +14 -2
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +45 -9
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +52 -9
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/assistants/v1/threads/message_pb2.py +18 -16
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +84 -10
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +21 -3
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +13 -6
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +24 -3
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +22 -5
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +47 -7
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +21 -5
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +43 -6
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/dataset/__init__.py +0 -0
- yandex/cloud/ai/dataset/v1/__init__.py +0 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2.py +35 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2.pyi +161 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.py +4 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +117 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +520 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.py +378 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.pyi +237 -0
- yandex/cloud/ai/files/v1/file_pb2.pyi +22 -5
- yandex/cloud/ai/files/v1/file_service_pb2.pyi +53 -6
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +18 -9
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +30 -6
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.py +30 -13
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +197 -0
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +14 -14
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +9 -1
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.py +52 -51
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.pyi +11 -1
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2.py +35 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2.pyi +62 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.py +4 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.pyi +17 -0
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +44 -43
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +25 -6
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +30 -29
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +17 -4
- yandex/cloud/compute/v1/disk_pb2.py +12 -11
- yandex/cloud/compute/v1/disk_pb2.pyi +9 -2
- yandex/cloud/compute/v1/disk_service_pb2.py +36 -34
- yandex/cloud/compute/v1/disk_service_pb2.pyi +5 -1
- yandex/cloud/compute/v1/image_pb2.py +12 -11
- yandex/cloud/compute/v1/image_pb2.pyi +9 -2
- yandex/cloud/compute/v1/instance_service_pb2.py +39 -37
- yandex/cloud/compute/v1/instance_service_pb2.pyi +11 -7
- yandex/cloud/compute/v1/kek_pb2.py +26 -0
- yandex/cloud/compute/v1/kek_pb2.pyi +31 -0
- yandex/cloud/compute/v1/kek_pb2_grpc.py +4 -0
- yandex/cloud/compute/v1/kek_pb2_grpc.pyi +17 -0
- yandex/cloud/compute/v1/snapshot_pb2.py +8 -7
- yandex/cloud/compute/v1/snapshot_pb2.pyi +9 -2
- yandex/cloud/datasphere/v1/project_pb2.py +6 -8
- yandex/cloud/datasphere/v1/project_pb2.pyi +1 -35
- yandex/cloud/datasphere/v1/project_service_pb2.py +39 -70
- yandex/cloud/datasphere/v1/project_service_pb2.pyi +0 -171
- yandex/cloud/datasphere/v1/project_service_pb2_grpc.py +0 -102
- yandex/cloud/datasphere/v1/project_service_pb2_grpc.pyi +0 -60
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +21 -19
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +50 -1
- yandex/cloud/datasphere/v2/project_pb2.py +11 -15
- yandex/cloud/datasphere/v2/project_pb2.pyi +1 -55
- yandex/cloud/datasphere/v2/project_service_pb2.py +73 -84
- yandex/cloud/datasphere/v2/project_service_pb2.pyi +102 -119
- yandex/cloud/datasphere/v2/project_service_pb2_grpc.py +34 -70
- yandex/cloud/datasphere/v2/project_service_pb2_grpc.pyi +20 -52
- yandex/cloud/datasphere/v2/resource_types_pb2.py +2 -2
- yandex/cloud/datasphere/v2/resource_types_pb2.pyi +0 -4
- yandex/cloud/k8s/v1/cluster_service_pb2.py +38 -38
- yandex/cloud/k8s/v1/cluster_service_pb2.pyi +8 -2
- yandex/cloud/mdb/kafka/v1/cluster_pb2.py +26 -24
- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +32 -5
- yandex/cloud/mdb/kafka/v1/connector_service_pb2.py +37 -37
- yandex/cloud/mdb/kafka/v1/user_pb2.pyi +1 -0
- yandex/cloud/mdb/redis/v1/config/redis_pb2.py +16 -8
- yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +56 -2
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.322.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.322.0.dist-info}/RECORD +103 -85
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.322.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.322.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.322.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.322.0.dist-info}/top_level.txt +0 -0
|
@@ -19,92 +19,113 @@ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type:
|
|
|
19
19
|
...
|
|
20
20
|
|
|
21
21
|
class ThreadServiceStub:
|
|
22
|
+
"""ThreadService provides operations for managing threads."""
|
|
23
|
+
|
|
22
24
|
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
23
25
|
Create: grpc.UnaryUnaryMultiCallable[
|
|
24
26
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.CreateThreadRequest,
|
|
25
27
|
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
26
28
|
]
|
|
29
|
+
"""Create a new thread."""
|
|
27
30
|
|
|
28
31
|
Get: grpc.UnaryUnaryMultiCallable[
|
|
29
32
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.GetThreadRequest,
|
|
30
33
|
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
31
34
|
]
|
|
35
|
+
"""Retrieve details of a specific thread by its ID."""
|
|
32
36
|
|
|
33
37
|
Update: grpc.UnaryUnaryMultiCallable[
|
|
34
38
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.UpdateThreadRequest,
|
|
35
39
|
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
36
40
|
]
|
|
41
|
+
"""Update an existing thread."""
|
|
37
42
|
|
|
38
43
|
Delete: grpc.UnaryUnaryMultiCallable[
|
|
39
44
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadRequest,
|
|
40
45
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse,
|
|
41
46
|
]
|
|
47
|
+
"""Delete a thread by its ID."""
|
|
42
48
|
|
|
43
49
|
List: grpc.UnaryUnaryMultiCallable[
|
|
44
50
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsRequest,
|
|
45
51
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse,
|
|
46
52
|
]
|
|
53
|
+
"""List threads in a specific folder."""
|
|
47
54
|
|
|
48
55
|
class ThreadServiceAsyncStub:
|
|
56
|
+
"""ThreadService provides operations for managing threads."""
|
|
57
|
+
|
|
49
58
|
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
50
59
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.CreateThreadRequest,
|
|
51
60
|
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
52
61
|
]
|
|
62
|
+
"""Create a new thread."""
|
|
53
63
|
|
|
54
64
|
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
55
65
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.GetThreadRequest,
|
|
56
66
|
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
57
67
|
]
|
|
68
|
+
"""Retrieve details of a specific thread by its ID."""
|
|
58
69
|
|
|
59
70
|
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
71
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.UpdateThreadRequest,
|
|
61
72
|
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
62
73
|
]
|
|
74
|
+
"""Update an existing thread."""
|
|
63
75
|
|
|
64
76
|
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
65
77
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadRequest,
|
|
66
78
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse,
|
|
67
79
|
]
|
|
80
|
+
"""Delete a thread by its ID."""
|
|
68
81
|
|
|
69
82
|
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
70
83
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsRequest,
|
|
71
84
|
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse,
|
|
72
85
|
]
|
|
86
|
+
"""List threads in a specific folder."""
|
|
73
87
|
|
|
74
88
|
class ThreadServiceServicer(metaclass=abc.ABCMeta):
|
|
89
|
+
"""ThreadService provides operations for managing threads."""
|
|
90
|
+
|
|
75
91
|
@abc.abstractmethod
|
|
76
92
|
def Create(
|
|
77
93
|
self,
|
|
78
94
|
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.CreateThreadRequest,
|
|
79
95
|
context: _ServicerContext,
|
|
80
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]:
|
|
96
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]:
|
|
97
|
+
"""Create a new thread."""
|
|
81
98
|
|
|
82
99
|
@abc.abstractmethod
|
|
83
100
|
def Get(
|
|
84
101
|
self,
|
|
85
102
|
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.GetThreadRequest,
|
|
86
103
|
context: _ServicerContext,
|
|
87
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]:
|
|
104
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]:
|
|
105
|
+
"""Retrieve details of a specific thread by its ID."""
|
|
88
106
|
|
|
89
107
|
@abc.abstractmethod
|
|
90
108
|
def Update(
|
|
91
109
|
self,
|
|
92
110
|
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.UpdateThreadRequest,
|
|
93
111
|
context: _ServicerContext,
|
|
94
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]:
|
|
112
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]:
|
|
113
|
+
"""Update an existing thread."""
|
|
95
114
|
|
|
96
115
|
@abc.abstractmethod
|
|
97
116
|
def Delete(
|
|
98
117
|
self,
|
|
99
118
|
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadRequest,
|
|
100
119
|
context: _ServicerContext,
|
|
101
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse]]:
|
|
120
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse]]:
|
|
121
|
+
"""Delete a thread by its ID."""
|
|
102
122
|
|
|
103
123
|
@abc.abstractmethod
|
|
104
124
|
def List(
|
|
105
125
|
self,
|
|
106
126
|
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsRequest,
|
|
107
127
|
context: _ServicerContext,
|
|
108
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse]]:
|
|
128
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse]]:
|
|
129
|
+
"""List threads in a specific folder."""
|
|
109
130
|
|
|
110
131
|
def add_ThreadServiceServicer_to_server(servicer: ThreadServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -47,22 +47,38 @@ class User(google.protobuf.message.Message):
|
|
|
47
47
|
EXPIRES_AT_FIELD_NUMBER: builtins.int
|
|
48
48
|
LABELS_FIELD_NUMBER: builtins.int
|
|
49
49
|
id: builtins.str
|
|
50
|
+
"""Unique identifier of the user."""
|
|
50
51
|
folder_id: builtins.str
|
|
52
|
+
"""ID of the folder that the user belongs to."""
|
|
51
53
|
name: builtins.str
|
|
54
|
+
"""Name of the user."""
|
|
52
55
|
description: builtins.str
|
|
56
|
+
"""Description of the user."""
|
|
53
57
|
source: builtins.str
|
|
54
58
|
created_by: builtins.str
|
|
59
|
+
"""Identifier of the subject who created this user."""
|
|
55
60
|
updated_by: builtins.str
|
|
61
|
+
"""Identifier of the subject who last updated this user."""
|
|
56
62
|
@property
|
|
57
|
-
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
63
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
64
|
+
"""Timestamp representing when the user was created."""
|
|
65
|
+
|
|
58
66
|
@property
|
|
59
|
-
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
67
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
68
|
+
"""Timestamp representing the last time this user was updated."""
|
|
69
|
+
|
|
60
70
|
@property
|
|
61
|
-
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
71
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
72
|
+
"""Configuration for the expiration of the user, defining when and how the user will expire."""
|
|
73
|
+
|
|
62
74
|
@property
|
|
63
|
-
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
75
|
+
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
76
|
+
"""Timestamp representing when the user will expire."""
|
|
77
|
+
|
|
64
78
|
@property
|
|
65
|
-
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
79
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
80
|
+
"""Set of key-value pairs that can be used to organize and categorize the user."""
|
|
81
|
+
|
|
66
82
|
def __init__(
|
|
67
83
|
self,
|
|
68
84
|
*,
|
|
@@ -17,6 +17,8 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
17
17
|
|
|
18
18
|
@typing.final
|
|
19
19
|
class CreateUserRequest(google.protobuf.message.Message):
|
|
20
|
+
"""Request message for creating a new user."""
|
|
21
|
+
|
|
20
22
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
23
|
|
|
22
24
|
@typing.final
|
|
@@ -43,12 +45,18 @@ class CreateUserRequest(google.protobuf.message.Message):
|
|
|
43
45
|
LABELS_FIELD_NUMBER: builtins.int
|
|
44
46
|
folder_id: builtins.str
|
|
45
47
|
name: builtins.str
|
|
48
|
+
"""Name of the user."""
|
|
46
49
|
description: builtins.str
|
|
50
|
+
"""Description of the user."""
|
|
47
51
|
source: builtins.str
|
|
48
52
|
@property
|
|
49
|
-
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
53
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
54
|
+
"""Expiration configuration for the user."""
|
|
55
|
+
|
|
50
56
|
@property
|
|
51
|
-
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
57
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
58
|
+
"""Set of key-value pairs to label the user."""
|
|
59
|
+
|
|
52
60
|
def __init__(
|
|
53
61
|
self,
|
|
54
62
|
*,
|
|
@@ -66,10 +74,13 @@ global___CreateUserRequest = CreateUserRequest
|
|
|
66
74
|
|
|
67
75
|
@typing.final
|
|
68
76
|
class GetUserRequest(google.protobuf.message.Message):
|
|
77
|
+
"""Request message for retrieving a user by ID."""
|
|
78
|
+
|
|
69
79
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
70
80
|
|
|
71
81
|
USER_ID_FIELD_NUMBER: builtins.int
|
|
72
82
|
user_id: builtins.str
|
|
83
|
+
"""ID of the user to retrieve."""
|
|
73
84
|
def __init__(
|
|
74
85
|
self,
|
|
75
86
|
*,
|
|
@@ -81,6 +92,8 @@ global___GetUserRequest = GetUserRequest
|
|
|
81
92
|
|
|
82
93
|
@typing.final
|
|
83
94
|
class UpdateUserRequest(google.protobuf.message.Message):
|
|
95
|
+
"""Request message for updating an existing user."""
|
|
96
|
+
|
|
84
97
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
85
98
|
|
|
86
99
|
@typing.final
|
|
@@ -106,14 +119,23 @@ class UpdateUserRequest(google.protobuf.message.Message):
|
|
|
106
119
|
EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
|
|
107
120
|
LABELS_FIELD_NUMBER: builtins.int
|
|
108
121
|
user_id: builtins.str
|
|
122
|
+
"""ID of the user to update."""
|
|
109
123
|
name: builtins.str
|
|
124
|
+
"""New name for the user."""
|
|
110
125
|
description: builtins.str
|
|
126
|
+
"""New description for the user."""
|
|
111
127
|
@property
|
|
112
|
-
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
128
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
129
|
+
"""A field mask specifying which fields to update."""
|
|
130
|
+
|
|
113
131
|
@property
|
|
114
|
-
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
132
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
133
|
+
"""New expiration configuration for the user."""
|
|
134
|
+
|
|
115
135
|
@property
|
|
116
|
-
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
136
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
137
|
+
"""New set of labels for the user."""
|
|
138
|
+
|
|
117
139
|
def __init__(
|
|
118
140
|
self,
|
|
119
141
|
*,
|
|
@@ -131,10 +153,13 @@ global___UpdateUserRequest = UpdateUserRequest
|
|
|
131
153
|
|
|
132
154
|
@typing.final
|
|
133
155
|
class DeleteUserRequest(google.protobuf.message.Message):
|
|
156
|
+
"""Request message for deleting a user by ID."""
|
|
157
|
+
|
|
134
158
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
135
159
|
|
|
136
160
|
USER_ID_FIELD_NUMBER: builtins.int
|
|
137
161
|
user_id: builtins.str
|
|
162
|
+
"""ID of the user to delete."""
|
|
138
163
|
def __init__(
|
|
139
164
|
self,
|
|
140
165
|
*,
|
|
@@ -146,6 +171,8 @@ global___DeleteUserRequest = DeleteUserRequest
|
|
|
146
171
|
|
|
147
172
|
@typing.final
|
|
148
173
|
class DeleteUserResponse(google.protobuf.message.Message):
|
|
174
|
+
"""Response message for the delete operation."""
|
|
175
|
+
|
|
149
176
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
150
177
|
|
|
151
178
|
def __init__(
|
|
@@ -156,14 +183,19 @@ global___DeleteUserResponse = DeleteUserResponse
|
|
|
156
183
|
|
|
157
184
|
@typing.final
|
|
158
185
|
class ListUsersRequest(google.protobuf.message.Message):
|
|
186
|
+
"""Request message for listing users in a specific folder."""
|
|
187
|
+
|
|
159
188
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
160
189
|
|
|
161
190
|
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
162
191
|
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
163
192
|
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
164
193
|
folder_id: builtins.str
|
|
194
|
+
"""Folder ID from which to list users."""
|
|
165
195
|
page_size: builtins.int
|
|
196
|
+
"""Maximum number of users to return per page."""
|
|
166
197
|
page_token: builtins.str
|
|
198
|
+
"""Token to retrieve the next page of results."""
|
|
167
199
|
def __init__(
|
|
168
200
|
self,
|
|
169
201
|
*,
|
|
@@ -177,13 +209,18 @@ global___ListUsersRequest = ListUsersRequest
|
|
|
177
209
|
|
|
178
210
|
@typing.final
|
|
179
211
|
class ListUsersResponse(google.protobuf.message.Message):
|
|
212
|
+
"""Response message for the list operation."""
|
|
213
|
+
|
|
180
214
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
181
215
|
|
|
182
216
|
USERS_FIELD_NUMBER: builtins.int
|
|
183
217
|
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
184
218
|
next_page_token: builtins.str
|
|
219
|
+
"""Token to retrieve the next page of results."""
|
|
185
220
|
@property
|
|
186
|
-
def users(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.users.user_pb2.User]:
|
|
221
|
+
def users(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.users.user_pb2.User]:
|
|
222
|
+
"""List of users in the specified folder."""
|
|
223
|
+
|
|
187
224
|
def __init__(
|
|
188
225
|
self,
|
|
189
226
|
*,
|
|
@@ -7,7 +7,8 @@ from yandex.cloud.ai.assistants.v1.users import user_service_pb2 as yandex_dot_c
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class UserServiceStub(object):
|
|
10
|
-
"""
|
|
10
|
+
"""UserService provides operations for managing users.
|
|
11
|
+
"""
|
|
11
12
|
|
|
12
13
|
def __init__(self, channel):
|
|
13
14
|
"""Constructor.
|
|
@@ -43,34 +44,40 @@ class UserServiceStub(object):
|
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
class UserServiceServicer(object):
|
|
46
|
-
"""
|
|
47
|
+
"""UserService provides operations for managing users.
|
|
48
|
+
"""
|
|
47
49
|
|
|
48
50
|
def Create(self, request, context):
|
|
49
|
-
"""
|
|
51
|
+
"""Create a new user.
|
|
52
|
+
"""
|
|
50
53
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
51
54
|
context.set_details('Method not implemented!')
|
|
52
55
|
raise NotImplementedError('Method not implemented!')
|
|
53
56
|
|
|
54
57
|
def Get(self, request, context):
|
|
55
|
-
"""
|
|
58
|
+
"""Retrieve details of a specific user by its ID.
|
|
59
|
+
"""
|
|
56
60
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
57
61
|
context.set_details('Method not implemented!')
|
|
58
62
|
raise NotImplementedError('Method not implemented!')
|
|
59
63
|
|
|
60
64
|
def Update(self, request, context):
|
|
61
|
-
"""
|
|
65
|
+
"""Update an existing user.
|
|
66
|
+
"""
|
|
62
67
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
63
68
|
context.set_details('Method not implemented!')
|
|
64
69
|
raise NotImplementedError('Method not implemented!')
|
|
65
70
|
|
|
66
71
|
def Delete(self, request, context):
|
|
67
|
-
"""
|
|
72
|
+
"""Delete a user by its ID.
|
|
73
|
+
"""
|
|
68
74
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
75
|
context.set_details('Method not implemented!')
|
|
70
76
|
raise NotImplementedError('Method not implemented!')
|
|
71
77
|
|
|
72
78
|
def List(self, request, context):
|
|
73
|
-
"""
|
|
79
|
+
"""List users in a specific folder.
|
|
80
|
+
"""
|
|
74
81
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
82
|
context.set_details('Method not implemented!')
|
|
76
83
|
raise NotImplementedError('Method not implemented!')
|
|
@@ -111,7 +118,8 @@ def add_UserServiceServicer_to_server(servicer, server):
|
|
|
111
118
|
|
|
112
119
|
# This class is part of an EXPERIMENTAL API.
|
|
113
120
|
class UserService(object):
|
|
114
|
-
"""
|
|
121
|
+
"""UserService provides operations for managing users.
|
|
122
|
+
"""
|
|
115
123
|
|
|
116
124
|
@staticmethod
|
|
117
125
|
def Create(request,
|
|
@@ -19,92 +19,113 @@ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type:
|
|
|
19
19
|
...
|
|
20
20
|
|
|
21
21
|
class UserServiceStub:
|
|
22
|
+
"""UserService provides operations for managing users."""
|
|
23
|
+
|
|
22
24
|
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
23
25
|
Create: grpc.UnaryUnaryMultiCallable[
|
|
24
26
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.CreateUserRequest,
|
|
25
27
|
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
26
28
|
]
|
|
29
|
+
"""Create a new user."""
|
|
27
30
|
|
|
28
31
|
Get: grpc.UnaryUnaryMultiCallable[
|
|
29
32
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.GetUserRequest,
|
|
30
33
|
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
31
34
|
]
|
|
35
|
+
"""Retrieve details of a specific user by its ID."""
|
|
32
36
|
|
|
33
37
|
Update: grpc.UnaryUnaryMultiCallable[
|
|
34
38
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.UpdateUserRequest,
|
|
35
39
|
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
36
40
|
]
|
|
41
|
+
"""Update an existing user."""
|
|
37
42
|
|
|
38
43
|
Delete: grpc.UnaryUnaryMultiCallable[
|
|
39
44
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserRequest,
|
|
40
45
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserResponse,
|
|
41
46
|
]
|
|
47
|
+
"""Delete a user by its ID."""
|
|
42
48
|
|
|
43
49
|
List: grpc.UnaryUnaryMultiCallable[
|
|
44
50
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersRequest,
|
|
45
51
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersResponse,
|
|
46
52
|
]
|
|
53
|
+
"""List users in a specific folder."""
|
|
47
54
|
|
|
48
55
|
class UserServiceAsyncStub:
|
|
56
|
+
"""UserService provides operations for managing users."""
|
|
57
|
+
|
|
49
58
|
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
50
59
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.CreateUserRequest,
|
|
51
60
|
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
52
61
|
]
|
|
62
|
+
"""Create a new user."""
|
|
53
63
|
|
|
54
64
|
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
55
65
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.GetUserRequest,
|
|
56
66
|
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
57
67
|
]
|
|
68
|
+
"""Retrieve details of a specific user by its ID."""
|
|
58
69
|
|
|
59
70
|
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
71
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.UpdateUserRequest,
|
|
61
72
|
yandex.cloud.ai.assistants.v1.users.user_pb2.User,
|
|
62
73
|
]
|
|
74
|
+
"""Update an existing user."""
|
|
63
75
|
|
|
64
76
|
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
65
77
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserRequest,
|
|
66
78
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserResponse,
|
|
67
79
|
]
|
|
80
|
+
"""Delete a user by its ID."""
|
|
68
81
|
|
|
69
82
|
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
70
83
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersRequest,
|
|
71
84
|
yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersResponse,
|
|
72
85
|
]
|
|
86
|
+
"""List users in a specific folder."""
|
|
73
87
|
|
|
74
88
|
class UserServiceServicer(metaclass=abc.ABCMeta):
|
|
89
|
+
"""UserService provides operations for managing users."""
|
|
90
|
+
|
|
75
91
|
@abc.abstractmethod
|
|
76
92
|
def Create(
|
|
77
93
|
self,
|
|
78
94
|
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.CreateUserRequest,
|
|
79
95
|
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]]:
|
|
96
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_pb2.User, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_pb2.User]]:
|
|
97
|
+
"""Create a new user."""
|
|
81
98
|
|
|
82
99
|
@abc.abstractmethod
|
|
83
100
|
def Get(
|
|
84
101
|
self,
|
|
85
102
|
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.GetUserRequest,
|
|
86
103
|
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]]:
|
|
104
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_pb2.User, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_pb2.User]]:
|
|
105
|
+
"""Retrieve details of a specific user by its ID."""
|
|
88
106
|
|
|
89
107
|
@abc.abstractmethod
|
|
90
108
|
def Update(
|
|
91
109
|
self,
|
|
92
110
|
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.UpdateUserRequest,
|
|
93
111
|
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]]:
|
|
112
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.users.user_pb2.User, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.users.user_pb2.User]]:
|
|
113
|
+
"""Update an existing user."""
|
|
95
114
|
|
|
96
115
|
@abc.abstractmethod
|
|
97
116
|
def Delete(
|
|
98
117
|
self,
|
|
99
118
|
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.DeleteUserRequest,
|
|
100
119
|
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]]:
|
|
120
|
+
) -> 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]]:
|
|
121
|
+
"""Delete a user by its ID."""
|
|
102
122
|
|
|
103
123
|
@abc.abstractmethod
|
|
104
124
|
def List(
|
|
105
125
|
self,
|
|
106
126
|
request: yandex.cloud.ai.assistants.v1.users.user_service_pb2.ListUsersRequest,
|
|
107
127
|
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]]:
|
|
128
|
+
) -> 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]]:
|
|
129
|
+
"""List users in a specific folder."""
|
|
109
130
|
|
|
110
131
|
def add_UserServiceServicer_to_server(servicer: UserServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/dataset/v1/dataset.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 google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(yandex/cloud/ai/dataset/v1/dataset.proto\x12\x1ayandex.cloud.ai.dataset.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x04\n\x0b\x44\x61tasetInfo\x12\x12\n\ndataset_id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12>\n\x06status\x18\x06 \x01(\x0e\x32..yandex.cloud.ai.dataset.v1.DatasetInfo.Status\x12\x11\n\ttask_type\x18\x07 \x01(\t\x12.\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04rows\x18\n \x01(\x03\x12\x12\n\nsize_bytes\x18\x0b \x01(\x03\x12\x15\n\rcreated_by_id\x18\x0c \x01(\t\x12\x43\n\x06labels\x18\r \x03(\x0b\x32\x33.yandex.cloud.ai.dataset.v1.DatasetInfo.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"a\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\t\n\x05\x44RAFT\x10\x01\x12\x0e\n\nVALIDATING\x10\x02\x12\t\n\x05READY\x10\x03\x12\x0b\n\x07INVALID\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\"P\n\x0fValidationError\x12\r\n\x05\x65rror\x18\x01 \x01(\t\x12\x19\n\x11\x65rror_description\x18\x02 \x01(\t\x12\x13\n\x0brow_numbers\x18\x03 \x03(\x03\x42\x65\n\x1eyandex.cloud.api.ai.dataset.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/dataset/v1;fomob\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.dataset.v1.dataset_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n\036yandex.cloud.api.ai.dataset.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/dataset/v1;fomo'
|
|
25
|
+
_DATASETINFO_LABELSENTRY._options = None
|
|
26
|
+
_DATASETINFO_LABELSENTRY._serialized_options = b'8\001'
|
|
27
|
+
_globals['_DATASETINFO']._serialized_start=106
|
|
28
|
+
_globals['_DATASETINFO']._serialized_end=662
|
|
29
|
+
_globals['_DATASETINFO_LABELSENTRY']._serialized_start=518
|
|
30
|
+
_globals['_DATASETINFO_LABELSENTRY']._serialized_end=563
|
|
31
|
+
_globals['_DATASETINFO_STATUS']._serialized_start=565
|
|
32
|
+
_globals['_DATASETINFO_STATUS']._serialized_end=662
|
|
33
|
+
_globals['_VALIDATIONERROR']._serialized_start=664
|
|
34
|
+
_globals['_VALIDATIONERROR']._serialized_end=744
|
|
35
|
+
# @@protoc_insertion_point(module_scope)
|