yandexcloud 0.363.0__py3-none-any.whl → 0.364.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.

Files changed (40) hide show
  1. yandex/cloud/baremetal/v1alpha/rental_period_pb2.py +37 -0
  2. yandex/cloud/baremetal/v1alpha/rental_period_pb2.pyi +31 -0
  3. yandex/cloud/baremetal/v1alpha/rental_period_pb2_grpc.py +24 -0
  4. yandex/cloud/baremetal/v1alpha/rental_period_pb2_grpc.pyi +17 -0
  5. yandex/cloud/baremetal/v1alpha/rental_period_service_pb2.py +50 -0
  6. yandex/cloud/baremetal/v1alpha/rental_period_service_pb2.pyi +75 -0
  7. yandex/cloud/baremetal/v1alpha/rental_period_service_pb2_grpc.py +101 -0
  8. yandex/cloud/baremetal/v1alpha/rental_period_service_pb2_grpc.pyi +50 -0
  9. yandex/cloud/baremetal/v1alpha/server_service_pb2.pyi +8 -2
  10. yandex/cloud/mdb/postgresql/v1/user_pb2.py +27 -25
  11. yandex/cloud/mdb/postgresql/v1/user_pb2.pyi +27 -2
  12. yandex/cloud/mdb/postgresql/v1/user_service_pb2.py +33 -33
  13. yandex/cloud/mdb/postgresql/v1/user_service_pb2.pyi +5 -1
  14. yandex/cloud/organizationmanager/v1/idp/application/__init__.py +0 -0
  15. yandex/cloud/organizationmanager/v1/idp/application/oauth/__init__.py +0 -0
  16. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2.py +55 -0
  17. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2.pyi +206 -0
  18. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2_grpc.py +24 -0
  19. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2_grpc.pyi +17 -0
  20. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2.py +178 -0
  21. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2.pyi +641 -0
  22. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2_grpc.py +634 -0
  23. yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2_grpc.pyi +302 -0
  24. yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2.py +41 -0
  25. yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2.pyi +108 -0
  26. yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2_grpc.py +24 -0
  27. yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2_grpc.pyi +17 -0
  28. yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2.py +156 -0
  29. yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2.pyi +462 -0
  30. yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2_grpc.py +446 -0
  31. yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2_grpc.pyi +185 -0
  32. yandex/cloud/ytsaurus/v1/cluster_pb2.py +4 -2
  33. yandex/cloud/ytsaurus/v1/cluster_pb2.pyi +19 -1
  34. yandexcloud/__init__.py +1 -1
  35. {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/METADATA +1 -1
  36. {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/RECORD +40 -14
  37. {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/AUTHORS +0 -0
  38. {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/LICENSE +0 -0
  39. {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/WHEEL +0 -0
  40. {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,302 @@
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.access.access_pb2
12
+ import yandex.cloud.operation.operation_pb2
13
+ import yandex.cloud.organizationmanager.v1.idp.application.oauth.application_pb2
14
+ import yandex.cloud.organizationmanager.v1.idp.application.oauth.application_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 ApplicationServiceStub:
24
+ """A set of methods for managing OAuth application."""
25
+
26
+ def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
27
+ Get: grpc.UnaryUnaryMultiCallable[
28
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.GetApplicationRequest,
29
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_pb2.Application,
30
+ ]
31
+ """Returns the specified OAuth application resource.
32
+
33
+ To get the list of available OAuth applications, make a [List] request.
34
+ """
35
+
36
+ List: grpc.UnaryUnaryMultiCallable[
37
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationsRequest,
38
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationsResponse,
39
+ ]
40
+ """Retrieves the list of OAuth applications in the specified organization."""
41
+
42
+ Create: grpc.UnaryUnaryMultiCallable[
43
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.CreateApplicationRequest,
44
+ yandex.cloud.operation.operation_pb2.Operation,
45
+ ]
46
+ """Creates an OAuth application in the specified organization."""
47
+
48
+ Update: grpc.UnaryUnaryMultiCallable[
49
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.UpdateApplicationRequest,
50
+ yandex.cloud.operation.operation_pb2.Operation,
51
+ ]
52
+ """Updates the specified OAuth application."""
53
+
54
+ Suspend: grpc.UnaryUnaryMultiCallable[
55
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.SuspendApplicationRequest,
56
+ yandex.cloud.operation.operation_pb2.Operation,
57
+ ]
58
+ """Sets status to SUSPENDED for the specified OAuth application."""
59
+
60
+ Reactivate: grpc.UnaryUnaryMultiCallable[
61
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ReactivateApplicationRequest,
62
+ yandex.cloud.operation.operation_pb2.Operation,
63
+ ]
64
+ """Sets status to ACTIVE for the specified OAuth application."""
65
+
66
+ Delete: grpc.UnaryUnaryMultiCallable[
67
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.DeleteApplicationRequest,
68
+ yandex.cloud.operation.operation_pb2.Operation,
69
+ ]
70
+ """Deletes the specified OAuth application."""
71
+
72
+ ListOperations: grpc.UnaryUnaryMultiCallable[
73
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationOperationsRequest,
74
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationOperationsResponse,
75
+ ]
76
+ """Lists operations for the specified OAuth application."""
77
+
78
+ ListAccessBindings: grpc.UnaryUnaryMultiCallable[
79
+ yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
80
+ yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
81
+ ]
82
+ """Lists access bindings for the specified OAuth application."""
83
+
84
+ SetAccessBindings: grpc.UnaryUnaryMultiCallable[
85
+ yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
86
+ yandex.cloud.operation.operation_pb2.Operation,
87
+ ]
88
+ """Sets access bindings for the specified OAuth application."""
89
+
90
+ UpdateAccessBindings: grpc.UnaryUnaryMultiCallable[
91
+ yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
92
+ yandex.cloud.operation.operation_pb2.Operation,
93
+ ]
94
+ """Updates access bindings for the specified OAuth application."""
95
+
96
+ ListAssignments: grpc.UnaryUnaryMultiCallable[
97
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListAssignmentsRequest,
98
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListAssignmentsResponse,
99
+ ]
100
+ """Lists assignmnents for the specified OAuth application."""
101
+
102
+ UpdateAssignments: grpc.UnaryUnaryMultiCallable[
103
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.UpdateAssignmentsRequest,
104
+ yandex.cloud.operation.operation_pb2.Operation,
105
+ ]
106
+ """Updates assignmnents for the specified OAuth application."""
107
+
108
+ class ApplicationServiceAsyncStub:
109
+ """A set of methods for managing OAuth application."""
110
+
111
+ Get: grpc.aio.UnaryUnaryMultiCallable[
112
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.GetApplicationRequest,
113
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_pb2.Application,
114
+ ]
115
+ """Returns the specified OAuth application resource.
116
+
117
+ To get the list of available OAuth applications, make a [List] request.
118
+ """
119
+
120
+ List: grpc.aio.UnaryUnaryMultiCallable[
121
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationsRequest,
122
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationsResponse,
123
+ ]
124
+ """Retrieves the list of OAuth applications in the specified organization."""
125
+
126
+ Create: grpc.aio.UnaryUnaryMultiCallable[
127
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.CreateApplicationRequest,
128
+ yandex.cloud.operation.operation_pb2.Operation,
129
+ ]
130
+ """Creates an OAuth application in the specified organization."""
131
+
132
+ Update: grpc.aio.UnaryUnaryMultiCallable[
133
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.UpdateApplicationRequest,
134
+ yandex.cloud.operation.operation_pb2.Operation,
135
+ ]
136
+ """Updates the specified OAuth application."""
137
+
138
+ Suspend: grpc.aio.UnaryUnaryMultiCallable[
139
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.SuspendApplicationRequest,
140
+ yandex.cloud.operation.operation_pb2.Operation,
141
+ ]
142
+ """Sets status to SUSPENDED for the specified OAuth application."""
143
+
144
+ Reactivate: grpc.aio.UnaryUnaryMultiCallable[
145
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ReactivateApplicationRequest,
146
+ yandex.cloud.operation.operation_pb2.Operation,
147
+ ]
148
+ """Sets status to ACTIVE for the specified OAuth application."""
149
+
150
+ Delete: grpc.aio.UnaryUnaryMultiCallable[
151
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.DeleteApplicationRequest,
152
+ yandex.cloud.operation.operation_pb2.Operation,
153
+ ]
154
+ """Deletes the specified OAuth application."""
155
+
156
+ ListOperations: grpc.aio.UnaryUnaryMultiCallable[
157
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationOperationsRequest,
158
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationOperationsResponse,
159
+ ]
160
+ """Lists operations for the specified OAuth application."""
161
+
162
+ ListAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
163
+ yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
164
+ yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
165
+ ]
166
+ """Lists access bindings for the specified OAuth application."""
167
+
168
+ SetAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
169
+ yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
170
+ yandex.cloud.operation.operation_pb2.Operation,
171
+ ]
172
+ """Sets access bindings for the specified OAuth application."""
173
+
174
+ UpdateAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
175
+ yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
176
+ yandex.cloud.operation.operation_pb2.Operation,
177
+ ]
178
+ """Updates access bindings for the specified OAuth application."""
179
+
180
+ ListAssignments: grpc.aio.UnaryUnaryMultiCallable[
181
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListAssignmentsRequest,
182
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListAssignmentsResponse,
183
+ ]
184
+ """Lists assignmnents for the specified OAuth application."""
185
+
186
+ UpdateAssignments: grpc.aio.UnaryUnaryMultiCallable[
187
+ yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.UpdateAssignmentsRequest,
188
+ yandex.cloud.operation.operation_pb2.Operation,
189
+ ]
190
+ """Updates assignmnents for the specified OAuth application."""
191
+
192
+ class ApplicationServiceServicer(metaclass=abc.ABCMeta):
193
+ """A set of methods for managing OAuth application."""
194
+
195
+ @abc.abstractmethod
196
+ def Get(
197
+ self,
198
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.GetApplicationRequest,
199
+ context: _ServicerContext,
200
+ ) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_pb2.Application, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_pb2.Application]]:
201
+ """Returns the specified OAuth application resource.
202
+
203
+ To get the list of available OAuth applications, make a [List] request.
204
+ """
205
+
206
+ @abc.abstractmethod
207
+ def List(
208
+ self,
209
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationsRequest,
210
+ context: _ServicerContext,
211
+ ) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationsResponse]]:
212
+ """Retrieves the list of OAuth applications in the specified organization."""
213
+
214
+ @abc.abstractmethod
215
+ def Create(
216
+ self,
217
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.CreateApplicationRequest,
218
+ context: _ServicerContext,
219
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
220
+ """Creates an OAuth application in the specified organization."""
221
+
222
+ @abc.abstractmethod
223
+ def Update(
224
+ self,
225
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.UpdateApplicationRequest,
226
+ context: _ServicerContext,
227
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
228
+ """Updates the specified OAuth application."""
229
+
230
+ @abc.abstractmethod
231
+ def Suspend(
232
+ self,
233
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.SuspendApplicationRequest,
234
+ context: _ServicerContext,
235
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
236
+ """Sets status to SUSPENDED for the specified OAuth application."""
237
+
238
+ @abc.abstractmethod
239
+ def Reactivate(
240
+ self,
241
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ReactivateApplicationRequest,
242
+ context: _ServicerContext,
243
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
244
+ """Sets status to ACTIVE for the specified OAuth application."""
245
+
246
+ @abc.abstractmethod
247
+ def Delete(
248
+ self,
249
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.DeleteApplicationRequest,
250
+ context: _ServicerContext,
251
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
252
+ """Deletes the specified OAuth application."""
253
+
254
+ @abc.abstractmethod
255
+ def ListOperations(
256
+ self,
257
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationOperationsRequest,
258
+ context: _ServicerContext,
259
+ ) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationOperationsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListApplicationOperationsResponse]]:
260
+ """Lists operations for the specified OAuth application."""
261
+
262
+ @abc.abstractmethod
263
+ def ListAccessBindings(
264
+ self,
265
+ request: yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
266
+ context: _ServicerContext,
267
+ ) -> typing.Union[yandex.cloud.access.access_pb2.ListAccessBindingsResponse, collections.abc.Awaitable[yandex.cloud.access.access_pb2.ListAccessBindingsResponse]]:
268
+ """Lists access bindings for the specified OAuth application."""
269
+
270
+ @abc.abstractmethod
271
+ def SetAccessBindings(
272
+ self,
273
+ request: yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
274
+ context: _ServicerContext,
275
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
276
+ """Sets access bindings for the specified OAuth application."""
277
+
278
+ @abc.abstractmethod
279
+ def UpdateAccessBindings(
280
+ self,
281
+ request: yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
282
+ context: _ServicerContext,
283
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
284
+ """Updates access bindings for the specified OAuth application."""
285
+
286
+ @abc.abstractmethod
287
+ def ListAssignments(
288
+ self,
289
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListAssignmentsRequest,
290
+ context: _ServicerContext,
291
+ ) -> typing.Union[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListAssignmentsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.ListAssignmentsResponse]]:
292
+ """Lists assignmnents for the specified OAuth application."""
293
+
294
+ @abc.abstractmethod
295
+ def UpdateAssignments(
296
+ self,
297
+ request: yandex.cloud.organizationmanager.v1.idp.application.oauth.application_service_pb2.UpdateAssignmentsRequest,
298
+ context: _ServicerContext,
299
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
300
+ """Updates assignmnents for the specified OAuth application."""
301
+
302
+ def add_ApplicationServiceServicer_to_server(servicer: ApplicationServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
@@ -0,0 +1,41 @@
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/mfa_enforcement.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/mfa_enforcement.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
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n9yandex/cloud/organizationmanager/v1/mfa_enforcement.proto\x12#yandex.cloud.organizationmanager.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xeb\x02\n\x0eMfaEnforcement\x12\n\n\x02id\x18\x01 \x01(\t\x12\x17\n\x0forganization_id\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63r_id\x18\x03 \x01(\t\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12I\n\x06status\x18\x05 \x01(\x0e\x32\x39.yandex.cloud.organizationmanager.v1.MfaEnforcementStatus\x12,\n\x08\x61pply_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\renroll_window\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04name\x18\x08 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12.\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp*\xab\x01\n\x14MfaEnforcementStatus\x12&\n\"MFA_ENFORCEMENT_STATUS_UNSPECIFIED\x10\x00\x12!\n\x1dMFA_ENFORCEMENT_STATUS_ACTIVE\x10\x01\x12#\n\x1fMFA_ENFORCEMENT_STATUS_INACTIVE\x10\x02\x12#\n\x1fMFA_ENFORCEMENT_STATUS_DELETING\x10\x03\x42\x86\x01\n\'yandex.cloud.api.organizationmanager.v1Z[github.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1;organizationmanagerb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.organizationmanager.v1.mfa_enforcement_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\'yandex.cloud.api.organizationmanager.v1Z[github.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1;organizationmanager'
37
+ _globals['_MFAENFORCEMENTSTATUS']._serialized_start=530
38
+ _globals['_MFAENFORCEMENTSTATUS']._serialized_end=701
39
+ _globals['_MFAENFORCEMENT']._serialized_start=164
40
+ _globals['_MFAENFORCEMENT']._serialized_end=527
41
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,108 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.duration_pb2
9
+ import google.protobuf.internal.enum_type_wrapper
10
+ import google.protobuf.message
11
+ import google.protobuf.timestamp_pb2
12
+ import sys
13
+ import typing
14
+
15
+ if sys.version_info >= (3, 10):
16
+ import typing as typing_extensions
17
+ else:
18
+ import typing_extensions
19
+
20
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
21
+
22
+ class _MfaEnforcementStatus:
23
+ ValueType = typing.NewType("ValueType", builtins.int)
24
+ V: typing_extensions.TypeAlias = ValueType
25
+
26
+ class _MfaEnforcementStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MfaEnforcementStatus.ValueType], builtins.type):
27
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
28
+ MFA_ENFORCEMENT_STATUS_UNSPECIFIED: _MfaEnforcementStatus.ValueType # 0
29
+ MFA_ENFORCEMENT_STATUS_ACTIVE: _MfaEnforcementStatus.ValueType # 1
30
+ MFA_ENFORCEMENT_STATUS_INACTIVE: _MfaEnforcementStatus.ValueType # 2
31
+ MFA_ENFORCEMENT_STATUS_DELETING: _MfaEnforcementStatus.ValueType # 3
32
+
33
+ class MfaEnforcementStatus(_MfaEnforcementStatus, metaclass=_MfaEnforcementStatusEnumTypeWrapper): ...
34
+
35
+ MFA_ENFORCEMENT_STATUS_UNSPECIFIED: MfaEnforcementStatus.ValueType # 0
36
+ MFA_ENFORCEMENT_STATUS_ACTIVE: MfaEnforcementStatus.ValueType # 1
37
+ MFA_ENFORCEMENT_STATUS_INACTIVE: MfaEnforcementStatus.ValueType # 2
38
+ MFA_ENFORCEMENT_STATUS_DELETING: MfaEnforcementStatus.ValueType # 3
39
+ global___MfaEnforcementStatus = MfaEnforcementStatus
40
+
41
+ @typing.final
42
+ class MfaEnforcement(google.protobuf.message.Message):
43
+ """MFA enforcement resource"""
44
+
45
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
46
+
47
+ ID_FIELD_NUMBER: builtins.int
48
+ ORGANIZATION_ID_FIELD_NUMBER: builtins.int
49
+ ACR_ID_FIELD_NUMBER: builtins.int
50
+ TTL_FIELD_NUMBER: builtins.int
51
+ STATUS_FIELD_NUMBER: builtins.int
52
+ APPLY_AT_FIELD_NUMBER: builtins.int
53
+ ENROLL_WINDOW_FIELD_NUMBER: builtins.int
54
+ NAME_FIELD_NUMBER: builtins.int
55
+ DESCRIPTION_FIELD_NUMBER: builtins.int
56
+ CREATED_AT_FIELD_NUMBER: builtins.int
57
+ id: builtins.str
58
+ """id of the MFA enforcement"""
59
+ organization_id: builtins.str
60
+ """organization id of the MFA enforcement"""
61
+ acr_id: builtins.str
62
+ """acr id of the MFA enforcement"""
63
+ status: global___MfaEnforcementStatus.ValueType
64
+ """MFA enforcement status"""
65
+ name: builtins.str
66
+ """name of the MFA enforcement"""
67
+ description: builtins.str
68
+ """description of the MFA enforcement"""
69
+ @property
70
+ def ttl(self) -> google.protobuf.duration_pb2.Duration:
71
+ """the period during which the entered MFA factor is considered valid and the
72
+ corresponding acr is regarded as satisfied
73
+ """
74
+
75
+ @property
76
+ def apply_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
77
+ """the MFA enforcement application start time."""
78
+
79
+ @property
80
+ def enroll_window(self) -> google.protobuf.duration_pb2.Duration:
81
+ """the time window during which the user is allowed to create an MFA profile.
82
+ this window is measured relative to the MFA enforcement application start time
83
+ and the user's most recent successful authentication that falls under the rule
84
+ (or the user's creation time, if there has been no authentication).
85
+ """
86
+
87
+ @property
88
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
89
+ """creation timestamp"""
90
+
91
+ def __init__(
92
+ self,
93
+ *,
94
+ id: builtins.str = ...,
95
+ organization_id: builtins.str = ...,
96
+ acr_id: builtins.str = ...,
97
+ ttl: google.protobuf.duration_pb2.Duration | None = ...,
98
+ status: global___MfaEnforcementStatus.ValueType = ...,
99
+ apply_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
100
+ enroll_window: google.protobuf.duration_pb2.Duration | None = ...,
101
+ name: builtins.str = ...,
102
+ description: builtins.str = ...,
103
+ created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
104
+ ) -> None: ...
105
+ def HasField(self, field_name: typing.Literal["apply_at", b"apply_at", "created_at", b"created_at", "enroll_window", b"enroll_window", "ttl", b"ttl"]) -> builtins.bool: ...
106
+ def ClearField(self, field_name: typing.Literal["acr_id", b"acr_id", "apply_at", b"apply_at", "created_at", b"created_at", "description", b"description", "enroll_window", b"enroll_window", "id", b"id", "name", b"name", "organization_id", b"organization_id", "status", b"status", "ttl", b"ttl"]) -> None: ...
107
+
108
+ global___MfaEnforcement = MfaEnforcement
@@ -0,0 +1,24 @@
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
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.70.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,17 @@
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
+
12
+ _T = typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
15
+
16
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ ...