flamepy 0.3.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.
- flamepy/__init__.py +82 -0
- flamepy/client.py +433 -0
- flamepy/frontend_pb2.py +68 -0
- flamepy/frontend_pb2_grpc.py +709 -0
- flamepy/service.py +225 -0
- flamepy/shim_pb2.py +46 -0
- flamepy/shim_pb2_grpc.py +184 -0
- flamepy/test_flame.py +195 -0
- flamepy/types.py +159 -0
- flamepy/types_pb2.py +95 -0
- flamepy/types_pb2_grpc.py +24 -0
- flamepy-0.3.0.dist-info/METADATA +177 -0
- flamepy-0.3.0.dist-info/RECORD +16 -0
- flamepy-0.3.0.dist-info/WHEEL +5 -0
- flamepy-0.3.0.dist-info/licenses/LICENSE +201 -0
- flamepy-0.3.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,709 @@
|
|
|
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
|
+
import flamepy.frontend_pb2 as frontend__pb2
|
|
7
|
+
import flamepy.types_pb2 as types__pb2
|
|
8
|
+
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.74.0'
|
|
10
|
+
GRPC_VERSION = grpc.__version__
|
|
11
|
+
_version_not_supported = False
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
from grpc._utilities import first_version_is_lower
|
|
15
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
16
|
+
except ImportError:
|
|
17
|
+
_version_not_supported = True
|
|
18
|
+
|
|
19
|
+
if _version_not_supported:
|
|
20
|
+
raise RuntimeError(
|
|
21
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
+
+ f' but the generated code in frontend_pb2_grpc.py depends on'
|
|
23
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class FrontendStub(object):
|
|
30
|
+
"""
|
|
31
|
+
The frontend service of Flame, which is used to communicate with client sdk,
|
|
32
|
+
e.g. create connection/session/task and so on.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, channel):
|
|
36
|
+
"""Constructor.
|
|
37
|
+
|
|
38
|
+
Args:
|
|
39
|
+
channel: A grpc.Channel.
|
|
40
|
+
"""
|
|
41
|
+
self.RegisterApplication = channel.unary_unary(
|
|
42
|
+
'/flame.Frontend/RegisterApplication',
|
|
43
|
+
request_serializer=frontend__pb2.RegisterApplicationRequest.SerializeToString,
|
|
44
|
+
response_deserializer=types__pb2.Result.FromString,
|
|
45
|
+
_registered_method=True)
|
|
46
|
+
self.UnregisterApplication = channel.unary_unary(
|
|
47
|
+
'/flame.Frontend/UnregisterApplication',
|
|
48
|
+
request_serializer=frontend__pb2.UnregisterApplicationRequest.SerializeToString,
|
|
49
|
+
response_deserializer=types__pb2.Result.FromString,
|
|
50
|
+
_registered_method=True)
|
|
51
|
+
self.UpdateApplication = channel.unary_unary(
|
|
52
|
+
'/flame.Frontend/UpdateApplication',
|
|
53
|
+
request_serializer=frontend__pb2.UpdateApplicationRequest.SerializeToString,
|
|
54
|
+
response_deserializer=types__pb2.Result.FromString,
|
|
55
|
+
_registered_method=True)
|
|
56
|
+
self.GetApplication = channel.unary_unary(
|
|
57
|
+
'/flame.Frontend/GetApplication',
|
|
58
|
+
request_serializer=frontend__pb2.GetApplicationRequest.SerializeToString,
|
|
59
|
+
response_deserializer=types__pb2.Application.FromString,
|
|
60
|
+
_registered_method=True)
|
|
61
|
+
self.ListApplication = channel.unary_unary(
|
|
62
|
+
'/flame.Frontend/ListApplication',
|
|
63
|
+
request_serializer=frontend__pb2.ListApplicationRequest.SerializeToString,
|
|
64
|
+
response_deserializer=types__pb2.ApplicationList.FromString,
|
|
65
|
+
_registered_method=True)
|
|
66
|
+
self.CreateSession = channel.unary_unary(
|
|
67
|
+
'/flame.Frontend/CreateSession',
|
|
68
|
+
request_serializer=frontend__pb2.CreateSessionRequest.SerializeToString,
|
|
69
|
+
response_deserializer=types__pb2.Session.FromString,
|
|
70
|
+
_registered_method=True)
|
|
71
|
+
self.DeleteSession = channel.unary_unary(
|
|
72
|
+
'/flame.Frontend/DeleteSession',
|
|
73
|
+
request_serializer=frontend__pb2.DeleteSessionRequest.SerializeToString,
|
|
74
|
+
response_deserializer=types__pb2.Session.FromString,
|
|
75
|
+
_registered_method=True)
|
|
76
|
+
self.OpenSession = channel.unary_unary(
|
|
77
|
+
'/flame.Frontend/OpenSession',
|
|
78
|
+
request_serializer=frontend__pb2.OpenSessionRequest.SerializeToString,
|
|
79
|
+
response_deserializer=types__pb2.Session.FromString,
|
|
80
|
+
_registered_method=True)
|
|
81
|
+
self.CloseSession = channel.unary_unary(
|
|
82
|
+
'/flame.Frontend/CloseSession',
|
|
83
|
+
request_serializer=frontend__pb2.CloseSessionRequest.SerializeToString,
|
|
84
|
+
response_deserializer=types__pb2.Session.FromString,
|
|
85
|
+
_registered_method=True)
|
|
86
|
+
self.GetSession = channel.unary_unary(
|
|
87
|
+
'/flame.Frontend/GetSession',
|
|
88
|
+
request_serializer=frontend__pb2.GetSessionRequest.SerializeToString,
|
|
89
|
+
response_deserializer=types__pb2.Session.FromString,
|
|
90
|
+
_registered_method=True)
|
|
91
|
+
self.ListSession = channel.unary_unary(
|
|
92
|
+
'/flame.Frontend/ListSession',
|
|
93
|
+
request_serializer=frontend__pb2.ListSessionRequest.SerializeToString,
|
|
94
|
+
response_deserializer=types__pb2.SessionList.FromString,
|
|
95
|
+
_registered_method=True)
|
|
96
|
+
self.CreateTask = channel.unary_unary(
|
|
97
|
+
'/flame.Frontend/CreateTask',
|
|
98
|
+
request_serializer=frontend__pb2.CreateTaskRequest.SerializeToString,
|
|
99
|
+
response_deserializer=types__pb2.Task.FromString,
|
|
100
|
+
_registered_method=True)
|
|
101
|
+
self.DeleteTask = channel.unary_unary(
|
|
102
|
+
'/flame.Frontend/DeleteTask',
|
|
103
|
+
request_serializer=frontend__pb2.DeleteTaskRequest.SerializeToString,
|
|
104
|
+
response_deserializer=types__pb2.Task.FromString,
|
|
105
|
+
_registered_method=True)
|
|
106
|
+
self.GetTask = channel.unary_unary(
|
|
107
|
+
'/flame.Frontend/GetTask',
|
|
108
|
+
request_serializer=frontend__pb2.GetTaskRequest.SerializeToString,
|
|
109
|
+
response_deserializer=types__pb2.Task.FromString,
|
|
110
|
+
_registered_method=True)
|
|
111
|
+
self.WatchTask = channel.unary_stream(
|
|
112
|
+
'/flame.Frontend/WatchTask',
|
|
113
|
+
request_serializer=frontend__pb2.WatchTaskRequest.SerializeToString,
|
|
114
|
+
response_deserializer=types__pb2.Task.FromString,
|
|
115
|
+
_registered_method=True)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class FrontendServicer(object):
|
|
119
|
+
"""
|
|
120
|
+
The frontend service of Flame, which is used to communicate with client sdk,
|
|
121
|
+
e.g. create connection/session/task and so on.
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
def RegisterApplication(self, request, context):
|
|
125
|
+
"""Missing associated documentation comment in .proto file."""
|
|
126
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
127
|
+
context.set_details('Method not implemented!')
|
|
128
|
+
raise NotImplementedError('Method not implemented!')
|
|
129
|
+
|
|
130
|
+
def UnregisterApplication(self, request, context):
|
|
131
|
+
"""Missing associated documentation comment in .proto file."""
|
|
132
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
133
|
+
context.set_details('Method not implemented!')
|
|
134
|
+
raise NotImplementedError('Method not implemented!')
|
|
135
|
+
|
|
136
|
+
def UpdateApplication(self, request, context):
|
|
137
|
+
"""Missing associated documentation comment in .proto file."""
|
|
138
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
139
|
+
context.set_details('Method not implemented!')
|
|
140
|
+
raise NotImplementedError('Method not implemented!')
|
|
141
|
+
|
|
142
|
+
def GetApplication(self, request, context):
|
|
143
|
+
"""Missing associated documentation comment in .proto file."""
|
|
144
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
145
|
+
context.set_details('Method not implemented!')
|
|
146
|
+
raise NotImplementedError('Method not implemented!')
|
|
147
|
+
|
|
148
|
+
def ListApplication(self, request, context):
|
|
149
|
+
"""Missing associated documentation comment in .proto file."""
|
|
150
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
151
|
+
context.set_details('Method not implemented!')
|
|
152
|
+
raise NotImplementedError('Method not implemented!')
|
|
153
|
+
|
|
154
|
+
def CreateSession(self, request, context):
|
|
155
|
+
"""Missing associated documentation comment in .proto file."""
|
|
156
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
157
|
+
context.set_details('Method not implemented!')
|
|
158
|
+
raise NotImplementedError('Method not implemented!')
|
|
159
|
+
|
|
160
|
+
def DeleteSession(self, request, context):
|
|
161
|
+
"""Missing associated documentation comment in .proto file."""
|
|
162
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
163
|
+
context.set_details('Method not implemented!')
|
|
164
|
+
raise NotImplementedError('Method not implemented!')
|
|
165
|
+
|
|
166
|
+
def OpenSession(self, request, context):
|
|
167
|
+
"""Missing associated documentation comment in .proto file."""
|
|
168
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
169
|
+
context.set_details('Method not implemented!')
|
|
170
|
+
raise NotImplementedError('Method not implemented!')
|
|
171
|
+
|
|
172
|
+
def CloseSession(self, request, context):
|
|
173
|
+
"""Missing associated documentation comment in .proto file."""
|
|
174
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
175
|
+
context.set_details('Method not implemented!')
|
|
176
|
+
raise NotImplementedError('Method not implemented!')
|
|
177
|
+
|
|
178
|
+
def GetSession(self, request, context):
|
|
179
|
+
"""Missing associated documentation comment in .proto file."""
|
|
180
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
181
|
+
context.set_details('Method not implemented!')
|
|
182
|
+
raise NotImplementedError('Method not implemented!')
|
|
183
|
+
|
|
184
|
+
def ListSession(self, request, context):
|
|
185
|
+
"""Missing associated documentation comment in .proto file."""
|
|
186
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
187
|
+
context.set_details('Method not implemented!')
|
|
188
|
+
raise NotImplementedError('Method not implemented!')
|
|
189
|
+
|
|
190
|
+
def CreateTask(self, request, context):
|
|
191
|
+
"""Missing associated documentation comment in .proto file."""
|
|
192
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
193
|
+
context.set_details('Method not implemented!')
|
|
194
|
+
raise NotImplementedError('Method not implemented!')
|
|
195
|
+
|
|
196
|
+
def DeleteTask(self, request, context):
|
|
197
|
+
"""Missing associated documentation comment in .proto file."""
|
|
198
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
199
|
+
context.set_details('Method not implemented!')
|
|
200
|
+
raise NotImplementedError('Method not implemented!')
|
|
201
|
+
|
|
202
|
+
def GetTask(self, request, context):
|
|
203
|
+
"""Missing associated documentation comment in .proto file."""
|
|
204
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
205
|
+
context.set_details('Method not implemented!')
|
|
206
|
+
raise NotImplementedError('Method not implemented!')
|
|
207
|
+
|
|
208
|
+
def WatchTask(self, request, context):
|
|
209
|
+
"""Missing associated documentation comment in .proto file."""
|
|
210
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
211
|
+
context.set_details('Method not implemented!')
|
|
212
|
+
raise NotImplementedError('Method not implemented!')
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
def add_FrontendServicer_to_server(servicer, server):
|
|
216
|
+
rpc_method_handlers = {
|
|
217
|
+
'RegisterApplication': grpc.unary_unary_rpc_method_handler(
|
|
218
|
+
servicer.RegisterApplication,
|
|
219
|
+
request_deserializer=frontend__pb2.RegisterApplicationRequest.FromString,
|
|
220
|
+
response_serializer=types__pb2.Result.SerializeToString,
|
|
221
|
+
),
|
|
222
|
+
'UnregisterApplication': grpc.unary_unary_rpc_method_handler(
|
|
223
|
+
servicer.UnregisterApplication,
|
|
224
|
+
request_deserializer=frontend__pb2.UnregisterApplicationRequest.FromString,
|
|
225
|
+
response_serializer=types__pb2.Result.SerializeToString,
|
|
226
|
+
),
|
|
227
|
+
'UpdateApplication': grpc.unary_unary_rpc_method_handler(
|
|
228
|
+
servicer.UpdateApplication,
|
|
229
|
+
request_deserializer=frontend__pb2.UpdateApplicationRequest.FromString,
|
|
230
|
+
response_serializer=types__pb2.Result.SerializeToString,
|
|
231
|
+
),
|
|
232
|
+
'GetApplication': grpc.unary_unary_rpc_method_handler(
|
|
233
|
+
servicer.GetApplication,
|
|
234
|
+
request_deserializer=frontend__pb2.GetApplicationRequest.FromString,
|
|
235
|
+
response_serializer=types__pb2.Application.SerializeToString,
|
|
236
|
+
),
|
|
237
|
+
'ListApplication': grpc.unary_unary_rpc_method_handler(
|
|
238
|
+
servicer.ListApplication,
|
|
239
|
+
request_deserializer=frontend__pb2.ListApplicationRequest.FromString,
|
|
240
|
+
response_serializer=types__pb2.ApplicationList.SerializeToString,
|
|
241
|
+
),
|
|
242
|
+
'CreateSession': grpc.unary_unary_rpc_method_handler(
|
|
243
|
+
servicer.CreateSession,
|
|
244
|
+
request_deserializer=frontend__pb2.CreateSessionRequest.FromString,
|
|
245
|
+
response_serializer=types__pb2.Session.SerializeToString,
|
|
246
|
+
),
|
|
247
|
+
'DeleteSession': grpc.unary_unary_rpc_method_handler(
|
|
248
|
+
servicer.DeleteSession,
|
|
249
|
+
request_deserializer=frontend__pb2.DeleteSessionRequest.FromString,
|
|
250
|
+
response_serializer=types__pb2.Session.SerializeToString,
|
|
251
|
+
),
|
|
252
|
+
'OpenSession': grpc.unary_unary_rpc_method_handler(
|
|
253
|
+
servicer.OpenSession,
|
|
254
|
+
request_deserializer=frontend__pb2.OpenSessionRequest.FromString,
|
|
255
|
+
response_serializer=types__pb2.Session.SerializeToString,
|
|
256
|
+
),
|
|
257
|
+
'CloseSession': grpc.unary_unary_rpc_method_handler(
|
|
258
|
+
servicer.CloseSession,
|
|
259
|
+
request_deserializer=frontend__pb2.CloseSessionRequest.FromString,
|
|
260
|
+
response_serializer=types__pb2.Session.SerializeToString,
|
|
261
|
+
),
|
|
262
|
+
'GetSession': grpc.unary_unary_rpc_method_handler(
|
|
263
|
+
servicer.GetSession,
|
|
264
|
+
request_deserializer=frontend__pb2.GetSessionRequest.FromString,
|
|
265
|
+
response_serializer=types__pb2.Session.SerializeToString,
|
|
266
|
+
),
|
|
267
|
+
'ListSession': grpc.unary_unary_rpc_method_handler(
|
|
268
|
+
servicer.ListSession,
|
|
269
|
+
request_deserializer=frontend__pb2.ListSessionRequest.FromString,
|
|
270
|
+
response_serializer=types__pb2.SessionList.SerializeToString,
|
|
271
|
+
),
|
|
272
|
+
'CreateTask': grpc.unary_unary_rpc_method_handler(
|
|
273
|
+
servicer.CreateTask,
|
|
274
|
+
request_deserializer=frontend__pb2.CreateTaskRequest.FromString,
|
|
275
|
+
response_serializer=types__pb2.Task.SerializeToString,
|
|
276
|
+
),
|
|
277
|
+
'DeleteTask': grpc.unary_unary_rpc_method_handler(
|
|
278
|
+
servicer.DeleteTask,
|
|
279
|
+
request_deserializer=frontend__pb2.DeleteTaskRequest.FromString,
|
|
280
|
+
response_serializer=types__pb2.Task.SerializeToString,
|
|
281
|
+
),
|
|
282
|
+
'GetTask': grpc.unary_unary_rpc_method_handler(
|
|
283
|
+
servicer.GetTask,
|
|
284
|
+
request_deserializer=frontend__pb2.GetTaskRequest.FromString,
|
|
285
|
+
response_serializer=types__pb2.Task.SerializeToString,
|
|
286
|
+
),
|
|
287
|
+
'WatchTask': grpc.unary_stream_rpc_method_handler(
|
|
288
|
+
servicer.WatchTask,
|
|
289
|
+
request_deserializer=frontend__pb2.WatchTaskRequest.FromString,
|
|
290
|
+
response_serializer=types__pb2.Task.SerializeToString,
|
|
291
|
+
),
|
|
292
|
+
}
|
|
293
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
294
|
+
'flame.Frontend', rpc_method_handlers)
|
|
295
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
296
|
+
server.add_registered_method_handlers('flame.Frontend', rpc_method_handlers)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
# This class is part of an EXPERIMENTAL API.
|
|
300
|
+
class Frontend(object):
|
|
301
|
+
"""
|
|
302
|
+
The frontend service of Flame, which is used to communicate with client sdk,
|
|
303
|
+
e.g. create connection/session/task and so on.
|
|
304
|
+
"""
|
|
305
|
+
|
|
306
|
+
@staticmethod
|
|
307
|
+
def RegisterApplication(request,
|
|
308
|
+
target,
|
|
309
|
+
options=(),
|
|
310
|
+
channel_credentials=None,
|
|
311
|
+
call_credentials=None,
|
|
312
|
+
insecure=False,
|
|
313
|
+
compression=None,
|
|
314
|
+
wait_for_ready=None,
|
|
315
|
+
timeout=None,
|
|
316
|
+
metadata=None):
|
|
317
|
+
return grpc.experimental.unary_unary(
|
|
318
|
+
request,
|
|
319
|
+
target,
|
|
320
|
+
'/flame.Frontend/RegisterApplication',
|
|
321
|
+
frontend__pb2.RegisterApplicationRequest.SerializeToString,
|
|
322
|
+
types__pb2.Result.FromString,
|
|
323
|
+
options,
|
|
324
|
+
channel_credentials,
|
|
325
|
+
insecure,
|
|
326
|
+
call_credentials,
|
|
327
|
+
compression,
|
|
328
|
+
wait_for_ready,
|
|
329
|
+
timeout,
|
|
330
|
+
metadata,
|
|
331
|
+
_registered_method=True)
|
|
332
|
+
|
|
333
|
+
@staticmethod
|
|
334
|
+
def UnregisterApplication(request,
|
|
335
|
+
target,
|
|
336
|
+
options=(),
|
|
337
|
+
channel_credentials=None,
|
|
338
|
+
call_credentials=None,
|
|
339
|
+
insecure=False,
|
|
340
|
+
compression=None,
|
|
341
|
+
wait_for_ready=None,
|
|
342
|
+
timeout=None,
|
|
343
|
+
metadata=None):
|
|
344
|
+
return grpc.experimental.unary_unary(
|
|
345
|
+
request,
|
|
346
|
+
target,
|
|
347
|
+
'/flame.Frontend/UnregisterApplication',
|
|
348
|
+
frontend__pb2.UnregisterApplicationRequest.SerializeToString,
|
|
349
|
+
types__pb2.Result.FromString,
|
|
350
|
+
options,
|
|
351
|
+
channel_credentials,
|
|
352
|
+
insecure,
|
|
353
|
+
call_credentials,
|
|
354
|
+
compression,
|
|
355
|
+
wait_for_ready,
|
|
356
|
+
timeout,
|
|
357
|
+
metadata,
|
|
358
|
+
_registered_method=True)
|
|
359
|
+
|
|
360
|
+
@staticmethod
|
|
361
|
+
def UpdateApplication(request,
|
|
362
|
+
target,
|
|
363
|
+
options=(),
|
|
364
|
+
channel_credentials=None,
|
|
365
|
+
call_credentials=None,
|
|
366
|
+
insecure=False,
|
|
367
|
+
compression=None,
|
|
368
|
+
wait_for_ready=None,
|
|
369
|
+
timeout=None,
|
|
370
|
+
metadata=None):
|
|
371
|
+
return grpc.experimental.unary_unary(
|
|
372
|
+
request,
|
|
373
|
+
target,
|
|
374
|
+
'/flame.Frontend/UpdateApplication',
|
|
375
|
+
frontend__pb2.UpdateApplicationRequest.SerializeToString,
|
|
376
|
+
types__pb2.Result.FromString,
|
|
377
|
+
options,
|
|
378
|
+
channel_credentials,
|
|
379
|
+
insecure,
|
|
380
|
+
call_credentials,
|
|
381
|
+
compression,
|
|
382
|
+
wait_for_ready,
|
|
383
|
+
timeout,
|
|
384
|
+
metadata,
|
|
385
|
+
_registered_method=True)
|
|
386
|
+
|
|
387
|
+
@staticmethod
|
|
388
|
+
def GetApplication(request,
|
|
389
|
+
target,
|
|
390
|
+
options=(),
|
|
391
|
+
channel_credentials=None,
|
|
392
|
+
call_credentials=None,
|
|
393
|
+
insecure=False,
|
|
394
|
+
compression=None,
|
|
395
|
+
wait_for_ready=None,
|
|
396
|
+
timeout=None,
|
|
397
|
+
metadata=None):
|
|
398
|
+
return grpc.experimental.unary_unary(
|
|
399
|
+
request,
|
|
400
|
+
target,
|
|
401
|
+
'/flame.Frontend/GetApplication',
|
|
402
|
+
frontend__pb2.GetApplicationRequest.SerializeToString,
|
|
403
|
+
types__pb2.Application.FromString,
|
|
404
|
+
options,
|
|
405
|
+
channel_credentials,
|
|
406
|
+
insecure,
|
|
407
|
+
call_credentials,
|
|
408
|
+
compression,
|
|
409
|
+
wait_for_ready,
|
|
410
|
+
timeout,
|
|
411
|
+
metadata,
|
|
412
|
+
_registered_method=True)
|
|
413
|
+
|
|
414
|
+
@staticmethod
|
|
415
|
+
def ListApplication(request,
|
|
416
|
+
target,
|
|
417
|
+
options=(),
|
|
418
|
+
channel_credentials=None,
|
|
419
|
+
call_credentials=None,
|
|
420
|
+
insecure=False,
|
|
421
|
+
compression=None,
|
|
422
|
+
wait_for_ready=None,
|
|
423
|
+
timeout=None,
|
|
424
|
+
metadata=None):
|
|
425
|
+
return grpc.experimental.unary_unary(
|
|
426
|
+
request,
|
|
427
|
+
target,
|
|
428
|
+
'/flame.Frontend/ListApplication',
|
|
429
|
+
frontend__pb2.ListApplicationRequest.SerializeToString,
|
|
430
|
+
types__pb2.ApplicationList.FromString,
|
|
431
|
+
options,
|
|
432
|
+
channel_credentials,
|
|
433
|
+
insecure,
|
|
434
|
+
call_credentials,
|
|
435
|
+
compression,
|
|
436
|
+
wait_for_ready,
|
|
437
|
+
timeout,
|
|
438
|
+
metadata,
|
|
439
|
+
_registered_method=True)
|
|
440
|
+
|
|
441
|
+
@staticmethod
|
|
442
|
+
def CreateSession(request,
|
|
443
|
+
target,
|
|
444
|
+
options=(),
|
|
445
|
+
channel_credentials=None,
|
|
446
|
+
call_credentials=None,
|
|
447
|
+
insecure=False,
|
|
448
|
+
compression=None,
|
|
449
|
+
wait_for_ready=None,
|
|
450
|
+
timeout=None,
|
|
451
|
+
metadata=None):
|
|
452
|
+
return grpc.experimental.unary_unary(
|
|
453
|
+
request,
|
|
454
|
+
target,
|
|
455
|
+
'/flame.Frontend/CreateSession',
|
|
456
|
+
frontend__pb2.CreateSessionRequest.SerializeToString,
|
|
457
|
+
types__pb2.Session.FromString,
|
|
458
|
+
options,
|
|
459
|
+
channel_credentials,
|
|
460
|
+
insecure,
|
|
461
|
+
call_credentials,
|
|
462
|
+
compression,
|
|
463
|
+
wait_for_ready,
|
|
464
|
+
timeout,
|
|
465
|
+
metadata,
|
|
466
|
+
_registered_method=True)
|
|
467
|
+
|
|
468
|
+
@staticmethod
|
|
469
|
+
def DeleteSession(request,
|
|
470
|
+
target,
|
|
471
|
+
options=(),
|
|
472
|
+
channel_credentials=None,
|
|
473
|
+
call_credentials=None,
|
|
474
|
+
insecure=False,
|
|
475
|
+
compression=None,
|
|
476
|
+
wait_for_ready=None,
|
|
477
|
+
timeout=None,
|
|
478
|
+
metadata=None):
|
|
479
|
+
return grpc.experimental.unary_unary(
|
|
480
|
+
request,
|
|
481
|
+
target,
|
|
482
|
+
'/flame.Frontend/DeleteSession',
|
|
483
|
+
frontend__pb2.DeleteSessionRequest.SerializeToString,
|
|
484
|
+
types__pb2.Session.FromString,
|
|
485
|
+
options,
|
|
486
|
+
channel_credentials,
|
|
487
|
+
insecure,
|
|
488
|
+
call_credentials,
|
|
489
|
+
compression,
|
|
490
|
+
wait_for_ready,
|
|
491
|
+
timeout,
|
|
492
|
+
metadata,
|
|
493
|
+
_registered_method=True)
|
|
494
|
+
|
|
495
|
+
@staticmethod
|
|
496
|
+
def OpenSession(request,
|
|
497
|
+
target,
|
|
498
|
+
options=(),
|
|
499
|
+
channel_credentials=None,
|
|
500
|
+
call_credentials=None,
|
|
501
|
+
insecure=False,
|
|
502
|
+
compression=None,
|
|
503
|
+
wait_for_ready=None,
|
|
504
|
+
timeout=None,
|
|
505
|
+
metadata=None):
|
|
506
|
+
return grpc.experimental.unary_unary(
|
|
507
|
+
request,
|
|
508
|
+
target,
|
|
509
|
+
'/flame.Frontend/OpenSession',
|
|
510
|
+
frontend__pb2.OpenSessionRequest.SerializeToString,
|
|
511
|
+
types__pb2.Session.FromString,
|
|
512
|
+
options,
|
|
513
|
+
channel_credentials,
|
|
514
|
+
insecure,
|
|
515
|
+
call_credentials,
|
|
516
|
+
compression,
|
|
517
|
+
wait_for_ready,
|
|
518
|
+
timeout,
|
|
519
|
+
metadata,
|
|
520
|
+
_registered_method=True)
|
|
521
|
+
|
|
522
|
+
@staticmethod
|
|
523
|
+
def CloseSession(request,
|
|
524
|
+
target,
|
|
525
|
+
options=(),
|
|
526
|
+
channel_credentials=None,
|
|
527
|
+
call_credentials=None,
|
|
528
|
+
insecure=False,
|
|
529
|
+
compression=None,
|
|
530
|
+
wait_for_ready=None,
|
|
531
|
+
timeout=None,
|
|
532
|
+
metadata=None):
|
|
533
|
+
return grpc.experimental.unary_unary(
|
|
534
|
+
request,
|
|
535
|
+
target,
|
|
536
|
+
'/flame.Frontend/CloseSession',
|
|
537
|
+
frontend__pb2.CloseSessionRequest.SerializeToString,
|
|
538
|
+
types__pb2.Session.FromString,
|
|
539
|
+
options,
|
|
540
|
+
channel_credentials,
|
|
541
|
+
insecure,
|
|
542
|
+
call_credentials,
|
|
543
|
+
compression,
|
|
544
|
+
wait_for_ready,
|
|
545
|
+
timeout,
|
|
546
|
+
metadata,
|
|
547
|
+
_registered_method=True)
|
|
548
|
+
|
|
549
|
+
@staticmethod
|
|
550
|
+
def GetSession(request,
|
|
551
|
+
target,
|
|
552
|
+
options=(),
|
|
553
|
+
channel_credentials=None,
|
|
554
|
+
call_credentials=None,
|
|
555
|
+
insecure=False,
|
|
556
|
+
compression=None,
|
|
557
|
+
wait_for_ready=None,
|
|
558
|
+
timeout=None,
|
|
559
|
+
metadata=None):
|
|
560
|
+
return grpc.experimental.unary_unary(
|
|
561
|
+
request,
|
|
562
|
+
target,
|
|
563
|
+
'/flame.Frontend/GetSession',
|
|
564
|
+
frontend__pb2.GetSessionRequest.SerializeToString,
|
|
565
|
+
types__pb2.Session.FromString,
|
|
566
|
+
options,
|
|
567
|
+
channel_credentials,
|
|
568
|
+
insecure,
|
|
569
|
+
call_credentials,
|
|
570
|
+
compression,
|
|
571
|
+
wait_for_ready,
|
|
572
|
+
timeout,
|
|
573
|
+
metadata,
|
|
574
|
+
_registered_method=True)
|
|
575
|
+
|
|
576
|
+
@staticmethod
|
|
577
|
+
def ListSession(request,
|
|
578
|
+
target,
|
|
579
|
+
options=(),
|
|
580
|
+
channel_credentials=None,
|
|
581
|
+
call_credentials=None,
|
|
582
|
+
insecure=False,
|
|
583
|
+
compression=None,
|
|
584
|
+
wait_for_ready=None,
|
|
585
|
+
timeout=None,
|
|
586
|
+
metadata=None):
|
|
587
|
+
return grpc.experimental.unary_unary(
|
|
588
|
+
request,
|
|
589
|
+
target,
|
|
590
|
+
'/flame.Frontend/ListSession',
|
|
591
|
+
frontend__pb2.ListSessionRequest.SerializeToString,
|
|
592
|
+
types__pb2.SessionList.FromString,
|
|
593
|
+
options,
|
|
594
|
+
channel_credentials,
|
|
595
|
+
insecure,
|
|
596
|
+
call_credentials,
|
|
597
|
+
compression,
|
|
598
|
+
wait_for_ready,
|
|
599
|
+
timeout,
|
|
600
|
+
metadata,
|
|
601
|
+
_registered_method=True)
|
|
602
|
+
|
|
603
|
+
@staticmethod
|
|
604
|
+
def CreateTask(request,
|
|
605
|
+
target,
|
|
606
|
+
options=(),
|
|
607
|
+
channel_credentials=None,
|
|
608
|
+
call_credentials=None,
|
|
609
|
+
insecure=False,
|
|
610
|
+
compression=None,
|
|
611
|
+
wait_for_ready=None,
|
|
612
|
+
timeout=None,
|
|
613
|
+
metadata=None):
|
|
614
|
+
return grpc.experimental.unary_unary(
|
|
615
|
+
request,
|
|
616
|
+
target,
|
|
617
|
+
'/flame.Frontend/CreateTask',
|
|
618
|
+
frontend__pb2.CreateTaskRequest.SerializeToString,
|
|
619
|
+
types__pb2.Task.FromString,
|
|
620
|
+
options,
|
|
621
|
+
channel_credentials,
|
|
622
|
+
insecure,
|
|
623
|
+
call_credentials,
|
|
624
|
+
compression,
|
|
625
|
+
wait_for_ready,
|
|
626
|
+
timeout,
|
|
627
|
+
metadata,
|
|
628
|
+
_registered_method=True)
|
|
629
|
+
|
|
630
|
+
@staticmethod
|
|
631
|
+
def DeleteTask(request,
|
|
632
|
+
target,
|
|
633
|
+
options=(),
|
|
634
|
+
channel_credentials=None,
|
|
635
|
+
call_credentials=None,
|
|
636
|
+
insecure=False,
|
|
637
|
+
compression=None,
|
|
638
|
+
wait_for_ready=None,
|
|
639
|
+
timeout=None,
|
|
640
|
+
metadata=None):
|
|
641
|
+
return grpc.experimental.unary_unary(
|
|
642
|
+
request,
|
|
643
|
+
target,
|
|
644
|
+
'/flame.Frontend/DeleteTask',
|
|
645
|
+
frontend__pb2.DeleteTaskRequest.SerializeToString,
|
|
646
|
+
types__pb2.Task.FromString,
|
|
647
|
+
options,
|
|
648
|
+
channel_credentials,
|
|
649
|
+
insecure,
|
|
650
|
+
call_credentials,
|
|
651
|
+
compression,
|
|
652
|
+
wait_for_ready,
|
|
653
|
+
timeout,
|
|
654
|
+
metadata,
|
|
655
|
+
_registered_method=True)
|
|
656
|
+
|
|
657
|
+
@staticmethod
|
|
658
|
+
def GetTask(request,
|
|
659
|
+
target,
|
|
660
|
+
options=(),
|
|
661
|
+
channel_credentials=None,
|
|
662
|
+
call_credentials=None,
|
|
663
|
+
insecure=False,
|
|
664
|
+
compression=None,
|
|
665
|
+
wait_for_ready=None,
|
|
666
|
+
timeout=None,
|
|
667
|
+
metadata=None):
|
|
668
|
+
return grpc.experimental.unary_unary(
|
|
669
|
+
request,
|
|
670
|
+
target,
|
|
671
|
+
'/flame.Frontend/GetTask',
|
|
672
|
+
frontend__pb2.GetTaskRequest.SerializeToString,
|
|
673
|
+
types__pb2.Task.FromString,
|
|
674
|
+
options,
|
|
675
|
+
channel_credentials,
|
|
676
|
+
insecure,
|
|
677
|
+
call_credentials,
|
|
678
|
+
compression,
|
|
679
|
+
wait_for_ready,
|
|
680
|
+
timeout,
|
|
681
|
+
metadata,
|
|
682
|
+
_registered_method=True)
|
|
683
|
+
|
|
684
|
+
@staticmethod
|
|
685
|
+
def WatchTask(request,
|
|
686
|
+
target,
|
|
687
|
+
options=(),
|
|
688
|
+
channel_credentials=None,
|
|
689
|
+
call_credentials=None,
|
|
690
|
+
insecure=False,
|
|
691
|
+
compression=None,
|
|
692
|
+
wait_for_ready=None,
|
|
693
|
+
timeout=None,
|
|
694
|
+
metadata=None):
|
|
695
|
+
return grpc.experimental.unary_stream(
|
|
696
|
+
request,
|
|
697
|
+
target,
|
|
698
|
+
'/flame.Frontend/WatchTask',
|
|
699
|
+
frontend__pb2.WatchTaskRequest.SerializeToString,
|
|
700
|
+
types__pb2.Task.FromString,
|
|
701
|
+
options,
|
|
702
|
+
channel_credentials,
|
|
703
|
+
insecure,
|
|
704
|
+
call_credentials,
|
|
705
|
+
compression,
|
|
706
|
+
wait_for_ready,
|
|
707
|
+
timeout,
|
|
708
|
+
metadata,
|
|
709
|
+
_registered_method=True)
|