yandexcloud 0.341.0__py3-none-any.whl → 0.342.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/mdb/kafka/v1/cluster_pb2.py +18 -14
- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +2 -0
- yandex/cloud/mdb/kafka/v1/topic_pb2.py +12 -8
- yandex/cloud/mdb/kafka/v1/topic_pb2.pyi +2 -0
- yandex/cloud/trino/__init__.py +0 -0
- yandex/cloud/trino/v1/__init__.py +0 -0
- yandex/cloud/trino/v1/cluster_pb2.py +119 -0
- yandex/cloud/trino/v1/cluster_pb2.pyi +576 -0
- yandex/cloud/trino/v1/cluster_pb2_grpc.py +24 -0
- yandex/cloud/trino/v1/cluster_pb2_grpc.pyi +17 -0
- yandex/cloud/trino/v1/cluster_service_pb2.py +162 -0
- yandex/cloud/trino/v1/cluster_service_pb2.pyi +597 -0
- yandex/cloud/trino/v1/cluster_service_pb2_grpc.py +411 -0
- yandex/cloud/trino/v1/cluster_service_pb2_grpc.pyi +192 -0
- yandex/cloud/trino/v1/maintenance_pb2.py +53 -0
- yandex/cloud/trino/v1/maintenance_pb2.pyi +123 -0
- yandex/cloud/trino/v1/maintenance_pb2_grpc.py +24 -0
- yandex/cloud/trino/v1/maintenance_pb2_grpc.pyi +17 -0
- yandexcloud/__init__.py +1 -1
- yandexcloud/_sdk.py +1 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.342.0.dist-info}/METADATA +2 -1
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.342.0.dist-info}/RECORD +26 -12
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.342.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.342.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.342.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.342.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,411 @@
|
|
|
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.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
7
|
+
from yandex.cloud.trino.v1 import cluster_pb2 as yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2
|
|
8
|
+
from yandex.cloud.trino.v1 import cluster_service_pb2 as yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__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/trino/v1/cluster_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 ClusterServiceStub(object):
|
|
31
|
+
"""A set of methods for managing Trino Cluster resources.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, channel):
|
|
35
|
+
"""Constructor.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
channel: A grpc.Channel.
|
|
39
|
+
"""
|
|
40
|
+
self.Get = channel.unary_unary(
|
|
41
|
+
'/yandex.cloud.trino.v1.ClusterService/Get',
|
|
42
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.GetClusterRequest.SerializeToString,
|
|
43
|
+
response_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2.Cluster.FromString,
|
|
44
|
+
_registered_method=True)
|
|
45
|
+
self.List = channel.unary_unary(
|
|
46
|
+
'/yandex.cloud.trino.v1.ClusterService/List',
|
|
47
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersRequest.SerializeToString,
|
|
48
|
+
response_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersResponse.FromString,
|
|
49
|
+
_registered_method=True)
|
|
50
|
+
self.Create = channel.unary_unary(
|
|
51
|
+
'/yandex.cloud.trino.v1.ClusterService/Create',
|
|
52
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.SerializeToString,
|
|
53
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
54
|
+
_registered_method=True)
|
|
55
|
+
self.Update = channel.unary_unary(
|
|
56
|
+
'/yandex.cloud.trino.v1.ClusterService/Update',
|
|
57
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.SerializeToString,
|
|
58
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
59
|
+
_registered_method=True)
|
|
60
|
+
self.Delete = channel.unary_unary(
|
|
61
|
+
'/yandex.cloud.trino.v1.ClusterService/Delete',
|
|
62
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString,
|
|
63
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
64
|
+
_registered_method=True)
|
|
65
|
+
self.Start = channel.unary_unary(
|
|
66
|
+
'/yandex.cloud.trino.v1.ClusterService/Start',
|
|
67
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StartClusterRequest.SerializeToString,
|
|
68
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
69
|
+
_registered_method=True)
|
|
70
|
+
self.Stop = channel.unary_unary(
|
|
71
|
+
'/yandex.cloud.trino.v1.ClusterService/Stop',
|
|
72
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StopClusterRequest.SerializeToString,
|
|
73
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
74
|
+
_registered_method=True)
|
|
75
|
+
self.ListOperations = channel.unary_unary(
|
|
76
|
+
'/yandex.cloud.trino.v1.ClusterService/ListOperations',
|
|
77
|
+
request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.SerializeToString,
|
|
78
|
+
response_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.FromString,
|
|
79
|
+
_registered_method=True)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class ClusterServiceServicer(object):
|
|
83
|
+
"""A set of methods for managing Trino Cluster resources.
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
def Get(self, request, context):
|
|
87
|
+
"""Returns the specified Trino Cluster resource.
|
|
88
|
+
"""
|
|
89
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
90
|
+
context.set_details('Method not implemented!')
|
|
91
|
+
raise NotImplementedError('Method not implemented!')
|
|
92
|
+
|
|
93
|
+
def List(self, request, context):
|
|
94
|
+
"""Retrieves a list of Trino Cluster resources.
|
|
95
|
+
"""
|
|
96
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
97
|
+
context.set_details('Method not implemented!')
|
|
98
|
+
raise NotImplementedError('Method not implemented!')
|
|
99
|
+
|
|
100
|
+
def Create(self, request, context):
|
|
101
|
+
"""Creates a Trino Cluster resource.
|
|
102
|
+
"""
|
|
103
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
104
|
+
context.set_details('Method not implemented!')
|
|
105
|
+
raise NotImplementedError('Method not implemented!')
|
|
106
|
+
|
|
107
|
+
def Update(self, request, context):
|
|
108
|
+
"""Updates configuration of the specified Trino cluster.
|
|
109
|
+
"""
|
|
110
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
111
|
+
context.set_details('Method not implemented!')
|
|
112
|
+
raise NotImplementedError('Method not implemented!')
|
|
113
|
+
|
|
114
|
+
def Delete(self, request, context):
|
|
115
|
+
"""Deletes the specified Trino Cluster resource.
|
|
116
|
+
"""
|
|
117
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
118
|
+
context.set_details('Method not implemented!')
|
|
119
|
+
raise NotImplementedError('Method not implemented!')
|
|
120
|
+
|
|
121
|
+
def Start(self, request, context):
|
|
122
|
+
"""Start the specified Trino Cluster resource.
|
|
123
|
+
"""
|
|
124
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
125
|
+
context.set_details('Method not implemented!')
|
|
126
|
+
raise NotImplementedError('Method not implemented!')
|
|
127
|
+
|
|
128
|
+
def Stop(self, request, context):
|
|
129
|
+
"""Stops the specified Trino Cluster resource.
|
|
130
|
+
"""
|
|
131
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
132
|
+
context.set_details('Method not implemented!')
|
|
133
|
+
raise NotImplementedError('Method not implemented!')
|
|
134
|
+
|
|
135
|
+
def ListOperations(self, request, context):
|
|
136
|
+
"""Retrieves the list of Operation resources for the specified cluster.
|
|
137
|
+
"""
|
|
138
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
139
|
+
context.set_details('Method not implemented!')
|
|
140
|
+
raise NotImplementedError('Method not implemented!')
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def add_ClusterServiceServicer_to_server(servicer, server):
|
|
144
|
+
rpc_method_handlers = {
|
|
145
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
146
|
+
servicer.Get,
|
|
147
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.GetClusterRequest.FromString,
|
|
148
|
+
response_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2.Cluster.SerializeToString,
|
|
149
|
+
),
|
|
150
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
151
|
+
servicer.List,
|
|
152
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersRequest.FromString,
|
|
153
|
+
response_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersResponse.SerializeToString,
|
|
154
|
+
),
|
|
155
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
156
|
+
servicer.Create,
|
|
157
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.FromString,
|
|
158
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
159
|
+
),
|
|
160
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
161
|
+
servicer.Update,
|
|
162
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.FromString,
|
|
163
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
164
|
+
),
|
|
165
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
166
|
+
servicer.Delete,
|
|
167
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.FromString,
|
|
168
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
169
|
+
),
|
|
170
|
+
'Start': grpc.unary_unary_rpc_method_handler(
|
|
171
|
+
servicer.Start,
|
|
172
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StartClusterRequest.FromString,
|
|
173
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
174
|
+
),
|
|
175
|
+
'Stop': grpc.unary_unary_rpc_method_handler(
|
|
176
|
+
servicer.Stop,
|
|
177
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StopClusterRequest.FromString,
|
|
178
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
179
|
+
),
|
|
180
|
+
'ListOperations': grpc.unary_unary_rpc_method_handler(
|
|
181
|
+
servicer.ListOperations,
|
|
182
|
+
request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.FromString,
|
|
183
|
+
response_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.SerializeToString,
|
|
184
|
+
),
|
|
185
|
+
}
|
|
186
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
187
|
+
'yandex.cloud.trino.v1.ClusterService', rpc_method_handlers)
|
|
188
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
189
|
+
server.add_registered_method_handlers('yandex.cloud.trino.v1.ClusterService', rpc_method_handlers)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
# This class is part of an EXPERIMENTAL API.
|
|
193
|
+
class ClusterService(object):
|
|
194
|
+
"""A set of methods for managing Trino Cluster resources.
|
|
195
|
+
"""
|
|
196
|
+
|
|
197
|
+
@staticmethod
|
|
198
|
+
def Get(request,
|
|
199
|
+
target,
|
|
200
|
+
options=(),
|
|
201
|
+
channel_credentials=None,
|
|
202
|
+
call_credentials=None,
|
|
203
|
+
insecure=False,
|
|
204
|
+
compression=None,
|
|
205
|
+
wait_for_ready=None,
|
|
206
|
+
timeout=None,
|
|
207
|
+
metadata=None):
|
|
208
|
+
return grpc.experimental.unary_unary(
|
|
209
|
+
request,
|
|
210
|
+
target,
|
|
211
|
+
'/yandex.cloud.trino.v1.ClusterService/Get',
|
|
212
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.GetClusterRequest.SerializeToString,
|
|
213
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2.Cluster.FromString,
|
|
214
|
+
options,
|
|
215
|
+
channel_credentials,
|
|
216
|
+
insecure,
|
|
217
|
+
call_credentials,
|
|
218
|
+
compression,
|
|
219
|
+
wait_for_ready,
|
|
220
|
+
timeout,
|
|
221
|
+
metadata,
|
|
222
|
+
_registered_method=True)
|
|
223
|
+
|
|
224
|
+
@staticmethod
|
|
225
|
+
def List(request,
|
|
226
|
+
target,
|
|
227
|
+
options=(),
|
|
228
|
+
channel_credentials=None,
|
|
229
|
+
call_credentials=None,
|
|
230
|
+
insecure=False,
|
|
231
|
+
compression=None,
|
|
232
|
+
wait_for_ready=None,
|
|
233
|
+
timeout=None,
|
|
234
|
+
metadata=None):
|
|
235
|
+
return grpc.experimental.unary_unary(
|
|
236
|
+
request,
|
|
237
|
+
target,
|
|
238
|
+
'/yandex.cloud.trino.v1.ClusterService/List',
|
|
239
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersRequest.SerializeToString,
|
|
240
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersResponse.FromString,
|
|
241
|
+
options,
|
|
242
|
+
channel_credentials,
|
|
243
|
+
insecure,
|
|
244
|
+
call_credentials,
|
|
245
|
+
compression,
|
|
246
|
+
wait_for_ready,
|
|
247
|
+
timeout,
|
|
248
|
+
metadata,
|
|
249
|
+
_registered_method=True)
|
|
250
|
+
|
|
251
|
+
@staticmethod
|
|
252
|
+
def Create(request,
|
|
253
|
+
target,
|
|
254
|
+
options=(),
|
|
255
|
+
channel_credentials=None,
|
|
256
|
+
call_credentials=None,
|
|
257
|
+
insecure=False,
|
|
258
|
+
compression=None,
|
|
259
|
+
wait_for_ready=None,
|
|
260
|
+
timeout=None,
|
|
261
|
+
metadata=None):
|
|
262
|
+
return grpc.experimental.unary_unary(
|
|
263
|
+
request,
|
|
264
|
+
target,
|
|
265
|
+
'/yandex.cloud.trino.v1.ClusterService/Create',
|
|
266
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.SerializeToString,
|
|
267
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
268
|
+
options,
|
|
269
|
+
channel_credentials,
|
|
270
|
+
insecure,
|
|
271
|
+
call_credentials,
|
|
272
|
+
compression,
|
|
273
|
+
wait_for_ready,
|
|
274
|
+
timeout,
|
|
275
|
+
metadata,
|
|
276
|
+
_registered_method=True)
|
|
277
|
+
|
|
278
|
+
@staticmethod
|
|
279
|
+
def Update(request,
|
|
280
|
+
target,
|
|
281
|
+
options=(),
|
|
282
|
+
channel_credentials=None,
|
|
283
|
+
call_credentials=None,
|
|
284
|
+
insecure=False,
|
|
285
|
+
compression=None,
|
|
286
|
+
wait_for_ready=None,
|
|
287
|
+
timeout=None,
|
|
288
|
+
metadata=None):
|
|
289
|
+
return grpc.experimental.unary_unary(
|
|
290
|
+
request,
|
|
291
|
+
target,
|
|
292
|
+
'/yandex.cloud.trino.v1.ClusterService/Update',
|
|
293
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.SerializeToString,
|
|
294
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
295
|
+
options,
|
|
296
|
+
channel_credentials,
|
|
297
|
+
insecure,
|
|
298
|
+
call_credentials,
|
|
299
|
+
compression,
|
|
300
|
+
wait_for_ready,
|
|
301
|
+
timeout,
|
|
302
|
+
metadata,
|
|
303
|
+
_registered_method=True)
|
|
304
|
+
|
|
305
|
+
@staticmethod
|
|
306
|
+
def Delete(request,
|
|
307
|
+
target,
|
|
308
|
+
options=(),
|
|
309
|
+
channel_credentials=None,
|
|
310
|
+
call_credentials=None,
|
|
311
|
+
insecure=False,
|
|
312
|
+
compression=None,
|
|
313
|
+
wait_for_ready=None,
|
|
314
|
+
timeout=None,
|
|
315
|
+
metadata=None):
|
|
316
|
+
return grpc.experimental.unary_unary(
|
|
317
|
+
request,
|
|
318
|
+
target,
|
|
319
|
+
'/yandex.cloud.trino.v1.ClusterService/Delete',
|
|
320
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString,
|
|
321
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
322
|
+
options,
|
|
323
|
+
channel_credentials,
|
|
324
|
+
insecure,
|
|
325
|
+
call_credentials,
|
|
326
|
+
compression,
|
|
327
|
+
wait_for_ready,
|
|
328
|
+
timeout,
|
|
329
|
+
metadata,
|
|
330
|
+
_registered_method=True)
|
|
331
|
+
|
|
332
|
+
@staticmethod
|
|
333
|
+
def Start(request,
|
|
334
|
+
target,
|
|
335
|
+
options=(),
|
|
336
|
+
channel_credentials=None,
|
|
337
|
+
call_credentials=None,
|
|
338
|
+
insecure=False,
|
|
339
|
+
compression=None,
|
|
340
|
+
wait_for_ready=None,
|
|
341
|
+
timeout=None,
|
|
342
|
+
metadata=None):
|
|
343
|
+
return grpc.experimental.unary_unary(
|
|
344
|
+
request,
|
|
345
|
+
target,
|
|
346
|
+
'/yandex.cloud.trino.v1.ClusterService/Start',
|
|
347
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StartClusterRequest.SerializeToString,
|
|
348
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
349
|
+
options,
|
|
350
|
+
channel_credentials,
|
|
351
|
+
insecure,
|
|
352
|
+
call_credentials,
|
|
353
|
+
compression,
|
|
354
|
+
wait_for_ready,
|
|
355
|
+
timeout,
|
|
356
|
+
metadata,
|
|
357
|
+
_registered_method=True)
|
|
358
|
+
|
|
359
|
+
@staticmethod
|
|
360
|
+
def Stop(request,
|
|
361
|
+
target,
|
|
362
|
+
options=(),
|
|
363
|
+
channel_credentials=None,
|
|
364
|
+
call_credentials=None,
|
|
365
|
+
insecure=False,
|
|
366
|
+
compression=None,
|
|
367
|
+
wait_for_ready=None,
|
|
368
|
+
timeout=None,
|
|
369
|
+
metadata=None):
|
|
370
|
+
return grpc.experimental.unary_unary(
|
|
371
|
+
request,
|
|
372
|
+
target,
|
|
373
|
+
'/yandex.cloud.trino.v1.ClusterService/Stop',
|
|
374
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StopClusterRequest.SerializeToString,
|
|
375
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
376
|
+
options,
|
|
377
|
+
channel_credentials,
|
|
378
|
+
insecure,
|
|
379
|
+
call_credentials,
|
|
380
|
+
compression,
|
|
381
|
+
wait_for_ready,
|
|
382
|
+
timeout,
|
|
383
|
+
metadata,
|
|
384
|
+
_registered_method=True)
|
|
385
|
+
|
|
386
|
+
@staticmethod
|
|
387
|
+
def ListOperations(request,
|
|
388
|
+
target,
|
|
389
|
+
options=(),
|
|
390
|
+
channel_credentials=None,
|
|
391
|
+
call_credentials=None,
|
|
392
|
+
insecure=False,
|
|
393
|
+
compression=None,
|
|
394
|
+
wait_for_ready=None,
|
|
395
|
+
timeout=None,
|
|
396
|
+
metadata=None):
|
|
397
|
+
return grpc.experimental.unary_unary(
|
|
398
|
+
request,
|
|
399
|
+
target,
|
|
400
|
+
'/yandex.cloud.trino.v1.ClusterService/ListOperations',
|
|
401
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.SerializeToString,
|
|
402
|
+
yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.FromString,
|
|
403
|
+
options,
|
|
404
|
+
channel_credentials,
|
|
405
|
+
insecure,
|
|
406
|
+
call_credentials,
|
|
407
|
+
compression,
|
|
408
|
+
wait_for_ready,
|
|
409
|
+
timeout,
|
|
410
|
+
metadata,
|
|
411
|
+
_registered_method=True)
|
|
@@ -0,0 +1,192 @@
|
|
|
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.operation.operation_pb2
|
|
12
|
+
import yandex.cloud.trino.v1.cluster_pb2
|
|
13
|
+
import yandex.cloud.trino.v1.cluster_service_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 ClusterServiceStub:
|
|
23
|
+
"""A set of methods for managing Trino Cluster resources."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.trino.v1.cluster_service_pb2.GetClusterRequest,
|
|
28
|
+
yandex.cloud.trino.v1.cluster_pb2.Cluster,
|
|
29
|
+
]
|
|
30
|
+
"""Returns the specified Trino Cluster resource."""
|
|
31
|
+
|
|
32
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
33
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClustersRequest,
|
|
34
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse,
|
|
35
|
+
]
|
|
36
|
+
"""Retrieves a list of Trino Cluster resources."""
|
|
37
|
+
|
|
38
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.trino.v1.cluster_service_pb2.CreateClusterRequest,
|
|
40
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
41
|
+
]
|
|
42
|
+
"""Creates a Trino Cluster resource."""
|
|
43
|
+
|
|
44
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
yandex.cloud.trino.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
46
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
47
|
+
]
|
|
48
|
+
"""Updates configuration of the specified Trino cluster."""
|
|
49
|
+
|
|
50
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
51
|
+
yandex.cloud.trino.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
52
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
53
|
+
]
|
|
54
|
+
"""Deletes the specified Trino Cluster resource."""
|
|
55
|
+
|
|
56
|
+
Start: grpc.UnaryUnaryMultiCallable[
|
|
57
|
+
yandex.cloud.trino.v1.cluster_service_pb2.StartClusterRequest,
|
|
58
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
59
|
+
]
|
|
60
|
+
"""Start the specified Trino Cluster resource."""
|
|
61
|
+
|
|
62
|
+
Stop: grpc.UnaryUnaryMultiCallable[
|
|
63
|
+
yandex.cloud.trino.v1.cluster_service_pb2.StopClusterRequest,
|
|
64
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
65
|
+
]
|
|
66
|
+
"""Stops the specified Trino Cluster resource."""
|
|
67
|
+
|
|
68
|
+
ListOperations: grpc.UnaryUnaryMultiCallable[
|
|
69
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
70
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse,
|
|
71
|
+
]
|
|
72
|
+
"""Retrieves the list of Operation resources for the specified cluster."""
|
|
73
|
+
|
|
74
|
+
class ClusterServiceAsyncStub:
|
|
75
|
+
"""A set of methods for managing Trino Cluster resources."""
|
|
76
|
+
|
|
77
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.trino.v1.cluster_service_pb2.GetClusterRequest,
|
|
79
|
+
yandex.cloud.trino.v1.cluster_pb2.Cluster,
|
|
80
|
+
]
|
|
81
|
+
"""Returns the specified Trino Cluster resource."""
|
|
82
|
+
|
|
83
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClustersRequest,
|
|
85
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse,
|
|
86
|
+
]
|
|
87
|
+
"""Retrieves a list of Trino Cluster resources."""
|
|
88
|
+
|
|
89
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
90
|
+
yandex.cloud.trino.v1.cluster_service_pb2.CreateClusterRequest,
|
|
91
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
92
|
+
]
|
|
93
|
+
"""Creates a Trino Cluster resource."""
|
|
94
|
+
|
|
95
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
96
|
+
yandex.cloud.trino.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
97
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
98
|
+
]
|
|
99
|
+
"""Updates configuration of the specified Trino cluster."""
|
|
100
|
+
|
|
101
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
102
|
+
yandex.cloud.trino.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
103
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
104
|
+
]
|
|
105
|
+
"""Deletes the specified Trino Cluster resource."""
|
|
106
|
+
|
|
107
|
+
Start: grpc.aio.UnaryUnaryMultiCallable[
|
|
108
|
+
yandex.cloud.trino.v1.cluster_service_pb2.StartClusterRequest,
|
|
109
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
110
|
+
]
|
|
111
|
+
"""Start the specified Trino Cluster resource."""
|
|
112
|
+
|
|
113
|
+
Stop: grpc.aio.UnaryUnaryMultiCallable[
|
|
114
|
+
yandex.cloud.trino.v1.cluster_service_pb2.StopClusterRequest,
|
|
115
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
116
|
+
]
|
|
117
|
+
"""Stops the specified Trino Cluster resource."""
|
|
118
|
+
|
|
119
|
+
ListOperations: grpc.aio.UnaryUnaryMultiCallable[
|
|
120
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
121
|
+
yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse,
|
|
122
|
+
]
|
|
123
|
+
"""Retrieves the list of Operation resources for the specified cluster."""
|
|
124
|
+
|
|
125
|
+
class ClusterServiceServicer(metaclass=abc.ABCMeta):
|
|
126
|
+
"""A set of methods for managing Trino Cluster resources."""
|
|
127
|
+
|
|
128
|
+
@abc.abstractmethod
|
|
129
|
+
def Get(
|
|
130
|
+
self,
|
|
131
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.GetClusterRequest,
|
|
132
|
+
context: _ServicerContext,
|
|
133
|
+
) -> typing.Union[yandex.cloud.trino.v1.cluster_pb2.Cluster, collections.abc.Awaitable[yandex.cloud.trino.v1.cluster_pb2.Cluster]]:
|
|
134
|
+
"""Returns the specified Trino Cluster resource."""
|
|
135
|
+
|
|
136
|
+
@abc.abstractmethod
|
|
137
|
+
def List(
|
|
138
|
+
self,
|
|
139
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.ListClustersRequest,
|
|
140
|
+
context: _ServicerContext,
|
|
141
|
+
) -> typing.Union[yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse, collections.abc.Awaitable[yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse]]:
|
|
142
|
+
"""Retrieves a list of Trino Cluster resources."""
|
|
143
|
+
|
|
144
|
+
@abc.abstractmethod
|
|
145
|
+
def Create(
|
|
146
|
+
self,
|
|
147
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.CreateClusterRequest,
|
|
148
|
+
context: _ServicerContext,
|
|
149
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
150
|
+
"""Creates a Trino Cluster resource."""
|
|
151
|
+
|
|
152
|
+
@abc.abstractmethod
|
|
153
|
+
def Update(
|
|
154
|
+
self,
|
|
155
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
156
|
+
context: _ServicerContext,
|
|
157
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
158
|
+
"""Updates configuration of the specified Trino cluster."""
|
|
159
|
+
|
|
160
|
+
@abc.abstractmethod
|
|
161
|
+
def Delete(
|
|
162
|
+
self,
|
|
163
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
164
|
+
context: _ServicerContext,
|
|
165
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
166
|
+
"""Deletes the specified Trino Cluster resource."""
|
|
167
|
+
|
|
168
|
+
@abc.abstractmethod
|
|
169
|
+
def Start(
|
|
170
|
+
self,
|
|
171
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.StartClusterRequest,
|
|
172
|
+
context: _ServicerContext,
|
|
173
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
174
|
+
"""Start the specified Trino Cluster resource."""
|
|
175
|
+
|
|
176
|
+
@abc.abstractmethod
|
|
177
|
+
def Stop(
|
|
178
|
+
self,
|
|
179
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.StopClusterRequest,
|
|
180
|
+
context: _ServicerContext,
|
|
181
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
182
|
+
"""Stops the specified Trino Cluster resource."""
|
|
183
|
+
|
|
184
|
+
@abc.abstractmethod
|
|
185
|
+
def ListOperations(
|
|
186
|
+
self,
|
|
187
|
+
request: yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
188
|
+
context: _ServicerContext,
|
|
189
|
+
) -> typing.Union[yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse, collections.abc.Awaitable[yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse]]:
|
|
190
|
+
"""Retrieves the list of Operation resources for the specified cluster."""
|
|
191
|
+
|
|
192
|
+
def add_ClusterServiceServicer_to_server(servicer: ClusterServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/trino/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/trino/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/trino/v1/maintenance.proto\x12\x15yandex.cloud.trino.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xbc\x01\n\x11MaintenanceWindow\x12\x42\n\x07\x61nytime\x18\x01 \x01(\x0b\x32/.yandex.cloud.trino.v1.AnytimeMaintenanceWindowH\x00\x12S\n\x19weekly_maintenance_window\x18\x02 \x01(\x0b\x32..yandex.cloud.trino.v1.WeeklyMaintenanceWindowH\x00\x42\x0e\n\x06policy\x12\x04\xc0\xc1\x31\x01\"\x1a\n\x18\x41nytimeMaintenanceWindow\"\xda\x01\n\x17WeeklyMaintenanceWindow\x12\x43\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x36.yandex.cloud.trino.v1.WeeklyMaintenanceWindow.WeekDay\x12\x16\n\x04hour\x18\x02 \x01(\x03\x42\x08\xfa\xc7\x31\x04\x31-24\"b\n\x07WeekDay\x12\x18\n\x14WEEK_DAY_UNSPECIFIED\x10\x00\x12\x07\n\x03MON\x10\x01\x12\x07\n\x03TUE\x10\x02\x12\x07\n\x03WED\x10\x03\x12\x07\n\x03THU\x10\x04\x12\x07\n\x03\x46RI\x10\x05\x12\x07\n\x03SAT\x10\x06\x12\x07\n\x03SUN\x10\x07\"\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.TimestampB\\\n\x19yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trinob\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.trino.v1.maintenance_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\031yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trino'
|
|
37
|
+
_globals['_MAINTENANCEWINDOW'].oneofs_by_name['policy']._loaded_options = None
|
|
38
|
+
_globals['_MAINTENANCEWINDOW'].oneofs_by_name['policy']._serialized_options = b'\300\3011\001'
|
|
39
|
+
_globals['_WEEKLYMAINTENANCEWINDOW'].fields_by_name['hour']._loaded_options = None
|
|
40
|
+
_globals['_WEEKLYMAINTENANCEWINDOW'].fields_by_name['hour']._serialized_options = b'\372\3071\0041-24'
|
|
41
|
+
_globals['_MAINTENANCEOPERATION'].fields_by_name['info']._loaded_options = None
|
|
42
|
+
_globals['_MAINTENANCEOPERATION'].fields_by_name['info']._serialized_options = b'\212\3101\005<=256'
|
|
43
|
+
_globals['_MAINTENANCEWINDOW']._serialized_start=131
|
|
44
|
+
_globals['_MAINTENANCEWINDOW']._serialized_end=319
|
|
45
|
+
_globals['_ANYTIMEMAINTENANCEWINDOW']._serialized_start=321
|
|
46
|
+
_globals['_ANYTIMEMAINTENANCEWINDOW']._serialized_end=347
|
|
47
|
+
_globals['_WEEKLYMAINTENANCEWINDOW']._serialized_start=350
|
|
48
|
+
_globals['_WEEKLYMAINTENANCEWINDOW']._serialized_end=568
|
|
49
|
+
_globals['_WEEKLYMAINTENANCEWINDOW_WEEKDAY']._serialized_start=470
|
|
50
|
+
_globals['_WEEKLYMAINTENANCEWINDOW_WEEKDAY']._serialized_end=568
|
|
51
|
+
_globals['_MAINTENANCEOPERATION']._serialized_start=571
|
|
52
|
+
_globals['_MAINTENANCEOPERATION']._serialized_end=796
|
|
53
|
+
# @@protoc_insertion_point(module_scope)
|