gimlet-api 0.0.1__1-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.
- gimlet_api-0.0.1.dist-info/METADATA +16 -0
- gimlet_api-0.0.1.dist-info/RECORD +41 -0
- gimlet_api-0.0.1.dist-info/WHEEL +4 -0
- gml/__init__.py +17 -0
- gml/_utils.py +41 -0
- gml/client.py +297 -0
- gml/compile.py +61 -0
- gml/model.py +149 -0
- gml/preprocessing.py +77 -0
- gml/proto/gogoproto/gogo_pb2.py +101 -0
- gml/proto/mediapipe/framework/calculator_contract_test_pb2.py +32 -0
- gml/proto/mediapipe/framework/calculator_options_pb2.py +28 -0
- gml/proto/mediapipe/framework/calculator_pb2.py +56 -0
- gml/proto/mediapipe/framework/calculator_profile_pb2.py +47 -0
- gml/proto/mediapipe/framework/mediapipe_options_pb2.py +26 -0
- gml/proto/mediapipe/framework/packet_factory_pb2.py +30 -0
- gml/proto/mediapipe/framework/packet_generator_pb2.py +32 -0
- gml/proto/mediapipe/framework/packet_test_pb2.py +32 -0
- gml/proto/mediapipe/framework/status_handler_pb2.py +27 -0
- gml/proto/mediapipe/framework/stream_handler_pb2.py +29 -0
- gml/proto/mediapipe/framework/test_calculators_pb2.py +32 -0
- gml/proto/mediapipe/framework/thread_pool_executor_pb2.py +30 -0
- gml/proto/opentelemetry/proto/common/v1/common_pb2.py +34 -0
- gml/proto/opentelemetry/proto/metrics/v1/metrics_pb2.py +62 -0
- gml/proto/opentelemetry/proto/resource/v1/resource_pb2.py +27 -0
- gml/proto/src/api/corepb/v1/controlplane_pb2.py +56 -0
- gml/proto/src/api/corepb/v1/cp_edge_pb2.py +117 -0
- gml/proto/src/api/corepb/v1/mediastream_pb2.py +64 -0
- gml/proto/src/api/corepb/v1/model_exec_pb2.py +174 -0
- gml/proto/src/common/typespb/jwt_pb2.py +61 -0
- gml/proto/src/common/typespb/status_pb2.py +29 -0
- gml/proto/src/common/typespb/uuid_pb2.py +26 -0
- gml/proto/src/controlplane/directory/directorypb/v1/directory_pb2.py +115 -0
- gml/proto/src/controlplane/directory/directorypb/v1/directory_pb2_grpc.py +452 -0
- gml/proto/src/controlplane/filetransfer/ftpb/v1/ftpb_pb2.py +70 -0
- gml/proto/src/controlplane/filetransfer/ftpb/v1/ftpb_pb2_grpc.py +231 -0
- gml/proto/src/controlplane/logicalpipeline/lppb/v1/lppb_pb2.py +59 -0
- gml/proto/src/controlplane/logicalpipeline/lppb/v1/lppb_pb2_grpc.py +132 -0
- gml/proto/src/controlplane/model/mpb/v1/mpb_pb2.py +47 -0
- gml/proto/src/controlplane/model/mpb/v1/mpb_pb2_grpc.py +99 -0
- gml/tensor.py +193 -0
@@ -0,0 +1,231 @@
|
|
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 gml.proto.src.controlplane.filetransfer.ftpb.v1 import ftpb_pb2 as src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2
|
6
|
+
|
7
|
+
|
8
|
+
class FileTransferServiceStub(object):
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
10
|
+
|
11
|
+
def __init__(self, channel):
|
12
|
+
"""Constructor.
|
13
|
+
|
14
|
+
Args:
|
15
|
+
channel: A grpc.Channel.
|
16
|
+
"""
|
17
|
+
self.CreateFileInfo = channel.unary_unary(
|
18
|
+
'/gml.internal.controlplane.filetransfer.v1.FileTransferService/CreateFileInfo',
|
19
|
+
request_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.CreateFileInfoRequest.SerializeToString,
|
20
|
+
response_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.CreateFileInfoResponse.FromString,
|
21
|
+
)
|
22
|
+
self.GetFileInfo = channel.unary_unary(
|
23
|
+
'/gml.internal.controlplane.filetransfer.v1.FileTransferService/GetFileInfo',
|
24
|
+
request_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoRequest.SerializeToString,
|
25
|
+
response_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoResponse.FromString,
|
26
|
+
)
|
27
|
+
self.GetFileInfoByName = channel.unary_unary(
|
28
|
+
'/gml.internal.controlplane.filetransfer.v1.FileTransferService/GetFileInfoByName',
|
29
|
+
request_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoByNameRequest.SerializeToString,
|
30
|
+
response_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoByNameResponse.FromString,
|
31
|
+
)
|
32
|
+
self.UploadFile = channel.stream_unary(
|
33
|
+
'/gml.internal.controlplane.filetransfer.v1.FileTransferService/UploadFile',
|
34
|
+
request_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.UploadFileRequest.SerializeToString,
|
35
|
+
response_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.UploadFileResponse.FromString,
|
36
|
+
)
|
37
|
+
self.DownloadFile = channel.unary_stream(
|
38
|
+
'/gml.internal.controlplane.filetransfer.v1.FileTransferService/DownloadFile',
|
39
|
+
request_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DownloadFileRequest.SerializeToString,
|
40
|
+
response_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DownloadFileResponse.FromString,
|
41
|
+
)
|
42
|
+
self.DeleteFile = channel.unary_unary(
|
43
|
+
'/gml.internal.controlplane.filetransfer.v1.FileTransferService/DeleteFile',
|
44
|
+
request_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DeleteFileRequest.SerializeToString,
|
45
|
+
response_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DeleteFileResponse.FromString,
|
46
|
+
)
|
47
|
+
|
48
|
+
|
49
|
+
class FileTransferServiceServicer(object):
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
51
|
+
|
52
|
+
def CreateFileInfo(self, request, context):
|
53
|
+
"""Missing associated documentation comment in .proto file."""
|
54
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
55
|
+
context.set_details('Method not implemented!')
|
56
|
+
raise NotImplementedError('Method not implemented!')
|
57
|
+
|
58
|
+
def GetFileInfo(self, request, context):
|
59
|
+
"""Missing associated documentation comment in .proto file."""
|
60
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
61
|
+
context.set_details('Method not implemented!')
|
62
|
+
raise NotImplementedError('Method not implemented!')
|
63
|
+
|
64
|
+
def GetFileInfoByName(self, request, context):
|
65
|
+
"""Missing associated documentation comment in .proto file."""
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
67
|
+
context.set_details('Method not implemented!')
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
69
|
+
|
70
|
+
def UploadFile(self, request_iterator, context):
|
71
|
+
"""Missing associated documentation comment in .proto file."""
|
72
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
73
|
+
context.set_details('Method not implemented!')
|
74
|
+
raise NotImplementedError('Method not implemented!')
|
75
|
+
|
76
|
+
def DownloadFile(self, request, context):
|
77
|
+
"""Missing associated documentation comment in .proto file."""
|
78
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
79
|
+
context.set_details('Method not implemented!')
|
80
|
+
raise NotImplementedError('Method not implemented!')
|
81
|
+
|
82
|
+
def DeleteFile(self, request, context):
|
83
|
+
"""Missing associated documentation comment in .proto file."""
|
84
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
85
|
+
context.set_details('Method not implemented!')
|
86
|
+
raise NotImplementedError('Method not implemented!')
|
87
|
+
|
88
|
+
|
89
|
+
def add_FileTransferServiceServicer_to_server(servicer, server):
|
90
|
+
rpc_method_handlers = {
|
91
|
+
'CreateFileInfo': grpc.unary_unary_rpc_method_handler(
|
92
|
+
servicer.CreateFileInfo,
|
93
|
+
request_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.CreateFileInfoRequest.FromString,
|
94
|
+
response_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.CreateFileInfoResponse.SerializeToString,
|
95
|
+
),
|
96
|
+
'GetFileInfo': grpc.unary_unary_rpc_method_handler(
|
97
|
+
servicer.GetFileInfo,
|
98
|
+
request_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoRequest.FromString,
|
99
|
+
response_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoResponse.SerializeToString,
|
100
|
+
),
|
101
|
+
'GetFileInfoByName': grpc.unary_unary_rpc_method_handler(
|
102
|
+
servicer.GetFileInfoByName,
|
103
|
+
request_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoByNameRequest.FromString,
|
104
|
+
response_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoByNameResponse.SerializeToString,
|
105
|
+
),
|
106
|
+
'UploadFile': grpc.stream_unary_rpc_method_handler(
|
107
|
+
servicer.UploadFile,
|
108
|
+
request_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.UploadFileRequest.FromString,
|
109
|
+
response_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.UploadFileResponse.SerializeToString,
|
110
|
+
),
|
111
|
+
'DownloadFile': grpc.unary_stream_rpc_method_handler(
|
112
|
+
servicer.DownloadFile,
|
113
|
+
request_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DownloadFileRequest.FromString,
|
114
|
+
response_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DownloadFileResponse.SerializeToString,
|
115
|
+
),
|
116
|
+
'DeleteFile': grpc.unary_unary_rpc_method_handler(
|
117
|
+
servicer.DeleteFile,
|
118
|
+
request_deserializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DeleteFileRequest.FromString,
|
119
|
+
response_serializer=src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DeleteFileResponse.SerializeToString,
|
120
|
+
),
|
121
|
+
}
|
122
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
123
|
+
'gml.internal.controlplane.filetransfer.v1.FileTransferService', rpc_method_handlers)
|
124
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
125
|
+
|
126
|
+
|
127
|
+
# This class is part of an EXPERIMENTAL API.
|
128
|
+
class FileTransferService(object):
|
129
|
+
"""Missing associated documentation comment in .proto file."""
|
130
|
+
|
131
|
+
@staticmethod
|
132
|
+
def CreateFileInfo(request,
|
133
|
+
target,
|
134
|
+
options=(),
|
135
|
+
channel_credentials=None,
|
136
|
+
call_credentials=None,
|
137
|
+
insecure=False,
|
138
|
+
compression=None,
|
139
|
+
wait_for_ready=None,
|
140
|
+
timeout=None,
|
141
|
+
metadata=None):
|
142
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.filetransfer.v1.FileTransferService/CreateFileInfo',
|
143
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.CreateFileInfoRequest.SerializeToString,
|
144
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.CreateFileInfoResponse.FromString,
|
145
|
+
options, channel_credentials,
|
146
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
147
|
+
|
148
|
+
@staticmethod
|
149
|
+
def GetFileInfo(request,
|
150
|
+
target,
|
151
|
+
options=(),
|
152
|
+
channel_credentials=None,
|
153
|
+
call_credentials=None,
|
154
|
+
insecure=False,
|
155
|
+
compression=None,
|
156
|
+
wait_for_ready=None,
|
157
|
+
timeout=None,
|
158
|
+
metadata=None):
|
159
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.filetransfer.v1.FileTransferService/GetFileInfo',
|
160
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoRequest.SerializeToString,
|
161
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoResponse.FromString,
|
162
|
+
options, channel_credentials,
|
163
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
164
|
+
|
165
|
+
@staticmethod
|
166
|
+
def GetFileInfoByName(request,
|
167
|
+
target,
|
168
|
+
options=(),
|
169
|
+
channel_credentials=None,
|
170
|
+
call_credentials=None,
|
171
|
+
insecure=False,
|
172
|
+
compression=None,
|
173
|
+
wait_for_ready=None,
|
174
|
+
timeout=None,
|
175
|
+
metadata=None):
|
176
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.filetransfer.v1.FileTransferService/GetFileInfoByName',
|
177
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoByNameRequest.SerializeToString,
|
178
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.GetFileInfoByNameResponse.FromString,
|
179
|
+
options, channel_credentials,
|
180
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
181
|
+
|
182
|
+
@staticmethod
|
183
|
+
def UploadFile(request_iterator,
|
184
|
+
target,
|
185
|
+
options=(),
|
186
|
+
channel_credentials=None,
|
187
|
+
call_credentials=None,
|
188
|
+
insecure=False,
|
189
|
+
compression=None,
|
190
|
+
wait_for_ready=None,
|
191
|
+
timeout=None,
|
192
|
+
metadata=None):
|
193
|
+
return grpc.experimental.stream_unary(request_iterator, target, '/gml.internal.controlplane.filetransfer.v1.FileTransferService/UploadFile',
|
194
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.UploadFileRequest.SerializeToString,
|
195
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.UploadFileResponse.FromString,
|
196
|
+
options, channel_credentials,
|
197
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
198
|
+
|
199
|
+
@staticmethod
|
200
|
+
def DownloadFile(request,
|
201
|
+
target,
|
202
|
+
options=(),
|
203
|
+
channel_credentials=None,
|
204
|
+
call_credentials=None,
|
205
|
+
insecure=False,
|
206
|
+
compression=None,
|
207
|
+
wait_for_ready=None,
|
208
|
+
timeout=None,
|
209
|
+
metadata=None):
|
210
|
+
return grpc.experimental.unary_stream(request, target, '/gml.internal.controlplane.filetransfer.v1.FileTransferService/DownloadFile',
|
211
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DownloadFileRequest.SerializeToString,
|
212
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DownloadFileResponse.FromString,
|
213
|
+
options, channel_credentials,
|
214
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
215
|
+
|
216
|
+
@staticmethod
|
217
|
+
def DeleteFile(request,
|
218
|
+
target,
|
219
|
+
options=(),
|
220
|
+
channel_credentials=None,
|
221
|
+
call_credentials=None,
|
222
|
+
insecure=False,
|
223
|
+
compression=None,
|
224
|
+
wait_for_ready=None,
|
225
|
+
timeout=None,
|
226
|
+
metadata=None):
|
227
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.filetransfer.v1.FileTransferService/DeleteFile',
|
228
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DeleteFileRequest.SerializeToString,
|
229
|
+
src_dot_controlplane_dot_filetransfer_dot_ftpb_dot_v1_dot_ftpb__pb2.DeleteFileResponse.FromString,
|
230
|
+
options, channel_credentials,
|
231
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: src/controlplane/logicalpipeline/lppb/v1/lppb.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
|
+
from gml.proto.src.common.typespb import uuid_pb2 as src_dot_common_dot_typespb_dot_uuid__pb2
|
16
|
+
from gml.proto.src.api.corepb.v1 import model_exec_pb2 as src_dot_api_dot_corepb_dot_v1_dot_model__exec__pb2
|
17
|
+
|
18
|
+
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3src/controlplane/logicalpipeline/lppb/v1/lppb.proto\x12,gml.internal.controlplane.logicalpipeline.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\"src/api/corepb/v1/model_exec.proto\"R\n\x13LogicalPipelineInfo\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x06\xe2\xde\x1f\x02IDR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"P\n\x1bListLogicalPipelinesRequest\x12\x31\n\x06org_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\t\xe2\xde\x1f\x05OrgIDR\x05orgId\"\x7f\n\x1cListLogicalPipelinesResponse\x12_\n\tpipelines\x18\x01 \x03(\x0b\x32\x41.gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineInfoR\tpipelines\"D\n\x19GetLogicalPipelineRequest\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x06\xe2\xde\x1f\x02IDR\x02id\"\xe3\x02\n\x1aGetLogicalPipelineResponse\x12\x42\n\x08pipeline\x18\x01 \x01(\x0b\x32\".gml.internal.api.core.v1.PipelineB\x02\x18\x01R\x08pipeline\x12\x66\n\rpipeline_info\x18\x02 \x01(\x0b\x32\x41.gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineInfoR\x0cpipelineInfo\x12\x12\n\x04yaml\x18\x03 \x01(\tR\x04yaml\x12T\n\x10logical_pipeline\x18\x04 \x01(\x0b\x32).gml.internal.api.core.v1.LogicalPipelineR\x0flogicalPipeline\x12/\n\x0b\x65ncoded_dag\x18\x05 \x01(\tB\x0e\xe2\xde\x1f\nEncodedDAGR\nencodedDag\"\xbd\x01\n\x1c\x43reateLogicalPipelineRequest\x12\x31\n\x06org_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\t\xe2\xde\x1f\x05OrgIDR\x05orgId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x42\n\x08pipeline\x18\x03 \x01(\x0b\x32\".gml.internal.api.core.v1.PipelineB\x02\x18\x01R\x08pipeline\x12\x12\n\x04yaml\x18\x04 \x01(\tR\x04yaml\"H\n\x1d\x43reateLogicalPipelineResponse\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x06\xe2\xde\x1f\x02IDR\x02id2\xa5\x04\n\x16LogicalPipelineService\x12\xad\x01\n\x14ListLogicalPipelines\x12I.gml.internal.controlplane.logicalpipeline.v1.ListLogicalPipelinesRequest\x1aJ.gml.internal.controlplane.logicalpipeline.v1.ListLogicalPipelinesResponse\x12\xa7\x01\n\x12GetLogicalPipeline\x12G.gml.internal.controlplane.logicalpipeline.v1.GetLogicalPipelineRequest\x1aH.gml.internal.controlplane.logicalpipeline.v1.GetLogicalPipelineResponse\x12\xb0\x01\n\x15\x43reateLogicalPipeline\x12J.gml.internal.controlplane.logicalpipeline.v1.CreateLogicalPipelineRequest\x1aK.gml.internal.controlplane.logicalpipeline.v1.CreateLogicalPipelineResponseBDZBgimletlabs.ai/gimlet/src/controlplane/logicalpipeline/lppb/v1;lppbb\x06proto3')
|
20
|
+
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.controlplane.logicalpipeline.lppb.v1.lppb_pb2', globals())
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
24
|
+
|
25
|
+
DESCRIPTOR._options = None
|
26
|
+
DESCRIPTOR._serialized_options = b'ZBgimletlabs.ai/gimlet/src/controlplane/logicalpipeline/lppb/v1;lppb'
|
27
|
+
_LOGICALPIPELINEINFO.fields_by_name['id']._options = None
|
28
|
+
_LOGICALPIPELINEINFO.fields_by_name['id']._serialized_options = b'\342\336\037\002ID'
|
29
|
+
_LISTLOGICALPIPELINESREQUEST.fields_by_name['org_id']._options = None
|
30
|
+
_LISTLOGICALPIPELINESREQUEST.fields_by_name['org_id']._serialized_options = b'\342\336\037\005OrgID'
|
31
|
+
_GETLOGICALPIPELINEREQUEST.fields_by_name['id']._options = None
|
32
|
+
_GETLOGICALPIPELINEREQUEST.fields_by_name['id']._serialized_options = b'\342\336\037\002ID'
|
33
|
+
_GETLOGICALPIPELINERESPONSE.fields_by_name['pipeline']._options = None
|
34
|
+
_GETLOGICALPIPELINERESPONSE.fields_by_name['pipeline']._serialized_options = b'\030\001'
|
35
|
+
_GETLOGICALPIPELINERESPONSE.fields_by_name['encoded_dag']._options = None
|
36
|
+
_GETLOGICALPIPELINERESPONSE.fields_by_name['encoded_dag']._serialized_options = b'\342\336\037\nEncodedDAG'
|
37
|
+
_CREATELOGICALPIPELINEREQUEST.fields_by_name['org_id']._options = None
|
38
|
+
_CREATELOGICALPIPELINEREQUEST.fields_by_name['org_id']._serialized_options = b'\342\336\037\005OrgID'
|
39
|
+
_CREATELOGICALPIPELINEREQUEST.fields_by_name['pipeline']._options = None
|
40
|
+
_CREATELOGICALPIPELINEREQUEST.fields_by_name['pipeline']._serialized_options = b'\030\001'
|
41
|
+
_CREATELOGICALPIPELINERESPONSE.fields_by_name['id']._options = None
|
42
|
+
_CREATELOGICALPIPELINERESPONSE.fields_by_name['id']._serialized_options = b'\342\336\037\002ID'
|
43
|
+
_LOGICALPIPELINEINFO._serialized_start=190
|
44
|
+
_LOGICALPIPELINEINFO._serialized_end=272
|
45
|
+
_LISTLOGICALPIPELINESREQUEST._serialized_start=274
|
46
|
+
_LISTLOGICALPIPELINESREQUEST._serialized_end=354
|
47
|
+
_LISTLOGICALPIPELINESRESPONSE._serialized_start=356
|
48
|
+
_LISTLOGICALPIPELINESRESPONSE._serialized_end=483
|
49
|
+
_GETLOGICALPIPELINEREQUEST._serialized_start=485
|
50
|
+
_GETLOGICALPIPELINEREQUEST._serialized_end=553
|
51
|
+
_GETLOGICALPIPELINERESPONSE._serialized_start=556
|
52
|
+
_GETLOGICALPIPELINERESPONSE._serialized_end=911
|
53
|
+
_CREATELOGICALPIPELINEREQUEST._serialized_start=914
|
54
|
+
_CREATELOGICALPIPELINEREQUEST._serialized_end=1103
|
55
|
+
_CREATELOGICALPIPELINERESPONSE._serialized_start=1105
|
56
|
+
_CREATELOGICALPIPELINERESPONSE._serialized_end=1177
|
57
|
+
_LOGICALPIPELINESERVICE._serialized_start=1180
|
58
|
+
_LOGICALPIPELINESERVICE._serialized_end=1729
|
59
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,132 @@
|
|
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 gml.proto.src.controlplane.logicalpipeline.lppb.v1 import lppb_pb2 as src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2
|
6
|
+
|
7
|
+
|
8
|
+
class LogicalPipelineServiceStub(object):
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
10
|
+
|
11
|
+
def __init__(self, channel):
|
12
|
+
"""Constructor.
|
13
|
+
|
14
|
+
Args:
|
15
|
+
channel: A grpc.Channel.
|
16
|
+
"""
|
17
|
+
self.ListLogicalPipelines = channel.unary_unary(
|
18
|
+
'/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/ListLogicalPipelines',
|
19
|
+
request_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ListLogicalPipelinesRequest.SerializeToString,
|
20
|
+
response_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ListLogicalPipelinesResponse.FromString,
|
21
|
+
)
|
22
|
+
self.GetLogicalPipeline = channel.unary_unary(
|
23
|
+
'/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/GetLogicalPipeline',
|
24
|
+
request_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.GetLogicalPipelineRequest.SerializeToString,
|
25
|
+
response_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.GetLogicalPipelineResponse.FromString,
|
26
|
+
)
|
27
|
+
self.CreateLogicalPipeline = channel.unary_unary(
|
28
|
+
'/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/CreateLogicalPipeline',
|
29
|
+
request_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineRequest.SerializeToString,
|
30
|
+
response_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineResponse.FromString,
|
31
|
+
)
|
32
|
+
|
33
|
+
|
34
|
+
class LogicalPipelineServiceServicer(object):
|
35
|
+
"""Missing associated documentation comment in .proto file."""
|
36
|
+
|
37
|
+
def ListLogicalPipelines(self, request, context):
|
38
|
+
"""Missing associated documentation comment in .proto file."""
|
39
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
40
|
+
context.set_details('Method not implemented!')
|
41
|
+
raise NotImplementedError('Method not implemented!')
|
42
|
+
|
43
|
+
def GetLogicalPipeline(self, request, context):
|
44
|
+
"""Missing associated documentation comment in .proto file."""
|
45
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
46
|
+
context.set_details('Method not implemented!')
|
47
|
+
raise NotImplementedError('Method not implemented!')
|
48
|
+
|
49
|
+
def CreateLogicalPipeline(self, request, context):
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
51
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
52
|
+
context.set_details('Method not implemented!')
|
53
|
+
raise NotImplementedError('Method not implemented!')
|
54
|
+
|
55
|
+
|
56
|
+
def add_LogicalPipelineServiceServicer_to_server(servicer, server):
|
57
|
+
rpc_method_handlers = {
|
58
|
+
'ListLogicalPipelines': grpc.unary_unary_rpc_method_handler(
|
59
|
+
servicer.ListLogicalPipelines,
|
60
|
+
request_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ListLogicalPipelinesRequest.FromString,
|
61
|
+
response_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ListLogicalPipelinesResponse.SerializeToString,
|
62
|
+
),
|
63
|
+
'GetLogicalPipeline': grpc.unary_unary_rpc_method_handler(
|
64
|
+
servicer.GetLogicalPipeline,
|
65
|
+
request_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.GetLogicalPipelineRequest.FromString,
|
66
|
+
response_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.GetLogicalPipelineResponse.SerializeToString,
|
67
|
+
),
|
68
|
+
'CreateLogicalPipeline': grpc.unary_unary_rpc_method_handler(
|
69
|
+
servicer.CreateLogicalPipeline,
|
70
|
+
request_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineRequest.FromString,
|
71
|
+
response_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineResponse.SerializeToString,
|
72
|
+
),
|
73
|
+
}
|
74
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
75
|
+
'gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService', rpc_method_handlers)
|
76
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
77
|
+
|
78
|
+
|
79
|
+
# This class is part of an EXPERIMENTAL API.
|
80
|
+
class LogicalPipelineService(object):
|
81
|
+
"""Missing associated documentation comment in .proto file."""
|
82
|
+
|
83
|
+
@staticmethod
|
84
|
+
def ListLogicalPipelines(request,
|
85
|
+
target,
|
86
|
+
options=(),
|
87
|
+
channel_credentials=None,
|
88
|
+
call_credentials=None,
|
89
|
+
insecure=False,
|
90
|
+
compression=None,
|
91
|
+
wait_for_ready=None,
|
92
|
+
timeout=None,
|
93
|
+
metadata=None):
|
94
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/ListLogicalPipelines',
|
95
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ListLogicalPipelinesRequest.SerializeToString,
|
96
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ListLogicalPipelinesResponse.FromString,
|
97
|
+
options, channel_credentials,
|
98
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
99
|
+
|
100
|
+
@staticmethod
|
101
|
+
def GetLogicalPipeline(request,
|
102
|
+
target,
|
103
|
+
options=(),
|
104
|
+
channel_credentials=None,
|
105
|
+
call_credentials=None,
|
106
|
+
insecure=False,
|
107
|
+
compression=None,
|
108
|
+
wait_for_ready=None,
|
109
|
+
timeout=None,
|
110
|
+
metadata=None):
|
111
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/GetLogicalPipeline',
|
112
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.GetLogicalPipelineRequest.SerializeToString,
|
113
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.GetLogicalPipelineResponse.FromString,
|
114
|
+
options, channel_credentials,
|
115
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
116
|
+
|
117
|
+
@staticmethod
|
118
|
+
def CreateLogicalPipeline(request,
|
119
|
+
target,
|
120
|
+
options=(),
|
121
|
+
channel_credentials=None,
|
122
|
+
call_credentials=None,
|
123
|
+
insecure=False,
|
124
|
+
compression=None,
|
125
|
+
wait_for_ready=None,
|
126
|
+
timeout=None,
|
127
|
+
metadata=None):
|
128
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/CreateLogicalPipeline',
|
129
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineRequest.SerializeToString,
|
130
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineResponse.FromString,
|
131
|
+
options, channel_credentials,
|
132
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: src/controlplane/model/mpb/v1/mpb.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
|
+
from gml.proto.src.common.typespb import uuid_pb2 as src_dot_common_dot_typespb_dot_uuid__pb2
|
16
|
+
from gml.proto.src.api.corepb.v1 import model_exec_pb2 as src_dot_api_dot_corepb_dot_v1_dot_model__exec__pb2
|
17
|
+
|
18
|
+
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'src/controlplane/model/mpb/v1/mpb.proto\x12\"gml.internal.controlplane.model.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\"src/api/corepb/v1/model_exec.proto\"\x81\x01\n\x0fGetModelRequest\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x06\xe2\xde\x1f\x02IDR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x31\n\x06org_id\x18\x03 \x01(\x0b\x32\x0f.gml.types.UUIDB\t\xe2\xde\x1f\x05OrgIDR\x05orgId\"\x7f\n\x10GetModelResponse\x12\x42\n\nmodel_info\x18\x01 \x01(\x0b\x32#.gml.internal.api.core.v1.ModelInfoR\tmodelInfo\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x06\xe2\xde\x1f\x02IDR\x02id\"\x9f\x01\n\x12\x43reateModelRequest\x12\x31\n\x06org_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\t\xe2\xde\x1f\x05OrgIDR\x05orgId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x42\n\nmodel_info\x18\x03 \x01(\x0b\x32#.gml.internal.api.core.v1.ModelInfoR\tmodelInfo\">\n\x13\x43reateModelResponse\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x06\xe2\xde\x1f\x02IDR\x02id2\x85\x02\n\x0cModelService\x12u\n\x08GetModel\x12\x33.gml.internal.controlplane.model.v1.GetModelRequest\x1a\x34.gml.internal.controlplane.model.v1.GetModelResponse\x12~\n\x0b\x43reateModel\x12\x36.gml.internal.controlplane.model.v1.CreateModelRequest\x1a\x37.gml.internal.controlplane.model.v1.CreateModelResponseB8Z6gimletlabs.ai/gimlet/src/controlplane/model/mpb/v1;mpbb\x06proto3')
|
20
|
+
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.controlplane.model.mpb.v1.mpb_pb2', globals())
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
24
|
+
|
25
|
+
DESCRIPTOR._options = None
|
26
|
+
DESCRIPTOR._serialized_options = b'Z6gimletlabs.ai/gimlet/src/controlplane/model/mpb/v1;mpb'
|
27
|
+
_GETMODELREQUEST.fields_by_name['id']._options = None
|
28
|
+
_GETMODELREQUEST.fields_by_name['id']._serialized_options = b'\342\336\037\002ID'
|
29
|
+
_GETMODELREQUEST.fields_by_name['org_id']._options = None
|
30
|
+
_GETMODELREQUEST.fields_by_name['org_id']._serialized_options = b'\342\336\037\005OrgID'
|
31
|
+
_GETMODELRESPONSE.fields_by_name['id']._options = None
|
32
|
+
_GETMODELRESPONSE.fields_by_name['id']._serialized_options = b'\342\336\037\002ID'
|
33
|
+
_CREATEMODELREQUEST.fields_by_name['org_id']._options = None
|
34
|
+
_CREATEMODELREQUEST.fields_by_name['org_id']._serialized_options = b'\342\336\037\005OrgID'
|
35
|
+
_CREATEMODELRESPONSE.fields_by_name['id']._options = None
|
36
|
+
_CREATEMODELRESPONSE.fields_by_name['id']._serialized_options = b'\342\336\037\002ID'
|
37
|
+
_GETMODELREQUEST._serialized_start=169
|
38
|
+
_GETMODELREQUEST._serialized_end=298
|
39
|
+
_GETMODELRESPONSE._serialized_start=300
|
40
|
+
_GETMODELRESPONSE._serialized_end=427
|
41
|
+
_CREATEMODELREQUEST._serialized_start=430
|
42
|
+
_CREATEMODELREQUEST._serialized_end=589
|
43
|
+
_CREATEMODELRESPONSE._serialized_start=591
|
44
|
+
_CREATEMODELRESPONSE._serialized_end=653
|
45
|
+
_MODELSERVICE._serialized_start=656
|
46
|
+
_MODELSERVICE._serialized_end=917
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,99 @@
|
|
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 gml.proto.src.controlplane.model.mpb.v1 import mpb_pb2 as src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2
|
6
|
+
|
7
|
+
|
8
|
+
class ModelServiceStub(object):
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
10
|
+
|
11
|
+
def __init__(self, channel):
|
12
|
+
"""Constructor.
|
13
|
+
|
14
|
+
Args:
|
15
|
+
channel: A grpc.Channel.
|
16
|
+
"""
|
17
|
+
self.GetModel = channel.unary_unary(
|
18
|
+
'/gml.internal.controlplane.model.v1.ModelService/GetModel',
|
19
|
+
request_serializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.GetModelRequest.SerializeToString,
|
20
|
+
response_deserializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.GetModelResponse.FromString,
|
21
|
+
)
|
22
|
+
self.CreateModel = channel.unary_unary(
|
23
|
+
'/gml.internal.controlplane.model.v1.ModelService/CreateModel',
|
24
|
+
request_serializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.CreateModelRequest.SerializeToString,
|
25
|
+
response_deserializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.CreateModelResponse.FromString,
|
26
|
+
)
|
27
|
+
|
28
|
+
|
29
|
+
class ModelServiceServicer(object):
|
30
|
+
"""Missing associated documentation comment in .proto file."""
|
31
|
+
|
32
|
+
def GetModel(self, request, context):
|
33
|
+
"""Missing associated documentation comment in .proto file."""
|
34
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
35
|
+
context.set_details('Method not implemented!')
|
36
|
+
raise NotImplementedError('Method not implemented!')
|
37
|
+
|
38
|
+
def CreateModel(self, request, context):
|
39
|
+
"""Missing associated documentation comment in .proto file."""
|
40
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
41
|
+
context.set_details('Method not implemented!')
|
42
|
+
raise NotImplementedError('Method not implemented!')
|
43
|
+
|
44
|
+
|
45
|
+
def add_ModelServiceServicer_to_server(servicer, server):
|
46
|
+
rpc_method_handlers = {
|
47
|
+
'GetModel': grpc.unary_unary_rpc_method_handler(
|
48
|
+
servicer.GetModel,
|
49
|
+
request_deserializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.GetModelRequest.FromString,
|
50
|
+
response_serializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.GetModelResponse.SerializeToString,
|
51
|
+
),
|
52
|
+
'CreateModel': grpc.unary_unary_rpc_method_handler(
|
53
|
+
servicer.CreateModel,
|
54
|
+
request_deserializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.CreateModelRequest.FromString,
|
55
|
+
response_serializer=src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.CreateModelResponse.SerializeToString,
|
56
|
+
),
|
57
|
+
}
|
58
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
59
|
+
'gml.internal.controlplane.model.v1.ModelService', rpc_method_handlers)
|
60
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
61
|
+
|
62
|
+
|
63
|
+
# This class is part of an EXPERIMENTAL API.
|
64
|
+
class ModelService(object):
|
65
|
+
"""Missing associated documentation comment in .proto file."""
|
66
|
+
|
67
|
+
@staticmethod
|
68
|
+
def GetModel(request,
|
69
|
+
target,
|
70
|
+
options=(),
|
71
|
+
channel_credentials=None,
|
72
|
+
call_credentials=None,
|
73
|
+
insecure=False,
|
74
|
+
compression=None,
|
75
|
+
wait_for_ready=None,
|
76
|
+
timeout=None,
|
77
|
+
metadata=None):
|
78
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.model.v1.ModelService/GetModel',
|
79
|
+
src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.GetModelRequest.SerializeToString,
|
80
|
+
src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.GetModelResponse.FromString,
|
81
|
+
options, channel_credentials,
|
82
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
83
|
+
|
84
|
+
@staticmethod
|
85
|
+
def CreateModel(request,
|
86
|
+
target,
|
87
|
+
options=(),
|
88
|
+
channel_credentials=None,
|
89
|
+
call_credentials=None,
|
90
|
+
insecure=False,
|
91
|
+
compression=None,
|
92
|
+
wait_for_ready=None,
|
93
|
+
timeout=None,
|
94
|
+
metadata=None):
|
95
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.model.v1.ModelService/CreateModel',
|
96
|
+
src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.CreateModelRequest.SerializeToString,
|
97
|
+
src_dot_controlplane_dot_model_dot_mpb_dot_v1_dot_mpb__pb2.CreateModelResponse.FromString,
|
98
|
+
options, channel_credentials,
|
99
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|