yandexcloud 0.358.0__py3-none-any.whl → 0.360.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/cdn/v1/rule_pb2.py +2 -2
- yandex/cloud/cdn/v1/rule_pb2.pyi +7 -1
- yandex/cloud/cdn/v1/rule_service_pb2.py +16 -16
- yandex/cloud/cdn/v1/rule_service_pb2.pyi +16 -3
- yandex/cloud/cloudregistry/v1/registry_pb2.py +5 -5
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +4 -0
- yandex/cloud/k8s/v1/cluster_pb2.py +48 -46
- yandex/cloud/k8s/v1/cluster_pb2.pyi +32 -2
- yandex/cloud/k8s/v1/cluster_service_pb2.py +54 -52
- yandex/cloud/k8s/v1/cluster_service_pb2.pyi +28 -4
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +3 -1
- yandex/cloud/mdb/clickhouse/v1/user_pb2.py +38 -38
- yandex/cloud/mdb/clickhouse/v1/user_pb2.pyi +15 -3
- yandex/cloud/monitoring/v3/group_widget_pb2.py +48 -0
- yandex/cloud/monitoring/v3/group_widget_pb2.pyi +131 -0
- yandex/cloud/monitoring/v3/group_widget_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/group_widget_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/widget_pb2.py +6 -5
- yandex/cloud/monitoring/v3/widget_pb2.pyi +10 -3
- yandex/cloud/organizationmanager/v1/idp/__init__.py +0 -0
- yandex/cloud/organizationmanager/v1/idp/user_pb2.py +40 -0
- yandex/cloud/organizationmanager/v1/idp/user_pb2.pyi +149 -0
- yandex/cloud/organizationmanager/v1/idp/user_pb2_grpc.py +24 -0
- yandex/cloud/organizationmanager/v1/idp/user_pb2_grpc.pyi +17 -0
- yandex/cloud/organizationmanager/v1/idp/user_service_pb2.py +218 -0
- yandex/cloud/organizationmanager/v1/idp/user_service_pb2.pyi +809 -0
- yandex/cloud/organizationmanager/v1/idp/user_service_pb2_grpc.py +678 -0
- yandex/cloud/organizationmanager/v1/idp/user_service_pb2_grpc.pyi +322 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_pb2.py +90 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_pb2.pyi +549 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_pb2_grpc.py +24 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_pb2_grpc.pyi +17 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_service_pb2.py +162 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_service_pb2.pyi +596 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_service_pb2_grpc.py +678 -0
- yandex/cloud/organizationmanager/v1/idp/userpool_service_pb2_grpc.pyi +322 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +22 -22
- yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +8 -2
- yandex/cloud/searchapi/v2/img_search_service_pb2.py +2 -2
- yandex/cloud/searchapi/v2/search_query_pb2.py +9 -1
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +42 -0
- yandex/cloud/searchapi/v2/search_service_pb2.py +13 -13
- yandex/cloud/searchapi/v2/search_service_pb2.pyi +8 -2
- yandex/cloud/serverless/functions/v1/function_service_pb2.py +13 -13
- yandex/cloud/spark/v1/job_pb2.py +18 -12
- yandex/cloud/spark/v1/job_pb2.pyi +85 -3
- yandex/cloud/spark/v1/job_service_pb2.py +14 -12
- yandex/cloud/spark/v1/job_service_pb2.pyi +11 -3
- yandex/cloud/storage/v1/presign_service_pb2.pyi +1 -1
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.358.0.dist-info → yandexcloud-0.360.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.358.0.dist-info → yandexcloud-0.360.0.dist-info}/RECORD +56 -35
- {yandexcloud-0.358.0.dist-info → yandexcloud-0.360.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.358.0.dist-info → yandexcloud-0.360.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.358.0.dist-info → yandexcloud-0.360.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.358.0.dist-info → yandexcloud-0.360.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
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 google.protobuf.empty_pb2
|
|
9
|
+
import grpc
|
|
10
|
+
import grpc.aio
|
|
11
|
+
import typing
|
|
12
|
+
import yandex.cloud.operation.operation_pb2
|
|
13
|
+
import yandex.cloud.organizationmanager.v1.idp.user_pb2
|
|
14
|
+
import yandex.cloud.organizationmanager.v1.idp.user_service_pb2
|
|
15
|
+
|
|
16
|
+
_T = typing.TypeVar("_T")
|
|
17
|
+
|
|
18
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
19
|
+
|
|
20
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
21
|
+
...
|
|
22
|
+
|
|
23
|
+
class UserServiceStub:
|
|
24
|
+
"""A set of methods for managing users in the Identity Provider system."""
|
|
25
|
+
|
|
26
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
27
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
28
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GetUserRequest,
|
|
29
|
+
yandex.cloud.organizationmanager.v1.idp.user_pb2.User,
|
|
30
|
+
]
|
|
31
|
+
"""Returns the specified user.
|
|
32
|
+
|
|
33
|
+
To get the list of available users, make a [List] request.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
37
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ListUsersRequest,
|
|
38
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ListUsersResponse,
|
|
39
|
+
]
|
|
40
|
+
"""Retrieves the list of users in the specified userpool."""
|
|
41
|
+
|
|
42
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
43
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.CreateUserRequest,
|
|
44
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
45
|
+
]
|
|
46
|
+
"""Creates a user in the specified userpool."""
|
|
47
|
+
|
|
48
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
49
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.UpdateUserRequest,
|
|
50
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
51
|
+
]
|
|
52
|
+
"""Updates the specified user."""
|
|
53
|
+
|
|
54
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
55
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.DeleteUserRequest,
|
|
56
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
57
|
+
]
|
|
58
|
+
"""Deletes the specified user."""
|
|
59
|
+
|
|
60
|
+
SetOwnPassword: grpc.UnaryUnaryMultiCallable[
|
|
61
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetOwnPasswordRequest,
|
|
62
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
63
|
+
]
|
|
64
|
+
"""Sets the password for the authenticated user."""
|
|
65
|
+
|
|
66
|
+
SetOthersPassword: grpc.UnaryUnaryMultiCallable[
|
|
67
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetOthersPasswordRequest,
|
|
68
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
69
|
+
]
|
|
70
|
+
"""Sets the password for another user."""
|
|
71
|
+
|
|
72
|
+
Suspend: grpc.UnaryUnaryMultiCallable[
|
|
73
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SuspendUserRequest,
|
|
74
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
75
|
+
]
|
|
76
|
+
"""Suspends the specified user."""
|
|
77
|
+
|
|
78
|
+
Reactivate: grpc.UnaryUnaryMultiCallable[
|
|
79
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ReactivateUserRequest,
|
|
80
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
81
|
+
]
|
|
82
|
+
"""Reactivates a previously suspended user."""
|
|
83
|
+
|
|
84
|
+
GeneratePassword: grpc.UnaryUnaryMultiCallable[
|
|
85
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GeneratePasswordRequest,
|
|
86
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GeneratePasswordResponse,
|
|
87
|
+
]
|
|
88
|
+
"""Generates a new password."""
|
|
89
|
+
|
|
90
|
+
GetSelfPasswordMetadata: grpc.UnaryUnaryMultiCallable[
|
|
91
|
+
google.protobuf.empty_pb2.Empty,
|
|
92
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.PasswordMetadata,
|
|
93
|
+
]
|
|
94
|
+
"""Returns metadata about the authenticated user's password."""
|
|
95
|
+
|
|
96
|
+
ConvertToExternal: grpc.UnaryUnaryMultiCallable[
|
|
97
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ConvertToExternalUserRequest,
|
|
98
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
99
|
+
]
|
|
100
|
+
"""Converts a user to use external authentication."""
|
|
101
|
+
|
|
102
|
+
SetPasswordHash: grpc.UnaryUnaryMultiCallable[
|
|
103
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetPasswordHashRequest,
|
|
104
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
105
|
+
]
|
|
106
|
+
"""Sets a password hash for the specified user."""
|
|
107
|
+
|
|
108
|
+
ResolveExternalIds: grpc.UnaryUnaryMultiCallable[
|
|
109
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ResolveExternalIdsRequest,
|
|
110
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ResolveExternalIdsResponse,
|
|
111
|
+
]
|
|
112
|
+
"""Resolves external IDs to internal user IDs."""
|
|
113
|
+
|
|
114
|
+
class UserServiceAsyncStub:
|
|
115
|
+
"""A set of methods for managing users in the Identity Provider system."""
|
|
116
|
+
|
|
117
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
118
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GetUserRequest,
|
|
119
|
+
yandex.cloud.organizationmanager.v1.idp.user_pb2.User,
|
|
120
|
+
]
|
|
121
|
+
"""Returns the specified user.
|
|
122
|
+
|
|
123
|
+
To get the list of available users, make a [List] request.
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
127
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ListUsersRequest,
|
|
128
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ListUsersResponse,
|
|
129
|
+
]
|
|
130
|
+
"""Retrieves the list of users in the specified userpool."""
|
|
131
|
+
|
|
132
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
133
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.CreateUserRequest,
|
|
134
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
135
|
+
]
|
|
136
|
+
"""Creates a user in the specified userpool."""
|
|
137
|
+
|
|
138
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
139
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.UpdateUserRequest,
|
|
140
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
141
|
+
]
|
|
142
|
+
"""Updates the specified user."""
|
|
143
|
+
|
|
144
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
145
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.DeleteUserRequest,
|
|
146
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
147
|
+
]
|
|
148
|
+
"""Deletes the specified user."""
|
|
149
|
+
|
|
150
|
+
SetOwnPassword: grpc.aio.UnaryUnaryMultiCallable[
|
|
151
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetOwnPasswordRequest,
|
|
152
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
153
|
+
]
|
|
154
|
+
"""Sets the password for the authenticated user."""
|
|
155
|
+
|
|
156
|
+
SetOthersPassword: grpc.aio.UnaryUnaryMultiCallable[
|
|
157
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetOthersPasswordRequest,
|
|
158
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
159
|
+
]
|
|
160
|
+
"""Sets the password for another user."""
|
|
161
|
+
|
|
162
|
+
Suspend: grpc.aio.UnaryUnaryMultiCallable[
|
|
163
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SuspendUserRequest,
|
|
164
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
165
|
+
]
|
|
166
|
+
"""Suspends the specified user."""
|
|
167
|
+
|
|
168
|
+
Reactivate: grpc.aio.UnaryUnaryMultiCallable[
|
|
169
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ReactivateUserRequest,
|
|
170
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
171
|
+
]
|
|
172
|
+
"""Reactivates a previously suspended user."""
|
|
173
|
+
|
|
174
|
+
GeneratePassword: grpc.aio.UnaryUnaryMultiCallable[
|
|
175
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GeneratePasswordRequest,
|
|
176
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GeneratePasswordResponse,
|
|
177
|
+
]
|
|
178
|
+
"""Generates a new password."""
|
|
179
|
+
|
|
180
|
+
GetSelfPasswordMetadata: grpc.aio.UnaryUnaryMultiCallable[
|
|
181
|
+
google.protobuf.empty_pb2.Empty,
|
|
182
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.PasswordMetadata,
|
|
183
|
+
]
|
|
184
|
+
"""Returns metadata about the authenticated user's password."""
|
|
185
|
+
|
|
186
|
+
ConvertToExternal: grpc.aio.UnaryUnaryMultiCallable[
|
|
187
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ConvertToExternalUserRequest,
|
|
188
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
189
|
+
]
|
|
190
|
+
"""Converts a user to use external authentication."""
|
|
191
|
+
|
|
192
|
+
SetPasswordHash: grpc.aio.UnaryUnaryMultiCallable[
|
|
193
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetPasswordHashRequest,
|
|
194
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
195
|
+
]
|
|
196
|
+
"""Sets a password hash for the specified user."""
|
|
197
|
+
|
|
198
|
+
ResolveExternalIds: grpc.aio.UnaryUnaryMultiCallable[
|
|
199
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ResolveExternalIdsRequest,
|
|
200
|
+
yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ResolveExternalIdsResponse,
|
|
201
|
+
]
|
|
202
|
+
"""Resolves external IDs to internal user IDs."""
|
|
203
|
+
|
|
204
|
+
class UserServiceServicer(metaclass=abc.ABCMeta):
|
|
205
|
+
"""A set of methods for managing users in the Identity Provider system."""
|
|
206
|
+
|
|
207
|
+
@abc.abstractmethod
|
|
208
|
+
def Get(
|
|
209
|
+
self,
|
|
210
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GetUserRequest,
|
|
211
|
+
context: _ServicerContext,
|
|
212
|
+
) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.user_pb2.User, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.user_pb2.User]]:
|
|
213
|
+
"""Returns the specified user.
|
|
214
|
+
|
|
215
|
+
To get the list of available users, make a [List] request.
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
@abc.abstractmethod
|
|
219
|
+
def List(
|
|
220
|
+
self,
|
|
221
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ListUsersRequest,
|
|
222
|
+
context: _ServicerContext,
|
|
223
|
+
) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ListUsersResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ListUsersResponse]]:
|
|
224
|
+
"""Retrieves the list of users in the specified userpool."""
|
|
225
|
+
|
|
226
|
+
@abc.abstractmethod
|
|
227
|
+
def Create(
|
|
228
|
+
self,
|
|
229
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.CreateUserRequest,
|
|
230
|
+
context: _ServicerContext,
|
|
231
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
232
|
+
"""Creates a user in the specified userpool."""
|
|
233
|
+
|
|
234
|
+
@abc.abstractmethod
|
|
235
|
+
def Update(
|
|
236
|
+
self,
|
|
237
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.UpdateUserRequest,
|
|
238
|
+
context: _ServicerContext,
|
|
239
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
240
|
+
"""Updates the specified user."""
|
|
241
|
+
|
|
242
|
+
@abc.abstractmethod
|
|
243
|
+
def Delete(
|
|
244
|
+
self,
|
|
245
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.DeleteUserRequest,
|
|
246
|
+
context: _ServicerContext,
|
|
247
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
248
|
+
"""Deletes the specified user."""
|
|
249
|
+
|
|
250
|
+
@abc.abstractmethod
|
|
251
|
+
def SetOwnPassword(
|
|
252
|
+
self,
|
|
253
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetOwnPasswordRequest,
|
|
254
|
+
context: _ServicerContext,
|
|
255
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
256
|
+
"""Sets the password for the authenticated user."""
|
|
257
|
+
|
|
258
|
+
@abc.abstractmethod
|
|
259
|
+
def SetOthersPassword(
|
|
260
|
+
self,
|
|
261
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetOthersPasswordRequest,
|
|
262
|
+
context: _ServicerContext,
|
|
263
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
264
|
+
"""Sets the password for another user."""
|
|
265
|
+
|
|
266
|
+
@abc.abstractmethod
|
|
267
|
+
def Suspend(
|
|
268
|
+
self,
|
|
269
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SuspendUserRequest,
|
|
270
|
+
context: _ServicerContext,
|
|
271
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
272
|
+
"""Suspends the specified user."""
|
|
273
|
+
|
|
274
|
+
@abc.abstractmethod
|
|
275
|
+
def Reactivate(
|
|
276
|
+
self,
|
|
277
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ReactivateUserRequest,
|
|
278
|
+
context: _ServicerContext,
|
|
279
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
280
|
+
"""Reactivates a previously suspended user."""
|
|
281
|
+
|
|
282
|
+
@abc.abstractmethod
|
|
283
|
+
def GeneratePassword(
|
|
284
|
+
self,
|
|
285
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GeneratePasswordRequest,
|
|
286
|
+
context: _ServicerContext,
|
|
287
|
+
) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GeneratePasswordResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.GeneratePasswordResponse]]:
|
|
288
|
+
"""Generates a new password."""
|
|
289
|
+
|
|
290
|
+
@abc.abstractmethod
|
|
291
|
+
def GetSelfPasswordMetadata(
|
|
292
|
+
self,
|
|
293
|
+
request: google.protobuf.empty_pb2.Empty,
|
|
294
|
+
context: _ServicerContext,
|
|
295
|
+
) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.PasswordMetadata, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.PasswordMetadata]]:
|
|
296
|
+
"""Returns metadata about the authenticated user's password."""
|
|
297
|
+
|
|
298
|
+
@abc.abstractmethod
|
|
299
|
+
def ConvertToExternal(
|
|
300
|
+
self,
|
|
301
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ConvertToExternalUserRequest,
|
|
302
|
+
context: _ServicerContext,
|
|
303
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
304
|
+
"""Converts a user to use external authentication."""
|
|
305
|
+
|
|
306
|
+
@abc.abstractmethod
|
|
307
|
+
def SetPasswordHash(
|
|
308
|
+
self,
|
|
309
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.SetPasswordHashRequest,
|
|
310
|
+
context: _ServicerContext,
|
|
311
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
312
|
+
"""Sets a password hash for the specified user."""
|
|
313
|
+
|
|
314
|
+
@abc.abstractmethod
|
|
315
|
+
def ResolveExternalIds(
|
|
316
|
+
self,
|
|
317
|
+
request: yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ResolveExternalIdsRequest,
|
|
318
|
+
context: _ServicerContext,
|
|
319
|
+
) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ResolveExternalIdsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.user_service_pb2.ResolveExternalIdsResponse]]:
|
|
320
|
+
"""Resolves external IDs to internal user IDs."""
|
|
321
|
+
|
|
322
|
+
def add_UserServiceServicer_to_server(servicer: UserServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/organizationmanager/v1/idp/userpool.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/organizationmanager/v1/idp/userpool.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/organizationmanager/v1/idp/userpool.proto\x12\'yandex.cloud.organizationmanager.v1.idp\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xd2\x06\n\x08Userpool\x12\n\n\x02id\x18\x01 \x01(\t\x12\x17\n\x0forganization_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12M\n\x06labels\x18\x05 \x03(\x0b\x32=.yandex.cloud.organizationmanager.v1.idp.Userpool.LabelsEntry\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x64omains\x18\x08 \x03(\t\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.yandex.cloud.organizationmanager.v1.idp.Userpool.Status\x12L\n\ruser_settings\x18\n \x01(\x0b\x32\x35.yandex.cloud.organizationmanager.v1.idp.UserSettings\x12_\n\x17password_quality_policy\x18\x0b \x01(\x0b\x32>.yandex.cloud.organizationmanager.v1.idp.PasswordQualityPolicy\x12\x61\n\x18password_lifetime_policy\x18\x0c \x01(\x0b\x32?.yandex.cloud.organizationmanager.v1.idp.PasswordLifetimePolicy\x12i\n\x1c\x62ruteforce_protection_policy\x18\r \x01(\x0b\x32\x43.yandex.cloud.organizationmanager.v1.idp.BruteforceProtectionPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\"\x8f\x01\n\x0cUserSettings\x12 \n\x18\x61llow_edit_self_password\x18\x01 \x01(\x08\x12\x1c\n\x14\x61llow_edit_self_info\x18\x02 \x01(\x08\x12 \n\x18\x61llow_edit_self_contacts\x18\x03 \x01(\x08\x12\x1d\n\x15\x61llow_edit_self_login\x18\x04 \x01(\x08\"\xb6\x03\n\x06\x44omain\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x46\n\x06status\x18\x02 \x01(\x0e\x32\x36.yandex.cloud.organizationmanager.v1.idp.Domain.Status\x12\x13\n\x0bstatus_code\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cvalidated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12L\n\nchallenges\x18\x07 \x03(\x0b\x32\x38.yandex.cloud.organizationmanager.v1.idp.DomainChallenge\x12\x1b\n\x13\x64\x65letion_protection\x18\x08 \x01(\x08\"l\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x14\n\x10NEED_TO_VALIDATE\x10\x01\x12\x0e\n\nVALIDATING\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x0b\n\x07INVALID\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05J\x04\x08\x06\x10\x07\"\xaa\x05\n\x0f\x44omainChallenge\x12.\n\ncreated_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x04type\x18\x04 \x01(\x0e\x32=.yandex.cloud.organizationmanager.v1.idp.DomainChallenge.Type\x12O\n\x06status\x18\x05 \x01(\x0e\x32?.yandex.cloud.organizationmanager.v1.idp.DomainChallenge.Status\x12[\n\rdns_challenge\x18\x06 \x01(\x0b\x32\x42.yandex.cloud.organizationmanager.v1.idp.DomainChallenge.DnsRecordH\x00\x1a\xa6\x01\n\tDnsRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12U\n\x04type\x18\x02 \x01(\x0e\x32G.yandex.cloud.organizationmanager.v1.idp.DomainChallenge.DnsRecord.Type\x12\r\n\x05value\x18\x03 \x01(\t\"%\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03TXT\x10\x01\")\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44NS_TXT\x10\x01\"U\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x0b\n\x07INVALID\x10\x04\x42\x0b\n\tchallengeJ\x04\x08\x03\x10\x04\"\xa5\x04\n\x15PasswordQualityPolicy\x12\x15\n\rallow_similar\x18\x01 \x01(\x08\x12\x1b\n\nmax_length\x18\x02 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\x12\x1b\n\nmin_length\x18\x03 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\x12\x1d\n\x0cmatch_length\x18\x04 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\x12h\n\x10required_classes\x18\x05 \x01(\x0b\x32N.yandex.cloud.organizationmanager.v1.idp.PasswordQualityPolicy.RequiredClasses\x12}\n\x1cmin_length_by_class_settings\x18\x06 \x01(\x0b\x32W.yandex.cloud.organizationmanager.v1.idp.PasswordQualityPolicy.MinLengthByClassSettings\x1aS\n\x0fRequiredClasses\x12\x0e\n\x06lowers\x18\x01 \x01(\x08\x12\x0e\n\x06uppers\x18\x02 \x01(\x08\x12\x0e\n\x06\x64igits\x18\x03 \x01(\x08\x12\x10\n\x08specials\x18\x04 \x01(\x08\x1a^\n\x18MinLengthByClassSettings\x12\x14\n\x03one\x18\x01 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\x12\x14\n\x03two\x18\x02 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\x12\x16\n\x05three\x18\x03 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\"Z\n\x16PasswordLifetimePolicy\x12\x1f\n\x0emin_days_count\x18\x01 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\x12\x1f\n\x0emax_days_count\x18\x02 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\"\x8b\x01\n\x1a\x42ruteforceProtectionPolicy\x12)\n\x06window\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n\x05\x62lock\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x08\x61ttempts\x18\x03 \x01(\x03\x42\x06\xfa\xc7\x31\x02>0B~\n+yandex.cloud.api.organizationmanager.v1.idpZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1/idp;idpb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.organizationmanager.v1.idp.userpool_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n+yandex.cloud.api.organizationmanager.v1.idpZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1/idp;idp'
|
|
38
|
+
_globals['_USERPOOL_LABELSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_USERPOOL_LABELSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS'].fields_by_name['one']._loaded_options = None
|
|
41
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS'].fields_by_name['one']._serialized_options = b'\372\3071\003>=0'
|
|
42
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS'].fields_by_name['two']._loaded_options = None
|
|
43
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS'].fields_by_name['two']._serialized_options = b'\372\3071\003>=0'
|
|
44
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS'].fields_by_name['three']._loaded_options = None
|
|
45
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS'].fields_by_name['three']._serialized_options = b'\372\3071\003>=0'
|
|
46
|
+
_globals['_PASSWORDQUALITYPOLICY'].fields_by_name['max_length']._loaded_options = None
|
|
47
|
+
_globals['_PASSWORDQUALITYPOLICY'].fields_by_name['max_length']._serialized_options = b'\372\3071\003>=0'
|
|
48
|
+
_globals['_PASSWORDQUALITYPOLICY'].fields_by_name['min_length']._loaded_options = None
|
|
49
|
+
_globals['_PASSWORDQUALITYPOLICY'].fields_by_name['min_length']._serialized_options = b'\372\3071\003>=0'
|
|
50
|
+
_globals['_PASSWORDQUALITYPOLICY'].fields_by_name['match_length']._loaded_options = None
|
|
51
|
+
_globals['_PASSWORDQUALITYPOLICY'].fields_by_name['match_length']._serialized_options = b'\372\3071\003>=0'
|
|
52
|
+
_globals['_PASSWORDLIFETIMEPOLICY'].fields_by_name['min_days_count']._loaded_options = None
|
|
53
|
+
_globals['_PASSWORDLIFETIMEPOLICY'].fields_by_name['min_days_count']._serialized_options = b'\372\3071\003>=0'
|
|
54
|
+
_globals['_PASSWORDLIFETIMEPOLICY'].fields_by_name['max_days_count']._loaded_options = None
|
|
55
|
+
_globals['_PASSWORDLIFETIMEPOLICY'].fields_by_name['max_days_count']._serialized_options = b'\372\3071\003>=0'
|
|
56
|
+
_globals['_BRUTEFORCEPROTECTIONPOLICY'].fields_by_name['attempts']._loaded_options = None
|
|
57
|
+
_globals['_BRUTEFORCEPROTECTIONPOLICY'].fields_by_name['attempts']._serialized_options = b'\372\3071\002>0'
|
|
58
|
+
_globals['_USERPOOL']._serialized_start=196
|
|
59
|
+
_globals['_USERPOOL']._serialized_end=1046
|
|
60
|
+
_globals['_USERPOOL_LABELSENTRY']._serialized_start=927
|
|
61
|
+
_globals['_USERPOOL_LABELSENTRY']._serialized_end=972
|
|
62
|
+
_globals['_USERPOOL_STATUS']._serialized_start=974
|
|
63
|
+
_globals['_USERPOOL_STATUS']._serialized_end=1046
|
|
64
|
+
_globals['_USERSETTINGS']._serialized_start=1049
|
|
65
|
+
_globals['_USERSETTINGS']._serialized_end=1192
|
|
66
|
+
_globals['_DOMAIN']._serialized_start=1195
|
|
67
|
+
_globals['_DOMAIN']._serialized_end=1633
|
|
68
|
+
_globals['_DOMAIN_STATUS']._serialized_start=1519
|
|
69
|
+
_globals['_DOMAIN_STATUS']._serialized_end=1627
|
|
70
|
+
_globals['_DOMAINCHALLENGE']._serialized_start=1636
|
|
71
|
+
_globals['_DOMAINCHALLENGE']._serialized_end=2318
|
|
72
|
+
_globals['_DOMAINCHALLENGE_DNSRECORD']._serialized_start=2003
|
|
73
|
+
_globals['_DOMAINCHALLENGE_DNSRECORD']._serialized_end=2169
|
|
74
|
+
_globals['_DOMAINCHALLENGE_DNSRECORD_TYPE']._serialized_start=2132
|
|
75
|
+
_globals['_DOMAINCHALLENGE_DNSRECORD_TYPE']._serialized_end=2169
|
|
76
|
+
_globals['_DOMAINCHALLENGE_TYPE']._serialized_start=2171
|
|
77
|
+
_globals['_DOMAINCHALLENGE_TYPE']._serialized_end=2212
|
|
78
|
+
_globals['_DOMAINCHALLENGE_STATUS']._serialized_start=2214
|
|
79
|
+
_globals['_DOMAINCHALLENGE_STATUS']._serialized_end=2299
|
|
80
|
+
_globals['_PASSWORDQUALITYPOLICY']._serialized_start=2321
|
|
81
|
+
_globals['_PASSWORDQUALITYPOLICY']._serialized_end=2870
|
|
82
|
+
_globals['_PASSWORDQUALITYPOLICY_REQUIREDCLASSES']._serialized_start=2691
|
|
83
|
+
_globals['_PASSWORDQUALITYPOLICY_REQUIREDCLASSES']._serialized_end=2774
|
|
84
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS']._serialized_start=2776
|
|
85
|
+
_globals['_PASSWORDQUALITYPOLICY_MINLENGTHBYCLASSSETTINGS']._serialized_end=2870
|
|
86
|
+
_globals['_PASSWORDLIFETIMEPOLICY']._serialized_start=2872
|
|
87
|
+
_globals['_PASSWORDLIFETIMEPOLICY']._serialized_end=2962
|
|
88
|
+
_globals['_BRUTEFORCEPROTECTIONPOLICY']._serialized_start=2965
|
|
89
|
+
_globals['_BRUTEFORCEPROTECTIONPOLICY']._serialized_end=3104
|
|
90
|
+
# @@protoc_insertion_point(module_scope)
|