yandexcloud 0.315.0__py3-none-any.whl → 0.316.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/access/access_pb2.pyi +7 -2
- yandex/cloud/airflow/__init__.py +0 -0
- yandex/cloud/airflow/v1/__init__.py +0 -0
- yandex/cloud/airflow/v1/cluster_pb2.py +90 -0
- yandex/cloud/airflow/v1/cluster_pb2.pyi +525 -0
- yandex/cloud/airflow/v1/cluster_pb2_grpc.py +4 -0
- yandex/cloud/airflow/v1/cluster_pb2_grpc.pyi +17 -0
- yandex/cloud/airflow/v1/cluster_service_pb2.py +136 -0
- yandex/cloud/airflow/v1/cluster_service_pb2.pyi +528 -0
- yandex/cloud/airflow/v1/cluster_service_pb2_grpc.py +310 -0
- yandex/cloud/airflow/v1/cluster_service_pb2_grpc.pyi +192 -0
- yandex/cloud/airflow/v1/common_pb2.py +28 -0
- yandex/cloud/airflow/v1/common_pb2.pyi +61 -0
- yandex/cloud/airflow/v1/common_pb2_grpc.py +4 -0
- yandex/cloud/airflow/v1/common_pb2_grpc.pyi +17 -0
- {yandexcloud-0.315.0.dist-info → yandexcloud-0.316.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.315.0.dist-info → yandexcloud-0.316.0.dist-info}/RECORD +21 -7
- {yandexcloud-0.315.0.dist-info → yandexcloud-0.316.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.315.0.dist-info → yandexcloud-0.316.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.315.0.dist-info → yandexcloud-0.316.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.315.0.dist-info → yandexcloud-0.316.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,310 @@
|
|
|
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
|
+
|
|
5
|
+
from yandex.cloud.airflow.v1 import cluster_pb2 as yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__pb2
|
|
6
|
+
from yandex.cloud.airflow.v1 import cluster_service_pb2 as yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2
|
|
7
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ClusterServiceStub(object):
|
|
11
|
+
"""A set of methods for managing Apache Airflow Cluster resources.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, channel):
|
|
15
|
+
"""Constructor.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
channel: A grpc.Channel.
|
|
19
|
+
"""
|
|
20
|
+
self.Get = channel.unary_unary(
|
|
21
|
+
'/yandex.cloud.airflow.v1.ClusterService/Get',
|
|
22
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.GetClusterRequest.SerializeToString,
|
|
23
|
+
response_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__pb2.Cluster.FromString,
|
|
24
|
+
)
|
|
25
|
+
self.List = channel.unary_unary(
|
|
26
|
+
'/yandex.cloud.airflow.v1.ClusterService/List',
|
|
27
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClustersRequest.SerializeToString,
|
|
28
|
+
response_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClustersResponse.FromString,
|
|
29
|
+
)
|
|
30
|
+
self.Create = channel.unary_unary(
|
|
31
|
+
'/yandex.cloud.airflow.v1.ClusterService/Create',
|
|
32
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.SerializeToString,
|
|
33
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
34
|
+
)
|
|
35
|
+
self.Update = channel.unary_unary(
|
|
36
|
+
'/yandex.cloud.airflow.v1.ClusterService/Update',
|
|
37
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.SerializeToString,
|
|
38
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
39
|
+
)
|
|
40
|
+
self.Delete = channel.unary_unary(
|
|
41
|
+
'/yandex.cloud.airflow.v1.ClusterService/Delete',
|
|
42
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString,
|
|
43
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
44
|
+
)
|
|
45
|
+
self.Start = channel.unary_unary(
|
|
46
|
+
'/yandex.cloud.airflow.v1.ClusterService/Start',
|
|
47
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.StartClusterRequest.SerializeToString,
|
|
48
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
49
|
+
)
|
|
50
|
+
self.Stop = channel.unary_unary(
|
|
51
|
+
'/yandex.cloud.airflow.v1.ClusterService/Stop',
|
|
52
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.StopClusterRequest.SerializeToString,
|
|
53
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
54
|
+
)
|
|
55
|
+
self.ListOperations = channel.unary_unary(
|
|
56
|
+
'/yandex.cloud.airflow.v1.ClusterService/ListOperations',
|
|
57
|
+
request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.SerializeToString,
|
|
58
|
+
response_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.FromString,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class ClusterServiceServicer(object):
|
|
63
|
+
"""A set of methods for managing Apache Airflow Cluster resources.
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
def Get(self, request, context):
|
|
67
|
+
"""Returns the specified Apache Airflow Cluster resource.
|
|
68
|
+
"""
|
|
69
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
70
|
+
context.set_details('Method not implemented!')
|
|
71
|
+
raise NotImplementedError('Method not implemented!')
|
|
72
|
+
|
|
73
|
+
def List(self, request, context):
|
|
74
|
+
"""Retrieves a list of Apache Airflow Cluster resources.
|
|
75
|
+
"""
|
|
76
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
77
|
+
context.set_details('Method not implemented!')
|
|
78
|
+
raise NotImplementedError('Method not implemented!')
|
|
79
|
+
|
|
80
|
+
def Create(self, request, context):
|
|
81
|
+
"""Creates an Apache Airflow cluster.
|
|
82
|
+
"""
|
|
83
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
84
|
+
context.set_details('Method not implemented!')
|
|
85
|
+
raise NotImplementedError('Method not implemented!')
|
|
86
|
+
|
|
87
|
+
def Update(self, request, context):
|
|
88
|
+
"""Updates the specified Apache Airflow cluster.
|
|
89
|
+
"""
|
|
90
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
91
|
+
context.set_details('Method not implemented!')
|
|
92
|
+
raise NotImplementedError('Method not implemented!')
|
|
93
|
+
|
|
94
|
+
def Delete(self, request, context):
|
|
95
|
+
"""Deletes the specified Apache Airflow cluster.
|
|
96
|
+
"""
|
|
97
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
98
|
+
context.set_details('Method not implemented!')
|
|
99
|
+
raise NotImplementedError('Method not implemented!')
|
|
100
|
+
|
|
101
|
+
def Start(self, request, context):
|
|
102
|
+
"""Starts the specified Apache Airflow cluster.
|
|
103
|
+
"""
|
|
104
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
105
|
+
context.set_details('Method not implemented!')
|
|
106
|
+
raise NotImplementedError('Method not implemented!')
|
|
107
|
+
|
|
108
|
+
def Stop(self, request, context):
|
|
109
|
+
"""Stops the specified Apache Airflow cluster.
|
|
110
|
+
"""
|
|
111
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
112
|
+
context.set_details('Method not implemented!')
|
|
113
|
+
raise NotImplementedError('Method not implemented!')
|
|
114
|
+
|
|
115
|
+
def ListOperations(self, request, context):
|
|
116
|
+
"""Retrieves the list of Operation resources for the specified cluster.
|
|
117
|
+
"""
|
|
118
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
119
|
+
context.set_details('Method not implemented!')
|
|
120
|
+
raise NotImplementedError('Method not implemented!')
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def add_ClusterServiceServicer_to_server(servicer, server):
|
|
124
|
+
rpc_method_handlers = {
|
|
125
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
126
|
+
servicer.Get,
|
|
127
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.GetClusterRequest.FromString,
|
|
128
|
+
response_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__pb2.Cluster.SerializeToString,
|
|
129
|
+
),
|
|
130
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
131
|
+
servicer.List,
|
|
132
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClustersRequest.FromString,
|
|
133
|
+
response_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClustersResponse.SerializeToString,
|
|
134
|
+
),
|
|
135
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
136
|
+
servicer.Create,
|
|
137
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.FromString,
|
|
138
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
139
|
+
),
|
|
140
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
141
|
+
servicer.Update,
|
|
142
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.FromString,
|
|
143
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
144
|
+
),
|
|
145
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
146
|
+
servicer.Delete,
|
|
147
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.FromString,
|
|
148
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
149
|
+
),
|
|
150
|
+
'Start': grpc.unary_unary_rpc_method_handler(
|
|
151
|
+
servicer.Start,
|
|
152
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.StartClusterRequest.FromString,
|
|
153
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
154
|
+
),
|
|
155
|
+
'Stop': grpc.unary_unary_rpc_method_handler(
|
|
156
|
+
servicer.Stop,
|
|
157
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.StopClusterRequest.FromString,
|
|
158
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
159
|
+
),
|
|
160
|
+
'ListOperations': grpc.unary_unary_rpc_method_handler(
|
|
161
|
+
servicer.ListOperations,
|
|
162
|
+
request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.FromString,
|
|
163
|
+
response_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.SerializeToString,
|
|
164
|
+
),
|
|
165
|
+
}
|
|
166
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
167
|
+
'yandex.cloud.airflow.v1.ClusterService', rpc_method_handlers)
|
|
168
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
# This class is part of an EXPERIMENTAL API.
|
|
172
|
+
class ClusterService(object):
|
|
173
|
+
"""A set of methods for managing Apache Airflow Cluster resources.
|
|
174
|
+
"""
|
|
175
|
+
|
|
176
|
+
@staticmethod
|
|
177
|
+
def Get(request,
|
|
178
|
+
target,
|
|
179
|
+
options=(),
|
|
180
|
+
channel_credentials=None,
|
|
181
|
+
call_credentials=None,
|
|
182
|
+
insecure=False,
|
|
183
|
+
compression=None,
|
|
184
|
+
wait_for_ready=None,
|
|
185
|
+
timeout=None,
|
|
186
|
+
metadata=None):
|
|
187
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.airflow.v1.ClusterService/Get',
|
|
188
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.GetClusterRequest.SerializeToString,
|
|
189
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__pb2.Cluster.FromString,
|
|
190
|
+
options, channel_credentials,
|
|
191
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
192
|
+
|
|
193
|
+
@staticmethod
|
|
194
|
+
def List(request,
|
|
195
|
+
target,
|
|
196
|
+
options=(),
|
|
197
|
+
channel_credentials=None,
|
|
198
|
+
call_credentials=None,
|
|
199
|
+
insecure=False,
|
|
200
|
+
compression=None,
|
|
201
|
+
wait_for_ready=None,
|
|
202
|
+
timeout=None,
|
|
203
|
+
metadata=None):
|
|
204
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.airflow.v1.ClusterService/List',
|
|
205
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClustersRequest.SerializeToString,
|
|
206
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClustersResponse.FromString,
|
|
207
|
+
options, channel_credentials,
|
|
208
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
209
|
+
|
|
210
|
+
@staticmethod
|
|
211
|
+
def Create(request,
|
|
212
|
+
target,
|
|
213
|
+
options=(),
|
|
214
|
+
channel_credentials=None,
|
|
215
|
+
call_credentials=None,
|
|
216
|
+
insecure=False,
|
|
217
|
+
compression=None,
|
|
218
|
+
wait_for_ready=None,
|
|
219
|
+
timeout=None,
|
|
220
|
+
metadata=None):
|
|
221
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.airflow.v1.ClusterService/Create',
|
|
222
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.SerializeToString,
|
|
223
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
224
|
+
options, channel_credentials,
|
|
225
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
226
|
+
|
|
227
|
+
@staticmethod
|
|
228
|
+
def Update(request,
|
|
229
|
+
target,
|
|
230
|
+
options=(),
|
|
231
|
+
channel_credentials=None,
|
|
232
|
+
call_credentials=None,
|
|
233
|
+
insecure=False,
|
|
234
|
+
compression=None,
|
|
235
|
+
wait_for_ready=None,
|
|
236
|
+
timeout=None,
|
|
237
|
+
metadata=None):
|
|
238
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.airflow.v1.ClusterService/Update',
|
|
239
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.SerializeToString,
|
|
240
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
241
|
+
options, channel_credentials,
|
|
242
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
243
|
+
|
|
244
|
+
@staticmethod
|
|
245
|
+
def Delete(request,
|
|
246
|
+
target,
|
|
247
|
+
options=(),
|
|
248
|
+
channel_credentials=None,
|
|
249
|
+
call_credentials=None,
|
|
250
|
+
insecure=False,
|
|
251
|
+
compression=None,
|
|
252
|
+
wait_for_ready=None,
|
|
253
|
+
timeout=None,
|
|
254
|
+
metadata=None):
|
|
255
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.airflow.v1.ClusterService/Delete',
|
|
256
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString,
|
|
257
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
258
|
+
options, channel_credentials,
|
|
259
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
260
|
+
|
|
261
|
+
@staticmethod
|
|
262
|
+
def Start(request,
|
|
263
|
+
target,
|
|
264
|
+
options=(),
|
|
265
|
+
channel_credentials=None,
|
|
266
|
+
call_credentials=None,
|
|
267
|
+
insecure=False,
|
|
268
|
+
compression=None,
|
|
269
|
+
wait_for_ready=None,
|
|
270
|
+
timeout=None,
|
|
271
|
+
metadata=None):
|
|
272
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.airflow.v1.ClusterService/Start',
|
|
273
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.StartClusterRequest.SerializeToString,
|
|
274
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
275
|
+
options, channel_credentials,
|
|
276
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
277
|
+
|
|
278
|
+
@staticmethod
|
|
279
|
+
def Stop(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(request, target, '/yandex.cloud.airflow.v1.ClusterService/Stop',
|
|
290
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.StopClusterRequest.SerializeToString,
|
|
291
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
292
|
+
options, channel_credentials,
|
|
293
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
294
|
+
|
|
295
|
+
@staticmethod
|
|
296
|
+
def ListOperations(request,
|
|
297
|
+
target,
|
|
298
|
+
options=(),
|
|
299
|
+
channel_credentials=None,
|
|
300
|
+
call_credentials=None,
|
|
301
|
+
insecure=False,
|
|
302
|
+
compression=None,
|
|
303
|
+
wait_for_ready=None,
|
|
304
|
+
timeout=None,
|
|
305
|
+
metadata=None):
|
|
306
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.airflow.v1.ClusterService/ListOperations',
|
|
307
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.SerializeToString,
|
|
308
|
+
yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.FromString,
|
|
309
|
+
options, channel_credentials,
|
|
310
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -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.airflow.v1.cluster_pb2
|
|
12
|
+
import yandex.cloud.airflow.v1.cluster_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 ClusterServiceStub:
|
|
23
|
+
"""A set of methods for managing Apache Airflow Cluster resources."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.GetClusterRequest,
|
|
28
|
+
yandex.cloud.airflow.v1.cluster_pb2.Cluster,
|
|
29
|
+
]
|
|
30
|
+
"""Returns the specified Apache Airflow Cluster resource."""
|
|
31
|
+
|
|
32
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
33
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.ListClustersRequest,
|
|
34
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.ListClustersResponse,
|
|
35
|
+
]
|
|
36
|
+
"""Retrieves a list of Apache Airflow Cluster resources."""
|
|
37
|
+
|
|
38
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.CreateClusterRequest,
|
|
40
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
41
|
+
]
|
|
42
|
+
"""Creates an Apache Airflow cluster."""
|
|
43
|
+
|
|
44
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
46
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
47
|
+
]
|
|
48
|
+
"""Updates the specified Apache Airflow cluster."""
|
|
49
|
+
|
|
50
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
51
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
52
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
53
|
+
]
|
|
54
|
+
"""Deletes the specified Apache Airflow cluster."""
|
|
55
|
+
|
|
56
|
+
Start: grpc.UnaryUnaryMultiCallable[
|
|
57
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.StartClusterRequest,
|
|
58
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
59
|
+
]
|
|
60
|
+
"""Starts the specified Apache Airflow cluster."""
|
|
61
|
+
|
|
62
|
+
Stop: grpc.UnaryUnaryMultiCallable[
|
|
63
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.StopClusterRequest,
|
|
64
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
65
|
+
]
|
|
66
|
+
"""Stops the specified Apache Airflow cluster."""
|
|
67
|
+
|
|
68
|
+
ListOperations: grpc.UnaryUnaryMultiCallable[
|
|
69
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
70
|
+
yandex.cloud.airflow.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 Apache Airflow Cluster resources."""
|
|
76
|
+
|
|
77
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.GetClusterRequest,
|
|
79
|
+
yandex.cloud.airflow.v1.cluster_pb2.Cluster,
|
|
80
|
+
]
|
|
81
|
+
"""Returns the specified Apache Airflow Cluster resource."""
|
|
82
|
+
|
|
83
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.ListClustersRequest,
|
|
85
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.ListClustersResponse,
|
|
86
|
+
]
|
|
87
|
+
"""Retrieves a list of Apache Airflow Cluster resources."""
|
|
88
|
+
|
|
89
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
90
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.CreateClusterRequest,
|
|
91
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
92
|
+
]
|
|
93
|
+
"""Creates an Apache Airflow cluster."""
|
|
94
|
+
|
|
95
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
96
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
97
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
98
|
+
]
|
|
99
|
+
"""Updates the specified Apache Airflow cluster."""
|
|
100
|
+
|
|
101
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
102
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
103
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
104
|
+
]
|
|
105
|
+
"""Deletes the specified Apache Airflow cluster."""
|
|
106
|
+
|
|
107
|
+
Start: grpc.aio.UnaryUnaryMultiCallable[
|
|
108
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.StartClusterRequest,
|
|
109
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
110
|
+
]
|
|
111
|
+
"""Starts the specified Apache Airflow cluster."""
|
|
112
|
+
|
|
113
|
+
Stop: grpc.aio.UnaryUnaryMultiCallable[
|
|
114
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.StopClusterRequest,
|
|
115
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
116
|
+
]
|
|
117
|
+
"""Stops the specified Apache Airflow cluster."""
|
|
118
|
+
|
|
119
|
+
ListOperations: grpc.aio.UnaryUnaryMultiCallable[
|
|
120
|
+
yandex.cloud.airflow.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
121
|
+
yandex.cloud.airflow.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 Apache Airflow Cluster resources."""
|
|
127
|
+
|
|
128
|
+
@abc.abstractmethod
|
|
129
|
+
def Get(
|
|
130
|
+
self,
|
|
131
|
+
request: yandex.cloud.airflow.v1.cluster_service_pb2.GetClusterRequest,
|
|
132
|
+
context: _ServicerContext,
|
|
133
|
+
) -> typing.Union[yandex.cloud.airflow.v1.cluster_pb2.Cluster, collections.abc.Awaitable[yandex.cloud.airflow.v1.cluster_pb2.Cluster]]:
|
|
134
|
+
"""Returns the specified Apache Airflow Cluster resource."""
|
|
135
|
+
|
|
136
|
+
@abc.abstractmethod
|
|
137
|
+
def List(
|
|
138
|
+
self,
|
|
139
|
+
request: yandex.cloud.airflow.v1.cluster_service_pb2.ListClustersRequest,
|
|
140
|
+
context: _ServicerContext,
|
|
141
|
+
) -> typing.Union[yandex.cloud.airflow.v1.cluster_service_pb2.ListClustersResponse, collections.abc.Awaitable[yandex.cloud.airflow.v1.cluster_service_pb2.ListClustersResponse]]:
|
|
142
|
+
"""Retrieves a list of Apache Airflow Cluster resources."""
|
|
143
|
+
|
|
144
|
+
@abc.abstractmethod
|
|
145
|
+
def Create(
|
|
146
|
+
self,
|
|
147
|
+
request: yandex.cloud.airflow.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 an Apache Airflow cluster."""
|
|
151
|
+
|
|
152
|
+
@abc.abstractmethod
|
|
153
|
+
def Update(
|
|
154
|
+
self,
|
|
155
|
+
request: yandex.cloud.airflow.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 the specified Apache Airflow cluster."""
|
|
159
|
+
|
|
160
|
+
@abc.abstractmethod
|
|
161
|
+
def Delete(
|
|
162
|
+
self,
|
|
163
|
+
request: yandex.cloud.airflow.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 Apache Airflow cluster."""
|
|
167
|
+
|
|
168
|
+
@abc.abstractmethod
|
|
169
|
+
def Start(
|
|
170
|
+
self,
|
|
171
|
+
request: yandex.cloud.airflow.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
|
+
"""Starts the specified Apache Airflow cluster."""
|
|
175
|
+
|
|
176
|
+
@abc.abstractmethod
|
|
177
|
+
def Stop(
|
|
178
|
+
self,
|
|
179
|
+
request: yandex.cloud.airflow.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 Apache Airflow cluster."""
|
|
183
|
+
|
|
184
|
+
@abc.abstractmethod
|
|
185
|
+
def ListOperations(
|
|
186
|
+
self,
|
|
187
|
+
request: yandex.cloud.airflow.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
188
|
+
context: _ServicerContext,
|
|
189
|
+
) -> typing.Union[yandex.cloud.airflow.v1.cluster_service_pb2.ListClusterOperationsResponse, collections.abc.Awaitable[yandex.cloud.airflow.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,28 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/airflow/v1/common.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$yandex/cloud/airflow/v1/common.proto\x12\x17yandex.cloud.airflow.v1\"-\n\tResources\x12\x1a\n\x12resource_preset_id\x18\x03 \x01(\tJ\x04\x08\x01\x10\x03*?\n\x06Health\x12\x12\n\x0eHEALTH_UNKNOWN\x10\x00\x12\t\n\x05\x41LIVE\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0c\n\x08\x44\x45GRADED\x10\x03\x42\x62\n\x1byandex.cloud.api.airflow.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/airflow/v1;airflowb\x06proto3')
|
|
17
|
+
|
|
18
|
+
_globals = globals()
|
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.airflow.v1.common_pb2', _globals)
|
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'\n\033yandex.cloud.api.airflow.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/airflow/v1;airflow'
|
|
24
|
+
_globals['_HEALTH']._serialized_start=112
|
|
25
|
+
_globals['_HEALTH']._serialized_end=175
|
|
26
|
+
_globals['_RESOURCES']._serialized_start=65
|
|
27
|
+
_globals['_RESOURCES']._serialized_end=110
|
|
28
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,61 @@
|
|
|
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.internal.enum_type_wrapper
|
|
9
|
+
import google.protobuf.message
|
|
10
|
+
import sys
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
if sys.version_info >= (3, 10):
|
|
14
|
+
import typing as typing_extensions
|
|
15
|
+
else:
|
|
16
|
+
import typing_extensions
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
19
|
+
|
|
20
|
+
class _Health:
|
|
21
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
22
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
23
|
+
|
|
24
|
+
class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Health.ValueType], builtins.type):
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
26
|
+
HEALTH_UNKNOWN: _Health.ValueType # 0
|
|
27
|
+
"""Cluster is in unknown state (we have no data)."""
|
|
28
|
+
ALIVE: _Health.ValueType # 1
|
|
29
|
+
"""Cluster is alive and well."""
|
|
30
|
+
DEAD: _Health.ValueType # 2
|
|
31
|
+
"""Cluster is inoperable (it cannot perform any of its essential functions)."""
|
|
32
|
+
DEGRADED: _Health.ValueType # 3
|
|
33
|
+
"""Cluster is partially alive (it can perform some of its essential functions)."""
|
|
34
|
+
|
|
35
|
+
class Health(_Health, metaclass=_HealthEnumTypeWrapper): ...
|
|
36
|
+
|
|
37
|
+
HEALTH_UNKNOWN: Health.ValueType # 0
|
|
38
|
+
"""Cluster is in unknown state (we have no data)."""
|
|
39
|
+
ALIVE: Health.ValueType # 1
|
|
40
|
+
"""Cluster is alive and well."""
|
|
41
|
+
DEAD: Health.ValueType # 2
|
|
42
|
+
"""Cluster is inoperable (it cannot perform any of its essential functions)."""
|
|
43
|
+
DEGRADED: Health.ValueType # 3
|
|
44
|
+
"""Cluster is partially alive (it can perform some of its essential functions)."""
|
|
45
|
+
global___Health = Health
|
|
46
|
+
|
|
47
|
+
@typing.final
|
|
48
|
+
class Resources(google.protobuf.message.Message):
|
|
49
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
50
|
+
|
|
51
|
+
RESOURCE_PRESET_ID_FIELD_NUMBER: builtins.int
|
|
52
|
+
resource_preset_id: builtins.str
|
|
53
|
+
"""ID of the preset for computational resources available to an instance (CPU, memory etc.)."""
|
|
54
|
+
def __init__(
|
|
55
|
+
self,
|
|
56
|
+
*,
|
|
57
|
+
resource_preset_id: builtins.str = ...,
|
|
58
|
+
) -> None: ...
|
|
59
|
+
def ClearField(self, field_name: typing.Literal["resource_preset_id", b"resource_preset_id"]) -> None: ...
|
|
60
|
+
|
|
61
|
+
global___Resources = Resources
|
|
@@ -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
|
+
...
|