yandexcloud 0.345.0__py3-none-any.whl → 0.346.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.
Files changed (41) hide show
  1. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.py +16 -16
  2. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.pyi +7 -7
  3. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.py +16 -16
  4. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.pyi +14 -2
  5. yandex/cloud/gitlab/__init__.py +0 -0
  6. yandex/cloud/gitlab/v1/__init__.py +0 -0
  7. yandex/cloud/gitlab/v1/instance_pb2.py +54 -0
  8. yandex/cloud/gitlab/v1/instance_pb2.pyi +158 -0
  9. yandex/cloud/gitlab/v1/instance_pb2_grpc.py +24 -0
  10. yandex/cloud/gitlab/v1/instance_pb2_grpc.pyi +17 -0
  11. yandex/cloud/gitlab/v1/instance_service_pb2.py +118 -0
  12. yandex/cloud/gitlab/v1/instance_service_pb2.pyi +257 -0
  13. yandex/cloud/gitlab/v1/instance_service_pb2_grpc.py +314 -0
  14. yandex/cloud/gitlab/v1/instance_service_pb2_grpc.pyi +128 -0
  15. yandex/cloud/gitlab/v1/maintenance_pb2.py +41 -0
  16. yandex/cloud/gitlab/v1/maintenance_pb2.pyi +40 -0
  17. yandex/cloud/gitlab/v1/maintenance_pb2_grpc.py +24 -0
  18. yandex/cloud/gitlab/v1/maintenance_pb2_grpc.pyi +17 -0
  19. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +64 -52
  20. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +75 -0
  21. yandex/cloud/mdb/spqr/v1/cluster_service_pb2_grpc.py +44 -0
  22. yandex/cloud/mdb/spqr/v1/cluster_service_pb2_grpc.pyi +20 -0
  23. yandex/cloud/spark/v1/job_pb2.py +12 -16
  24. yandex/cloud/spark/v1/job_pb2.pyi +3 -51
  25. yandex/cloud/trino/v1/catalog_pb2.py +252 -0
  26. yandex/cloud/trino/v1/catalog_pb2.pyi +965 -0
  27. yandex/cloud/trino/v1/catalog_pb2_grpc.py +24 -0
  28. yandex/cloud/trino/v1/catalog_pb2_grpc.pyi +17 -0
  29. yandex/cloud/trino/v1/catalog_service_pb2.py +94 -0
  30. yandex/cloud/trino/v1/catalog_service_pb2.pyi +235 -0
  31. yandex/cloud/trino/v1/catalog_service_pb2_grpc.py +279 -0
  32. yandex/cloud/trino/v1/catalog_service_pb2_grpc.pyi +132 -0
  33. yandex/cloud/trino/v1/cluster_service_pb2.py +50 -49
  34. yandex/cloud/trino/v1/cluster_service_pb2.pyi +10 -1
  35. yandexcloud/__init__.py +1 -1
  36. {yandexcloud-0.345.0.dist-info → yandexcloud-0.346.0.dist-info}/METADATA +1 -1
  37. {yandexcloud-0.345.0.dist-info → yandexcloud-0.346.0.dist-info}/RECORD +41 -19
  38. {yandexcloud-0.345.0.dist-info → yandexcloud-0.346.0.dist-info}/AUTHORS +0 -0
  39. {yandexcloud-0.345.0.dist-info → yandexcloud-0.346.0.dist-info}/LICENSE +0 -0
  40. {yandexcloud-0.345.0.dist-info → yandexcloud-0.346.0.dist-info}/WHEEL +0 -0
  41. {yandexcloud-0.345.0.dist-info → yandexcloud-0.346.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
+ ...