yandexcloud 0.345.0__py3-none-any.whl → 0.347.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 (58) hide show
  1. yandex/cloud/ai/assistants/v1/common_pb2.py +18 -10
  2. yandex/cloud/ai/assistants/v1/common_pb2.pyi +67 -2
  3. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.py +16 -16
  4. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.pyi +7 -7
  5. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.py +16 -16
  6. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.pyi +14 -2
  7. yandex/cloud/gitlab/__init__.py +0 -0
  8. yandex/cloud/gitlab/v1/__init__.py +0 -0
  9. yandex/cloud/gitlab/v1/instance_pb2.py +54 -0
  10. yandex/cloud/gitlab/v1/instance_pb2.pyi +158 -0
  11. yandex/cloud/gitlab/v1/instance_pb2_grpc.py +24 -0
  12. yandex/cloud/gitlab/v1/instance_pb2_grpc.pyi +17 -0
  13. yandex/cloud/gitlab/v1/instance_service_pb2.py +118 -0
  14. yandex/cloud/gitlab/v1/instance_service_pb2.pyi +257 -0
  15. yandex/cloud/gitlab/v1/instance_service_pb2_grpc.py +314 -0
  16. yandex/cloud/gitlab/v1/instance_service_pb2_grpc.pyi +128 -0
  17. yandex/cloud/gitlab/v1/maintenance_pb2.py +41 -0
  18. yandex/cloud/gitlab/v1/maintenance_pb2.pyi +40 -0
  19. yandex/cloud/gitlab/v1/maintenance_pb2_grpc.py +24 -0
  20. yandex/cloud/gitlab/v1/maintenance_pb2_grpc.pyi +17 -0
  21. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.py +11 -3
  22. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.pyi +20 -0
  23. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.py +44 -0
  24. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.pyi +20 -0
  25. yandex/cloud/marketplace/pim/v1/saas/product_instance_pb2.pyi +35 -4
  26. yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.pyi +9 -1
  27. yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.py +10 -5
  28. yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.pyi +14 -2
  29. yandex/cloud/mdb/mysql/v1/cluster_service_pb2.py +74 -74
  30. yandex/cloud/mdb/mysql/v1/cluster_service_pb2.pyi +8 -2
  31. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +64 -64
  32. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +8 -2
  33. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +64 -52
  34. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +75 -0
  35. yandex/cloud/mdb/spqr/v1/cluster_service_pb2_grpc.py +44 -0
  36. yandex/cloud/mdb/spqr/v1/cluster_service_pb2_grpc.pyi +20 -0
  37. yandex/cloud/monitoring/v3/thresholds_pb2.py +5 -5
  38. yandex/cloud/monitoring/v3/thresholds_pb2.pyi +4 -2
  39. yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +7 -12
  40. yandex/cloud/spark/v1/job_pb2.py +12 -16
  41. yandex/cloud/spark/v1/job_pb2.pyi +3 -51
  42. yandex/cloud/trino/v1/catalog_pb2.py +252 -0
  43. yandex/cloud/trino/v1/catalog_pb2.pyi +965 -0
  44. yandex/cloud/trino/v1/catalog_pb2_grpc.py +24 -0
  45. yandex/cloud/trino/v1/catalog_pb2_grpc.pyi +17 -0
  46. yandex/cloud/trino/v1/catalog_service_pb2.py +94 -0
  47. yandex/cloud/trino/v1/catalog_service_pb2.pyi +235 -0
  48. yandex/cloud/trino/v1/catalog_service_pb2_grpc.py +279 -0
  49. yandex/cloud/trino/v1/catalog_service_pb2_grpc.pyi +132 -0
  50. yandex/cloud/trino/v1/cluster_service_pb2.py +50 -49
  51. yandex/cloud/trino/v1/cluster_service_pb2.pyi +10 -1
  52. yandexcloud/__init__.py +1 -1
  53. {yandexcloud-0.345.0.dist-info → yandexcloud-0.347.0.dist-info}/METADATA +1 -1
  54. {yandexcloud-0.345.0.dist-info → yandexcloud-0.347.0.dist-info}/RECORD +58 -36
  55. {yandexcloud-0.345.0.dist-info → yandexcloud-0.347.0.dist-info}/AUTHORS +0 -0
  56. {yandexcloud-0.345.0.dist-info → yandexcloud-0.347.0.dist-info}/LICENSE +0 -0
  57. {yandexcloud-0.345.0.dist-info → yandexcloud-0.347.0.dist-info}/WHEEL +0 -0
  58. {yandexcloud-0.345.0.dist-info → yandexcloud-0.347.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,314 @@
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
+ from yandex.cloud.gitlab.v1 import instance_pb2 as yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__pb2
7
+ from yandex.cloud.gitlab.v1 import instance_service_pb2 as yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2
8
+ from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
9
+
10
+ GRPC_GENERATED_VERSION = '1.70.0'
11
+ GRPC_VERSION = grpc.__version__
12
+ _version_not_supported = False
13
+
14
+ try:
15
+ from grpc._utilities import first_version_is_lower
16
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17
+ except ImportError:
18
+ _version_not_supported = True
19
+
20
+ if _version_not_supported:
21
+ raise RuntimeError(
22
+ f'The grpc package installed is at version {GRPC_VERSION},'
23
+ + f' but the generated code in yandex/cloud/gitlab/v1/instance_service_pb2_grpc.py depends on'
24
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
25
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27
+ )
28
+
29
+
30
+ class InstanceServiceStub(object):
31
+ """Missing associated documentation comment in .proto file."""
32
+
33
+ def __init__(self, channel):
34
+ """Constructor.
35
+
36
+ Args:
37
+ channel: A grpc.Channel.
38
+ """
39
+ self.Get = channel.unary_unary(
40
+ '/yandex.cloud.gitlab.v1.InstanceService/Get',
41
+ request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.GetInstanceRequest.SerializeToString,
42
+ response_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__pb2.Instance.FromString,
43
+ _registered_method=True)
44
+ self.List = channel.unary_unary(
45
+ '/yandex.cloud.gitlab.v1.InstanceService/List',
46
+ request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.ListInstancesRequest.SerializeToString,
47
+ response_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.ListInstancesResponse.FromString,
48
+ _registered_method=True)
49
+ self.Create = channel.unary_unary(
50
+ '/yandex.cloud.gitlab.v1.InstanceService/Create',
51
+ request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.CreateInstanceRequest.SerializeToString,
52
+ response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
53
+ _registered_method=True)
54
+ self.Delete = channel.unary_unary(
55
+ '/yandex.cloud.gitlab.v1.InstanceService/Delete',
56
+ request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.DeleteInstanceRequest.SerializeToString,
57
+ response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
58
+ _registered_method=True)
59
+ self.Start = channel.unary_unary(
60
+ '/yandex.cloud.gitlab.v1.InstanceService/Start',
61
+ request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.StartInstanceRequest.SerializeToString,
62
+ response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
63
+ _registered_method=True)
64
+ self.Stop = channel.unary_unary(
65
+ '/yandex.cloud.gitlab.v1.InstanceService/Stop',
66
+ request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.StopInstanceRequest.SerializeToString,
67
+ response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
68
+ _registered_method=True)
69
+
70
+
71
+ class InstanceServiceServicer(object):
72
+ """Missing associated documentation comment in .proto file."""
73
+
74
+ def Get(self, request, context):
75
+ """Missing associated documentation comment in .proto file."""
76
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
77
+ context.set_details('Method not implemented!')
78
+ raise NotImplementedError('Method not implemented!')
79
+
80
+ def List(self, request, context):
81
+ """Missing associated documentation comment in .proto file."""
82
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
83
+ context.set_details('Method not implemented!')
84
+ raise NotImplementedError('Method not implemented!')
85
+
86
+ def Create(self, request, context):
87
+ """Missing associated documentation comment in .proto file."""
88
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
89
+ context.set_details('Method not implemented!')
90
+ raise NotImplementedError('Method not implemented!')
91
+
92
+ def Delete(self, request, context):
93
+ """Missing associated documentation comment in .proto file."""
94
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
95
+ context.set_details('Method not implemented!')
96
+ raise NotImplementedError('Method not implemented!')
97
+
98
+ def Start(self, request, context):
99
+ """Missing associated documentation comment in .proto file."""
100
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
101
+ context.set_details('Method not implemented!')
102
+ raise NotImplementedError('Method not implemented!')
103
+
104
+ def Stop(self, request, context):
105
+ """Missing associated documentation comment in .proto file."""
106
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
107
+ context.set_details('Method not implemented!')
108
+ raise NotImplementedError('Method not implemented!')
109
+
110
+
111
+ def add_InstanceServiceServicer_to_server(servicer, server):
112
+ rpc_method_handlers = {
113
+ 'Get': grpc.unary_unary_rpc_method_handler(
114
+ servicer.Get,
115
+ request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.GetInstanceRequest.FromString,
116
+ response_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__pb2.Instance.SerializeToString,
117
+ ),
118
+ 'List': grpc.unary_unary_rpc_method_handler(
119
+ servicer.List,
120
+ request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.ListInstancesRequest.FromString,
121
+ response_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.ListInstancesResponse.SerializeToString,
122
+ ),
123
+ 'Create': grpc.unary_unary_rpc_method_handler(
124
+ servicer.Create,
125
+ request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.CreateInstanceRequest.FromString,
126
+ response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
127
+ ),
128
+ 'Delete': grpc.unary_unary_rpc_method_handler(
129
+ servicer.Delete,
130
+ request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.DeleteInstanceRequest.FromString,
131
+ response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
132
+ ),
133
+ 'Start': grpc.unary_unary_rpc_method_handler(
134
+ servicer.Start,
135
+ request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.StartInstanceRequest.FromString,
136
+ response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
137
+ ),
138
+ 'Stop': grpc.unary_unary_rpc_method_handler(
139
+ servicer.Stop,
140
+ request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.StopInstanceRequest.FromString,
141
+ response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
142
+ ),
143
+ }
144
+ generic_handler = grpc.method_handlers_generic_handler(
145
+ 'yandex.cloud.gitlab.v1.InstanceService', rpc_method_handlers)
146
+ server.add_generic_rpc_handlers((generic_handler,))
147
+ server.add_registered_method_handlers('yandex.cloud.gitlab.v1.InstanceService', rpc_method_handlers)
148
+
149
+
150
+ # This class is part of an EXPERIMENTAL API.
151
+ class InstanceService(object):
152
+ """Missing associated documentation comment in .proto file."""
153
+
154
+ @staticmethod
155
+ def Get(request,
156
+ target,
157
+ options=(),
158
+ channel_credentials=None,
159
+ call_credentials=None,
160
+ insecure=False,
161
+ compression=None,
162
+ wait_for_ready=None,
163
+ timeout=None,
164
+ metadata=None):
165
+ return grpc.experimental.unary_unary(
166
+ request,
167
+ target,
168
+ '/yandex.cloud.gitlab.v1.InstanceService/Get',
169
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.GetInstanceRequest.SerializeToString,
170
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__pb2.Instance.FromString,
171
+ options,
172
+ channel_credentials,
173
+ insecure,
174
+ call_credentials,
175
+ compression,
176
+ wait_for_ready,
177
+ timeout,
178
+ metadata,
179
+ _registered_method=True)
180
+
181
+ @staticmethod
182
+ def List(request,
183
+ target,
184
+ options=(),
185
+ channel_credentials=None,
186
+ call_credentials=None,
187
+ insecure=False,
188
+ compression=None,
189
+ wait_for_ready=None,
190
+ timeout=None,
191
+ metadata=None):
192
+ return grpc.experimental.unary_unary(
193
+ request,
194
+ target,
195
+ '/yandex.cloud.gitlab.v1.InstanceService/List',
196
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.ListInstancesRequest.SerializeToString,
197
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.ListInstancesResponse.FromString,
198
+ options,
199
+ channel_credentials,
200
+ insecure,
201
+ call_credentials,
202
+ compression,
203
+ wait_for_ready,
204
+ timeout,
205
+ metadata,
206
+ _registered_method=True)
207
+
208
+ @staticmethod
209
+ def Create(request,
210
+ target,
211
+ options=(),
212
+ channel_credentials=None,
213
+ call_credentials=None,
214
+ insecure=False,
215
+ compression=None,
216
+ wait_for_ready=None,
217
+ timeout=None,
218
+ metadata=None):
219
+ return grpc.experimental.unary_unary(
220
+ request,
221
+ target,
222
+ '/yandex.cloud.gitlab.v1.InstanceService/Create',
223
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.CreateInstanceRequest.SerializeToString,
224
+ yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
225
+ options,
226
+ channel_credentials,
227
+ insecure,
228
+ call_credentials,
229
+ compression,
230
+ wait_for_ready,
231
+ timeout,
232
+ metadata,
233
+ _registered_method=True)
234
+
235
+ @staticmethod
236
+ def Delete(request,
237
+ target,
238
+ options=(),
239
+ channel_credentials=None,
240
+ call_credentials=None,
241
+ insecure=False,
242
+ compression=None,
243
+ wait_for_ready=None,
244
+ timeout=None,
245
+ metadata=None):
246
+ return grpc.experimental.unary_unary(
247
+ request,
248
+ target,
249
+ '/yandex.cloud.gitlab.v1.InstanceService/Delete',
250
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.DeleteInstanceRequest.SerializeToString,
251
+ yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
252
+ options,
253
+ channel_credentials,
254
+ insecure,
255
+ call_credentials,
256
+ compression,
257
+ wait_for_ready,
258
+ timeout,
259
+ metadata,
260
+ _registered_method=True)
261
+
262
+ @staticmethod
263
+ def Start(request,
264
+ target,
265
+ options=(),
266
+ channel_credentials=None,
267
+ call_credentials=None,
268
+ insecure=False,
269
+ compression=None,
270
+ wait_for_ready=None,
271
+ timeout=None,
272
+ metadata=None):
273
+ return grpc.experimental.unary_unary(
274
+ request,
275
+ target,
276
+ '/yandex.cloud.gitlab.v1.InstanceService/Start',
277
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.StartInstanceRequest.SerializeToString,
278
+ yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
279
+ options,
280
+ channel_credentials,
281
+ insecure,
282
+ call_credentials,
283
+ compression,
284
+ wait_for_ready,
285
+ timeout,
286
+ metadata,
287
+ _registered_method=True)
288
+
289
+ @staticmethod
290
+ def Stop(request,
291
+ target,
292
+ options=(),
293
+ channel_credentials=None,
294
+ call_credentials=None,
295
+ insecure=False,
296
+ compression=None,
297
+ wait_for_ready=None,
298
+ timeout=None,
299
+ metadata=None):
300
+ return grpc.experimental.unary_unary(
301
+ request,
302
+ target,
303
+ '/yandex.cloud.gitlab.v1.InstanceService/Stop',
304
+ yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.StopInstanceRequest.SerializeToString,
305
+ yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
306
+ options,
307
+ channel_credentials,
308
+ insecure,
309
+ call_credentials,
310
+ compression,
311
+ wait_for_ready,
312
+ timeout,
313
+ metadata,
314
+ _registered_method=True)
@@ -0,0 +1,128 @@
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.gitlab.v1.instance_pb2
12
+ import yandex.cloud.gitlab.v1.instance_service_pb2
13
+ import yandex.cloud.operation.operation_pb2
14
+
15
+ _T = typing.TypeVar("_T")
16
+
17
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
18
+
19
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
20
+ ...
21
+
22
+ class InstanceServiceStub:
23
+ def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
24
+ Get: grpc.UnaryUnaryMultiCallable[
25
+ yandex.cloud.gitlab.v1.instance_service_pb2.GetInstanceRequest,
26
+ yandex.cloud.gitlab.v1.instance_pb2.Instance,
27
+ ]
28
+
29
+ List: grpc.UnaryUnaryMultiCallable[
30
+ yandex.cloud.gitlab.v1.instance_service_pb2.ListInstancesRequest,
31
+ yandex.cloud.gitlab.v1.instance_service_pb2.ListInstancesResponse,
32
+ ]
33
+
34
+ Create: grpc.UnaryUnaryMultiCallable[
35
+ yandex.cloud.gitlab.v1.instance_service_pb2.CreateInstanceRequest,
36
+ yandex.cloud.operation.operation_pb2.Operation,
37
+ ]
38
+
39
+ Delete: grpc.UnaryUnaryMultiCallable[
40
+ yandex.cloud.gitlab.v1.instance_service_pb2.DeleteInstanceRequest,
41
+ yandex.cloud.operation.operation_pb2.Operation,
42
+ ]
43
+
44
+ Start: grpc.UnaryUnaryMultiCallable[
45
+ yandex.cloud.gitlab.v1.instance_service_pb2.StartInstanceRequest,
46
+ yandex.cloud.operation.operation_pb2.Operation,
47
+ ]
48
+
49
+ Stop: grpc.UnaryUnaryMultiCallable[
50
+ yandex.cloud.gitlab.v1.instance_service_pb2.StopInstanceRequest,
51
+ yandex.cloud.operation.operation_pb2.Operation,
52
+ ]
53
+
54
+ class InstanceServiceAsyncStub:
55
+ Get: grpc.aio.UnaryUnaryMultiCallable[
56
+ yandex.cloud.gitlab.v1.instance_service_pb2.GetInstanceRequest,
57
+ yandex.cloud.gitlab.v1.instance_pb2.Instance,
58
+ ]
59
+
60
+ List: grpc.aio.UnaryUnaryMultiCallable[
61
+ yandex.cloud.gitlab.v1.instance_service_pb2.ListInstancesRequest,
62
+ yandex.cloud.gitlab.v1.instance_service_pb2.ListInstancesResponse,
63
+ ]
64
+
65
+ Create: grpc.aio.UnaryUnaryMultiCallable[
66
+ yandex.cloud.gitlab.v1.instance_service_pb2.CreateInstanceRequest,
67
+ yandex.cloud.operation.operation_pb2.Operation,
68
+ ]
69
+
70
+ Delete: grpc.aio.UnaryUnaryMultiCallable[
71
+ yandex.cloud.gitlab.v1.instance_service_pb2.DeleteInstanceRequest,
72
+ yandex.cloud.operation.operation_pb2.Operation,
73
+ ]
74
+
75
+ Start: grpc.aio.UnaryUnaryMultiCallable[
76
+ yandex.cloud.gitlab.v1.instance_service_pb2.StartInstanceRequest,
77
+ yandex.cloud.operation.operation_pb2.Operation,
78
+ ]
79
+
80
+ Stop: grpc.aio.UnaryUnaryMultiCallable[
81
+ yandex.cloud.gitlab.v1.instance_service_pb2.StopInstanceRequest,
82
+ yandex.cloud.operation.operation_pb2.Operation,
83
+ ]
84
+
85
+ class InstanceServiceServicer(metaclass=abc.ABCMeta):
86
+ @abc.abstractmethod
87
+ def Get(
88
+ self,
89
+ request: yandex.cloud.gitlab.v1.instance_service_pb2.GetInstanceRequest,
90
+ context: _ServicerContext,
91
+ ) -> typing.Union[yandex.cloud.gitlab.v1.instance_pb2.Instance, collections.abc.Awaitable[yandex.cloud.gitlab.v1.instance_pb2.Instance]]: ...
92
+
93
+ @abc.abstractmethod
94
+ def List(
95
+ self,
96
+ request: yandex.cloud.gitlab.v1.instance_service_pb2.ListInstancesRequest,
97
+ context: _ServicerContext,
98
+ ) -> typing.Union[yandex.cloud.gitlab.v1.instance_service_pb2.ListInstancesResponse, collections.abc.Awaitable[yandex.cloud.gitlab.v1.instance_service_pb2.ListInstancesResponse]]: ...
99
+
100
+ @abc.abstractmethod
101
+ def Create(
102
+ self,
103
+ request: yandex.cloud.gitlab.v1.instance_service_pb2.CreateInstanceRequest,
104
+ context: _ServicerContext,
105
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
106
+
107
+ @abc.abstractmethod
108
+ def Delete(
109
+ self,
110
+ request: yandex.cloud.gitlab.v1.instance_service_pb2.DeleteInstanceRequest,
111
+ context: _ServicerContext,
112
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
113
+
114
+ @abc.abstractmethod
115
+ def Start(
116
+ self,
117
+ request: yandex.cloud.gitlab.v1.instance_service_pb2.StartInstanceRequest,
118
+ context: _ServicerContext,
119
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
120
+
121
+ @abc.abstractmethod
122
+ def Stop(
123
+ self,
124
+ request: yandex.cloud.gitlab.v1.instance_service_pb2.StopInstanceRequest,
125
+ context: _ServicerContext,
126
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
127
+
128
+ def add_InstanceServiceServicer_to_server(servicer: InstanceServiceServicer, 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/gitlab/v1/maintenance.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/gitlab/v1/maintenance.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(yandex/cloud/gitlab/v1/maintenance.proto\x12\x16yandex.cloud.gitlab.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xe1\x01\n\x14MaintenanceOperation\x12\x17\n\x04info\x18\x01 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x31\n\rdelayed_until\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17latest_maintenance_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x1cnext_maintenance_window_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampBc\n\x1ayandex.cloud.api.gitlab.v1B\x02GMZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/gitlab/v1;gitlabb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.gitlab.v1.maintenance_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\032yandex.cloud.api.gitlab.v1B\002GMZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/gitlab/v1;gitlab'
37
+ _globals['_MAINTENANCEOPERATION'].fields_by_name['info']._loaded_options = None
38
+ _globals['_MAINTENANCEOPERATION'].fields_by_name['info']._serialized_options = b'\212\3101\005<=256'
39
+ _globals['_MAINTENANCEOPERATION']._serialized_start=133
40
+ _globals['_MAINTENANCEOPERATION']._serialized_end=358
41
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,40 @@
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.message
9
+ import google.protobuf.timestamp_pb2
10
+ import typing
11
+
12
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
13
+
14
+ @typing.final
15
+ class MaintenanceOperation(google.protobuf.message.Message):
16
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
17
+
18
+ INFO_FIELD_NUMBER: builtins.int
19
+ DELAYED_UNTIL_FIELD_NUMBER: builtins.int
20
+ LATEST_MAINTENANCE_TIME_FIELD_NUMBER: builtins.int
21
+ NEXT_MAINTENANCE_WINDOW_TIME_FIELD_NUMBER: builtins.int
22
+ info: builtins.str
23
+ @property
24
+ def delayed_until(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
25
+ @property
26
+ def latest_maintenance_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
27
+ @property
28
+ def next_maintenance_window_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
29
+ def __init__(
30
+ self,
31
+ *,
32
+ info: builtins.str = ...,
33
+ delayed_until: google.protobuf.timestamp_pb2.Timestamp | None = ...,
34
+ latest_maintenance_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
35
+ next_maintenance_window_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
36
+ ) -> None: ...
37
+ def HasField(self, field_name: typing.Literal["delayed_until", b"delayed_until", "latest_maintenance_time", b"latest_maintenance_time", "next_maintenance_window_time", b"next_maintenance_window_time"]) -> builtins.bool: ...
38
+ def ClearField(self, field_name: typing.Literal["delayed_until", b"delayed_until", "info", b"info", "latest_maintenance_time", b"latest_maintenance_time", "next_maintenance_window_time", b"next_maintenance_window_time"]) -> None: ...
39
+
40
+ global___MaintenanceOperation = MaintenanceOperation
@@ -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/gitlab/v1/maintenance_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
+ ...
@@ -29,7 +29,7 @@ from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operati
29
29
  from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
30
30
 
31
31
 
32
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nByandex/cloud/marketplace/licensemanager/saas/v1/lock_service.proto\x12/yandex.cloud.marketplace.licensemanager.saas.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\x35yandex/cloud/marketplace/licensemanager/v1/lock.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"L\n\x11\x45nsureLockRequest\x12\x1c\n\x0einstance_token\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x19\n\x0bresource_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\"%\n\x12\x45nsureLockMetadata\x12\x0f\n\x07lock_id\x18\x01 \x01(\t\"\'\n\x0eGetLockRequest\x12\x15\n\x07lock_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x32\xa6\x03\n\x0bLockService\x12\xdd\x01\n\x06\x45nsure\x12\x42.yandex.cloud.marketplace.licensemanager.saas.v1.EnsureLockRequest\x1a!.yandex.cloud.operation.Operation\"l\xb2\xd2*,\n\x12\x45nsureLockMetadata\x12\x16licensemanager.v1.Lock\x82\xd3\xe4\x93\x02\x36\"1/marketplace/license-manager/saas/v1/locks/ensure:\x01*\x12\xb6\x01\n\x03Get\x12?.yandex.cloud.marketplace.licensemanager.saas.v1.GetLockRequest\x1a\x30.yandex.cloud.marketplace.licensemanager.v1.Lock\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/marketplace/license-manager/saas/v1/locks/{lock_id}B\x99\x01\n3yandex.cloud.api.marketplace.licensemanager.saas.v1Zbgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/licensemanager/saas/v1;licensemanagerb\x06proto3')
32
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nByandex/cloud/marketplace/licensemanager/saas/v1/lock_service.proto\x12/yandex.cloud.marketplace.licensemanager.saas.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\x35yandex/cloud/marketplace/licensemanager/v1/lock.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"L\n\x11\x45nsureLockRequest\x12\x1c\n\x0einstance_token\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x19\n\x0bresource_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\"%\n\x12\x45nsureLockMetadata\x12\x0f\n\x07lock_id\x18\x01 \x01(\t\"\'\n\x0eGetLockRequest\x12\x15\n\x07lock_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"R\n\x1aGetLockByResourceIDRequest\x12\x19\n\x0bresource_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x19\n\x0binstance_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x32\xfd\x04\n\x0bLockService\x12\xdd\x01\n\x06\x45nsure\x12\x42.yandex.cloud.marketplace.licensemanager.saas.v1.EnsureLockRequest\x1a!.yandex.cloud.operation.Operation\"l\xb2\xd2*,\n\x12\x45nsureLockMetadata\x12\x16licensemanager.v1.Lock\x82\xd3\xe4\x93\x02\x36\"1/marketplace/license-manager/saas/v1/locks/ensure:\x01*\x12\xb6\x01\n\x03Get\x12?.yandex.cloud.marketplace.licensemanager.saas.v1.GetLockRequest\x1a\x30.yandex.cloud.marketplace.licensemanager.v1.Lock\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/marketplace/license-manager/saas/v1/locks/{lock_id}\x12\xd4\x01\n\x0fGetByResourceID\x12K.yandex.cloud.marketplace.licensemanager.saas.v1.GetLockByResourceIDRequest\x1a\x30.yandex.cloud.marketplace.licensemanager.v1.Lock\"B\x82\xd3\xe4\x93\x02<\x12:/marketplace/license-manager/saas/v1/locks:getByResourceIDB\x99\x01\n3yandex.cloud.api.marketplace.licensemanager.saas.v1Zbgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/licensemanager/saas/v1;licensemanagerb\x06proto3')
33
33
 
34
34
  _globals = globals()
35
35
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -43,16 +43,24 @@ if not _descriptor._USE_C_DESCRIPTORS:
43
43
  _globals['_ENSURELOCKREQUEST'].fields_by_name['resource_id']._serialized_options = b'\350\3071\001'
44
44
  _globals['_GETLOCKREQUEST'].fields_by_name['lock_id']._loaded_options = None
45
45
  _globals['_GETLOCKREQUEST'].fields_by_name['lock_id']._serialized_options = b'\350\3071\001'
46
+ _globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['resource_id']._loaded_options = None
47
+ _globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['resource_id']._serialized_options = b'\350\3071\001'
48
+ _globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['instance_id']._loaded_options = None
49
+ _globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['instance_id']._serialized_options = b'\350\3071\001'
46
50
  _globals['_LOCKSERVICE'].methods_by_name['Ensure']._loaded_options = None
47
51
  _globals['_LOCKSERVICE'].methods_by_name['Ensure']._serialized_options = b'\262\322*,\n\022EnsureLockMetadata\022\026licensemanager.v1.Lock\202\323\344\223\0026\"1/marketplace/license-manager/saas/v1/locks/ensure:\001*'
48
52
  _globals['_LOCKSERVICE'].methods_by_name['Get']._loaded_options = None
49
53
  _globals['_LOCKSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\0026\0224/marketplace/license-manager/saas/v1/locks/{lock_id}'
54
+ _globals['_LOCKSERVICE'].methods_by_name['GetByResourceID']._loaded_options = None
55
+ _globals['_LOCKSERVICE'].methods_by_name['GetByResourceID']._serialized_options = b'\202\323\344\223\002<\022:/marketplace/license-manager/saas/v1/locks:getByResourceID'
50
56
  _globals['_ENSURELOCKREQUEST']._serialized_start=309
51
57
  _globals['_ENSURELOCKREQUEST']._serialized_end=385
52
58
  _globals['_ENSURELOCKMETADATA']._serialized_start=387
53
59
  _globals['_ENSURELOCKMETADATA']._serialized_end=424
54
60
  _globals['_GETLOCKREQUEST']._serialized_start=426
55
61
  _globals['_GETLOCKREQUEST']._serialized_end=465
56
- _globals['_LOCKSERVICE']._serialized_start=468
57
- _globals['_LOCKSERVICE']._serialized_end=890
62
+ _globals['_GETLOCKBYRESOURCEIDREQUEST']._serialized_start=467
63
+ _globals['_GETLOCKBYRESOURCEIDREQUEST']._serialized_end=549
64
+ _globals['_LOCKSERVICE']._serialized_start=552
65
+ _globals['_LOCKSERVICE']._serialized_end=1189
58
66
  # @@protoc_insertion_point(module_scope)
@@ -61,3 +61,23 @@ class GetLockRequest(google.protobuf.message.Message):
61
61
  def ClearField(self, field_name: typing.Literal["lock_id", b"lock_id"]) -> None: ...
62
62
 
63
63
  global___GetLockRequest = GetLockRequest
64
+
65
+ @typing.final
66
+ class GetLockByResourceIDRequest(google.protobuf.message.Message):
67
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
68
+
69
+ RESOURCE_ID_FIELD_NUMBER: builtins.int
70
+ INSTANCE_ID_FIELD_NUMBER: builtins.int
71
+ resource_id: builtins.str
72
+ """ID of the resource to with subscription is locked."""
73
+ instance_id: builtins.str
74
+ """ID of the subscription"""
75
+ def __init__(
76
+ self,
77
+ *,
78
+ resource_id: builtins.str = ...,
79
+ instance_id: builtins.str = ...,
80
+ ) -> None: ...
81
+ def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id", "resource_id", b"resource_id"]) -> None: ...
82
+
83
+ global___GetLockByResourceIDRequest = GetLockByResourceIDRequest