gimlet-api 0.0.1__py3-none-any.whl → 0.0.2__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.2.dist-info/METADATA +16 -0
- gimlet_api-0.0.2.dist-info/RECORD +41 -0
- {gimlet_api-0.0.1.dist-info → gimlet_api-0.0.2.dist-info}/WHEEL +1 -2
- gml/__init__.py +17 -0
- gml/_utils.py +41 -0
- gml/client.py +297 -0
- gml/compile.py +43 -8
- 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
- gimlet_api-0.0.1.dist-info/METADATA +0 -6
- gimlet_api-0.0.1.dist-info/RECORD +0 -6
- gimlet_api-0.0.1.dist-info/top_level.txt +0 -1
@@ -0,0 +1,452 @@
|
|
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.directory.directorypb.v1 import directory_pb2 as src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2
|
6
|
+
|
7
|
+
|
8
|
+
class UserDirectoryServiceStub(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.GetUser = channel.unary_unary(
|
18
|
+
'/gml.internal.controlplane.directory.v1.UserDirectoryService/GetUser',
|
19
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUserRequest.SerializeToString,
|
20
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUserResponse.FromString,
|
21
|
+
)
|
22
|
+
self.UpdateUser = channel.unary_unary(
|
23
|
+
'/gml.internal.controlplane.directory.v1.UserDirectoryService/UpdateUser',
|
24
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpdateUserRequest.SerializeToString,
|
25
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpdateUserResponse.FromString,
|
26
|
+
)
|
27
|
+
self.DeleteUser = channel.unary_unary(
|
28
|
+
'/gml.internal.controlplane.directory.v1.UserDirectoryService/DeleteUser',
|
29
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteUserRequest.SerializeToString,
|
30
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteUserResponse.FromString,
|
31
|
+
)
|
32
|
+
self.UpsertUser = channel.unary_unary(
|
33
|
+
'/gml.internal.controlplane.directory.v1.UserDirectoryService/UpsertUser',
|
34
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpsertUserRequest.SerializeToString,
|
35
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpsertUserResponse.FromString,
|
36
|
+
)
|
37
|
+
|
38
|
+
|
39
|
+
class UserDirectoryServiceServicer(object):
|
40
|
+
"""Missing associated documentation comment in .proto file."""
|
41
|
+
|
42
|
+
def GetUser(self, request, context):
|
43
|
+
"""Missing associated documentation comment in .proto file."""
|
44
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
45
|
+
context.set_details('Method not implemented!')
|
46
|
+
raise NotImplementedError('Method not implemented!')
|
47
|
+
|
48
|
+
def UpdateUser(self, request, context):
|
49
|
+
"""Missing associated documentation comment in .proto file."""
|
50
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
51
|
+
context.set_details('Method not implemented!')
|
52
|
+
raise NotImplementedError('Method not implemented!')
|
53
|
+
|
54
|
+
def DeleteUser(self, request, context):
|
55
|
+
"""Missing associated documentation comment in .proto file."""
|
56
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
57
|
+
context.set_details('Method not implemented!')
|
58
|
+
raise NotImplementedError('Method not implemented!')
|
59
|
+
|
60
|
+
def UpsertUser(self, request, context):
|
61
|
+
"""Missing associated documentation comment in .proto file."""
|
62
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
63
|
+
context.set_details('Method not implemented!')
|
64
|
+
raise NotImplementedError('Method not implemented!')
|
65
|
+
|
66
|
+
|
67
|
+
def add_UserDirectoryServiceServicer_to_server(servicer, server):
|
68
|
+
rpc_method_handlers = {
|
69
|
+
'GetUser': grpc.unary_unary_rpc_method_handler(
|
70
|
+
servicer.GetUser,
|
71
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUserRequest.FromString,
|
72
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUserResponse.SerializeToString,
|
73
|
+
),
|
74
|
+
'UpdateUser': grpc.unary_unary_rpc_method_handler(
|
75
|
+
servicer.UpdateUser,
|
76
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpdateUserRequest.FromString,
|
77
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpdateUserResponse.SerializeToString,
|
78
|
+
),
|
79
|
+
'DeleteUser': grpc.unary_unary_rpc_method_handler(
|
80
|
+
servicer.DeleteUser,
|
81
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteUserRequest.FromString,
|
82
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteUserResponse.SerializeToString,
|
83
|
+
),
|
84
|
+
'UpsertUser': grpc.unary_unary_rpc_method_handler(
|
85
|
+
servicer.UpsertUser,
|
86
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpsertUserRequest.FromString,
|
87
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpsertUserResponse.SerializeToString,
|
88
|
+
),
|
89
|
+
}
|
90
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
91
|
+
'gml.internal.controlplane.directory.v1.UserDirectoryService', rpc_method_handlers)
|
92
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
93
|
+
|
94
|
+
|
95
|
+
# This class is part of an EXPERIMENTAL API.
|
96
|
+
class UserDirectoryService(object):
|
97
|
+
"""Missing associated documentation comment in .proto file."""
|
98
|
+
|
99
|
+
@staticmethod
|
100
|
+
def GetUser(request,
|
101
|
+
target,
|
102
|
+
options=(),
|
103
|
+
channel_credentials=None,
|
104
|
+
call_credentials=None,
|
105
|
+
insecure=False,
|
106
|
+
compression=None,
|
107
|
+
wait_for_ready=None,
|
108
|
+
timeout=None,
|
109
|
+
metadata=None):
|
110
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.UserDirectoryService/GetUser',
|
111
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUserRequest.SerializeToString,
|
112
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUserResponse.FromString,
|
113
|
+
options, channel_credentials,
|
114
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
115
|
+
|
116
|
+
@staticmethod
|
117
|
+
def UpdateUser(request,
|
118
|
+
target,
|
119
|
+
options=(),
|
120
|
+
channel_credentials=None,
|
121
|
+
call_credentials=None,
|
122
|
+
insecure=False,
|
123
|
+
compression=None,
|
124
|
+
wait_for_ready=None,
|
125
|
+
timeout=None,
|
126
|
+
metadata=None):
|
127
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.UserDirectoryService/UpdateUser',
|
128
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpdateUserRequest.SerializeToString,
|
129
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpdateUserResponse.FromString,
|
130
|
+
options, channel_credentials,
|
131
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
132
|
+
|
133
|
+
@staticmethod
|
134
|
+
def DeleteUser(request,
|
135
|
+
target,
|
136
|
+
options=(),
|
137
|
+
channel_credentials=None,
|
138
|
+
call_credentials=None,
|
139
|
+
insecure=False,
|
140
|
+
compression=None,
|
141
|
+
wait_for_ready=None,
|
142
|
+
timeout=None,
|
143
|
+
metadata=None):
|
144
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.UserDirectoryService/DeleteUser',
|
145
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteUserRequest.SerializeToString,
|
146
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteUserResponse.FromString,
|
147
|
+
options, channel_credentials,
|
148
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
149
|
+
|
150
|
+
@staticmethod
|
151
|
+
def UpsertUser(request,
|
152
|
+
target,
|
153
|
+
options=(),
|
154
|
+
channel_credentials=None,
|
155
|
+
call_credentials=None,
|
156
|
+
insecure=False,
|
157
|
+
compression=None,
|
158
|
+
wait_for_ready=None,
|
159
|
+
timeout=None,
|
160
|
+
metadata=None):
|
161
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.UserDirectoryService/UpsertUser',
|
162
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpsertUserRequest.SerializeToString,
|
163
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.UpsertUserResponse.FromString,
|
164
|
+
options, channel_credentials,
|
165
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
166
|
+
|
167
|
+
|
168
|
+
class OrgDirectoryServiceStub(object):
|
169
|
+
"""Missing associated documentation comment in .proto file."""
|
170
|
+
|
171
|
+
def __init__(self, channel):
|
172
|
+
"""Constructor.
|
173
|
+
|
174
|
+
Args:
|
175
|
+
channel: A grpc.Channel.
|
176
|
+
"""
|
177
|
+
self.CreateOrg = channel.unary_unary(
|
178
|
+
'/gml.internal.controlplane.directory.v1.OrgDirectoryService/CreateOrg',
|
179
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.CreateOrgRequest.SerializeToString,
|
180
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.CreateOrgResponse.FromString,
|
181
|
+
)
|
182
|
+
self.GetOrg = channel.unary_unary(
|
183
|
+
'/gml.internal.controlplane.directory.v1.OrgDirectoryService/GetOrg',
|
184
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetOrgRequest.SerializeToString,
|
185
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetOrgResponse.FromString,
|
186
|
+
)
|
187
|
+
self.DeleteOrg = channel.unary_unary(
|
188
|
+
'/gml.internal.controlplane.directory.v1.OrgDirectoryService/DeleteOrg',
|
189
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteOrgRequest.SerializeToString,
|
190
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteOrgResponse.FromString,
|
191
|
+
)
|
192
|
+
|
193
|
+
|
194
|
+
class OrgDirectoryServiceServicer(object):
|
195
|
+
"""Missing associated documentation comment in .proto file."""
|
196
|
+
|
197
|
+
def CreateOrg(self, request, context):
|
198
|
+
"""Missing associated documentation comment in .proto file."""
|
199
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
200
|
+
context.set_details('Method not implemented!')
|
201
|
+
raise NotImplementedError('Method not implemented!')
|
202
|
+
|
203
|
+
def GetOrg(self, request, context):
|
204
|
+
"""Missing associated documentation comment in .proto file."""
|
205
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
206
|
+
context.set_details('Method not implemented!')
|
207
|
+
raise NotImplementedError('Method not implemented!')
|
208
|
+
|
209
|
+
def DeleteOrg(self, request, context):
|
210
|
+
"""Missing associated documentation comment in .proto file."""
|
211
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
212
|
+
context.set_details('Method not implemented!')
|
213
|
+
raise NotImplementedError('Method not implemented!')
|
214
|
+
|
215
|
+
|
216
|
+
def add_OrgDirectoryServiceServicer_to_server(servicer, server):
|
217
|
+
rpc_method_handlers = {
|
218
|
+
'CreateOrg': grpc.unary_unary_rpc_method_handler(
|
219
|
+
servicer.CreateOrg,
|
220
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.CreateOrgRequest.FromString,
|
221
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.CreateOrgResponse.SerializeToString,
|
222
|
+
),
|
223
|
+
'GetOrg': grpc.unary_unary_rpc_method_handler(
|
224
|
+
servicer.GetOrg,
|
225
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetOrgRequest.FromString,
|
226
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetOrgResponse.SerializeToString,
|
227
|
+
),
|
228
|
+
'DeleteOrg': grpc.unary_unary_rpc_method_handler(
|
229
|
+
servicer.DeleteOrg,
|
230
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteOrgRequest.FromString,
|
231
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteOrgResponse.SerializeToString,
|
232
|
+
),
|
233
|
+
}
|
234
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
235
|
+
'gml.internal.controlplane.directory.v1.OrgDirectoryService', rpc_method_handlers)
|
236
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
237
|
+
|
238
|
+
|
239
|
+
# This class is part of an EXPERIMENTAL API.
|
240
|
+
class OrgDirectoryService(object):
|
241
|
+
"""Missing associated documentation comment in .proto file."""
|
242
|
+
|
243
|
+
@staticmethod
|
244
|
+
def CreateOrg(request,
|
245
|
+
target,
|
246
|
+
options=(),
|
247
|
+
channel_credentials=None,
|
248
|
+
call_credentials=None,
|
249
|
+
insecure=False,
|
250
|
+
compression=None,
|
251
|
+
wait_for_ready=None,
|
252
|
+
timeout=None,
|
253
|
+
metadata=None):
|
254
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.OrgDirectoryService/CreateOrg',
|
255
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.CreateOrgRequest.SerializeToString,
|
256
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.CreateOrgResponse.FromString,
|
257
|
+
options, channel_credentials,
|
258
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
259
|
+
|
260
|
+
@staticmethod
|
261
|
+
def GetOrg(request,
|
262
|
+
target,
|
263
|
+
options=(),
|
264
|
+
channel_credentials=None,
|
265
|
+
call_credentials=None,
|
266
|
+
insecure=False,
|
267
|
+
compression=None,
|
268
|
+
wait_for_ready=None,
|
269
|
+
timeout=None,
|
270
|
+
metadata=None):
|
271
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.OrgDirectoryService/GetOrg',
|
272
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetOrgRequest.SerializeToString,
|
273
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetOrgResponse.FromString,
|
274
|
+
options, channel_credentials,
|
275
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
276
|
+
|
277
|
+
@staticmethod
|
278
|
+
def DeleteOrg(request,
|
279
|
+
target,
|
280
|
+
options=(),
|
281
|
+
channel_credentials=None,
|
282
|
+
call_credentials=None,
|
283
|
+
insecure=False,
|
284
|
+
compression=None,
|
285
|
+
wait_for_ready=None,
|
286
|
+
timeout=None,
|
287
|
+
metadata=None):
|
288
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.OrgDirectoryService/DeleteOrg',
|
289
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteOrgRequest.SerializeToString,
|
290
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.DeleteOrgResponse.FromString,
|
291
|
+
options, channel_credentials,
|
292
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
293
|
+
|
294
|
+
|
295
|
+
class OrgUserManagementServiceStub(object):
|
296
|
+
"""Missing associated documentation comment in .proto file."""
|
297
|
+
|
298
|
+
def __init__(self, channel):
|
299
|
+
"""Constructor.
|
300
|
+
|
301
|
+
Args:
|
302
|
+
channel: A grpc.Channel.
|
303
|
+
"""
|
304
|
+
self.GrantUserScopes = channel.unary_unary(
|
305
|
+
'/gml.internal.controlplane.directory.v1.OrgUserManagementService/GrantUserScopes',
|
306
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GrantUserScopesRequest.SerializeToString,
|
307
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GrantUserScopesResponse.FromString,
|
308
|
+
)
|
309
|
+
self.RevokeUserScopes = channel.unary_unary(
|
310
|
+
'/gml.internal.controlplane.directory.v1.OrgUserManagementService/RevokeUserScopes',
|
311
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.RevokeUserScopesRequest.SerializeToString,
|
312
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.RevokeUserScopesResponse.FromString,
|
313
|
+
)
|
314
|
+
self.ListOrgs = channel.unary_unary(
|
315
|
+
'/gml.internal.controlplane.directory.v1.OrgUserManagementService/ListOrgs',
|
316
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.ListOrgsRequest.SerializeToString,
|
317
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.ListOrgsResponse.FromString,
|
318
|
+
)
|
319
|
+
self.GetUsers = channel.unary_unary(
|
320
|
+
'/gml.internal.controlplane.directory.v1.OrgUserManagementService/GetUsers',
|
321
|
+
request_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUsersRequest.SerializeToString,
|
322
|
+
response_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUsersResponse.FromString,
|
323
|
+
)
|
324
|
+
|
325
|
+
|
326
|
+
class OrgUserManagementServiceServicer(object):
|
327
|
+
"""Missing associated documentation comment in .proto file."""
|
328
|
+
|
329
|
+
def GrantUserScopes(self, request, context):
|
330
|
+
"""Missing associated documentation comment in .proto file."""
|
331
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
332
|
+
context.set_details('Method not implemented!')
|
333
|
+
raise NotImplementedError('Method not implemented!')
|
334
|
+
|
335
|
+
def RevokeUserScopes(self, request, context):
|
336
|
+
"""Missing associated documentation comment in .proto file."""
|
337
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
338
|
+
context.set_details('Method not implemented!')
|
339
|
+
raise NotImplementedError('Method not implemented!')
|
340
|
+
|
341
|
+
def ListOrgs(self, request, context):
|
342
|
+
"""Missing associated documentation comment in .proto file."""
|
343
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
344
|
+
context.set_details('Method not implemented!')
|
345
|
+
raise NotImplementedError('Method not implemented!')
|
346
|
+
|
347
|
+
def GetUsers(self, request, context):
|
348
|
+
"""Missing associated documentation comment in .proto file."""
|
349
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
350
|
+
context.set_details('Method not implemented!')
|
351
|
+
raise NotImplementedError('Method not implemented!')
|
352
|
+
|
353
|
+
|
354
|
+
def add_OrgUserManagementServiceServicer_to_server(servicer, server):
|
355
|
+
rpc_method_handlers = {
|
356
|
+
'GrantUserScopes': grpc.unary_unary_rpc_method_handler(
|
357
|
+
servicer.GrantUserScopes,
|
358
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GrantUserScopesRequest.FromString,
|
359
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GrantUserScopesResponse.SerializeToString,
|
360
|
+
),
|
361
|
+
'RevokeUserScopes': grpc.unary_unary_rpc_method_handler(
|
362
|
+
servicer.RevokeUserScopes,
|
363
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.RevokeUserScopesRequest.FromString,
|
364
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.RevokeUserScopesResponse.SerializeToString,
|
365
|
+
),
|
366
|
+
'ListOrgs': grpc.unary_unary_rpc_method_handler(
|
367
|
+
servicer.ListOrgs,
|
368
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.ListOrgsRequest.FromString,
|
369
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.ListOrgsResponse.SerializeToString,
|
370
|
+
),
|
371
|
+
'GetUsers': grpc.unary_unary_rpc_method_handler(
|
372
|
+
servicer.GetUsers,
|
373
|
+
request_deserializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUsersRequest.FromString,
|
374
|
+
response_serializer=src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUsersResponse.SerializeToString,
|
375
|
+
),
|
376
|
+
}
|
377
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
378
|
+
'gml.internal.controlplane.directory.v1.OrgUserManagementService', rpc_method_handlers)
|
379
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
380
|
+
|
381
|
+
|
382
|
+
# This class is part of an EXPERIMENTAL API.
|
383
|
+
class OrgUserManagementService(object):
|
384
|
+
"""Missing associated documentation comment in .proto file."""
|
385
|
+
|
386
|
+
@staticmethod
|
387
|
+
def GrantUserScopes(request,
|
388
|
+
target,
|
389
|
+
options=(),
|
390
|
+
channel_credentials=None,
|
391
|
+
call_credentials=None,
|
392
|
+
insecure=False,
|
393
|
+
compression=None,
|
394
|
+
wait_for_ready=None,
|
395
|
+
timeout=None,
|
396
|
+
metadata=None):
|
397
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.OrgUserManagementService/GrantUserScopes',
|
398
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GrantUserScopesRequest.SerializeToString,
|
399
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GrantUserScopesResponse.FromString,
|
400
|
+
options, channel_credentials,
|
401
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
402
|
+
|
403
|
+
@staticmethod
|
404
|
+
def RevokeUserScopes(request,
|
405
|
+
target,
|
406
|
+
options=(),
|
407
|
+
channel_credentials=None,
|
408
|
+
call_credentials=None,
|
409
|
+
insecure=False,
|
410
|
+
compression=None,
|
411
|
+
wait_for_ready=None,
|
412
|
+
timeout=None,
|
413
|
+
metadata=None):
|
414
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.OrgUserManagementService/RevokeUserScopes',
|
415
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.RevokeUserScopesRequest.SerializeToString,
|
416
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.RevokeUserScopesResponse.FromString,
|
417
|
+
options, channel_credentials,
|
418
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
419
|
+
|
420
|
+
@staticmethod
|
421
|
+
def ListOrgs(request,
|
422
|
+
target,
|
423
|
+
options=(),
|
424
|
+
channel_credentials=None,
|
425
|
+
call_credentials=None,
|
426
|
+
insecure=False,
|
427
|
+
compression=None,
|
428
|
+
wait_for_ready=None,
|
429
|
+
timeout=None,
|
430
|
+
metadata=None):
|
431
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.OrgUserManagementService/ListOrgs',
|
432
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.ListOrgsRequest.SerializeToString,
|
433
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.ListOrgsResponse.FromString,
|
434
|
+
options, channel_credentials,
|
435
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
436
|
+
|
437
|
+
@staticmethod
|
438
|
+
def GetUsers(request,
|
439
|
+
target,
|
440
|
+
options=(),
|
441
|
+
channel_credentials=None,
|
442
|
+
call_credentials=None,
|
443
|
+
insecure=False,
|
444
|
+
compression=None,
|
445
|
+
wait_for_ready=None,
|
446
|
+
timeout=None,
|
447
|
+
metadata=None):
|
448
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.directory.v1.OrgUserManagementService/GetUsers',
|
449
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUsersRequest.SerializeToString,
|
450
|
+
src_dot_controlplane_dot_directory_dot_directorypb_dot_v1_dot_directory__pb2.GetUsersResponse.FromString,
|
451
|
+
options, channel_credentials,
|
452
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: src/controlplane/filetransfer/ftpb/v1/ftpb.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
|
+
|
17
|
+
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0src/controlplane/filetransfer/ftpb/v1/ftpb.proto\x12)gml.internal.controlplane.filetransfer.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\"\x80\x02\n\x08\x46ileInfo\x12?\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x15\xe2\xde\x1f\x06\x46ileID\xf2\xde\x1f\x07\x64\x62:\"id\"R\x06\x66ileId\x12M\n\x06status\x18\x02 \x01(\x0e\x32\x35.gml.internal.controlplane.filetransfer.v1.FileStatusR\x06status\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x32\n\nsize_bytes\x18\x04 \x01(\x04\x42\x13\xf2\xde\x1f\x0f\x64\x62:\"size_bytes\"R\tsizeBytes\x12\x1c\n\tsha256sum\x18\x05 \x01(\tR\tsha256sum\"+\n\x15\x43reateFileInfoRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"a\n\x16\x43reateFileInfoResponse\x12G\n\x04info\x18\x01 \x01(\x0b\x32\x33.gml.internal.controlplane.filetransfer.v1.FileInfoR\x04info\"J\n\x12GetFileInfoRequest\x12\x34\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\"^\n\x13GetFileInfoResponse\x12G\n\x04info\x18\x01 \x01(\x0b\x32\x33.gml.internal.controlplane.filetransfer.v1.FileInfoR\x04info\".\n\x18GetFileInfoByNameRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"d\n\x19GetFileInfoByNameResponse\x12G\n\x04info\x18\x01 \x01(\x0b\x32\x33.gml.internal.controlplane.filetransfer.v1.FileInfoR\x04info\"}\n\x11UploadFileRequest\x12\x34\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\x12\x1c\n\tsha256sum\x18\x02 \x01(\tR\tsha256sum\x12\x14\n\x05\x63hunk\x18\x03 \x01(\x0cR\x05\x63hunk\"i\n\x12UploadFileResponse\x12\x34\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\x12\x1d\n\nsize_bytes\x18\x02 \x01(\x04R\tsizeBytes\"K\n\x13\x44ownloadFileRequest\x12\x34\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\",\n\x14\x44ownloadFileResponse\x12\x14\n\x05\x63hunk\x18\x01 \x01(\x0cR\x05\x63hunk\"_\n\x11\x44\x65leteFileRequest\x12\x34\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\x12\x14\n\x05purge\x18\x02 \x01(\x08R\x05purge\"\x14\n\x12\x44\x65leteFileResponse*n\n\nFileStatus\x12\x17\n\x13\x46ILE_STATUS_UNKNOWN\x10\x00\x12\x17\n\x13\x46ILE_STATUS_CREATED\x10\n\x12\x15\n\x11\x46ILE_STATUS_READY\x10\x14\x12\x17\n\x13\x46ILE_STATUS_DELETED\x10\x1e\x32\x8b\x07\n\x13\x46ileTransferService\x12\x95\x01\n\x0e\x43reateFileInfo\x12@.gml.internal.controlplane.filetransfer.v1.CreateFileInfoRequest\x1a\x41.gml.internal.controlplane.filetransfer.v1.CreateFileInfoResponse\x12\x8c\x01\n\x0bGetFileInfo\x12=.gml.internal.controlplane.filetransfer.v1.GetFileInfoRequest\x1a>.gml.internal.controlplane.filetransfer.v1.GetFileInfoResponse\x12\x9e\x01\n\x11GetFileInfoByName\x12\x43.gml.internal.controlplane.filetransfer.v1.GetFileInfoByNameRequest\x1a\x44.gml.internal.controlplane.filetransfer.v1.GetFileInfoByNameResponse\x12\x8b\x01\n\nUploadFile\x12<.gml.internal.controlplane.filetransfer.v1.UploadFileRequest\x1a=.gml.internal.controlplane.filetransfer.v1.UploadFileResponse(\x01\x12\x91\x01\n\x0c\x44ownloadFile\x12>.gml.internal.controlplane.filetransfer.v1.DownloadFileRequest\x1a?.gml.internal.controlplane.filetransfer.v1.DownloadFileResponse0\x01\x12\x89\x01\n\nDeleteFile\x12<.gml.internal.controlplane.filetransfer.v1.DeleteFileRequest\x1a=.gml.internal.controlplane.filetransfer.v1.DeleteFileResponseBAZ?gimletlabs.ai/gimlet/src/controlplane/filetransfer/ftpb/v1;ftpbb\x06proto3')
|
19
|
+
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.controlplane.filetransfer.ftpb.v1.ftpb_pb2', globals())
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
23
|
+
|
24
|
+
DESCRIPTOR._options = None
|
25
|
+
DESCRIPTOR._serialized_options = b'Z?gimletlabs.ai/gimlet/src/controlplane/filetransfer/ftpb/v1;ftpb'
|
26
|
+
_FILEINFO.fields_by_name['file_id']._options = None
|
27
|
+
_FILEINFO.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID\362\336\037\007db:\"id\"'
|
28
|
+
_FILEINFO.fields_by_name['size_bytes']._options = None
|
29
|
+
_FILEINFO.fields_by_name['size_bytes']._serialized_options = b'\362\336\037\017db:\"size_bytes\"'
|
30
|
+
_GETFILEINFOREQUEST.fields_by_name['file_id']._options = None
|
31
|
+
_GETFILEINFOREQUEST.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID'
|
32
|
+
_UPLOADFILEREQUEST.fields_by_name['file_id']._options = None
|
33
|
+
_UPLOADFILEREQUEST.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID'
|
34
|
+
_UPLOADFILERESPONSE.fields_by_name['file_id']._options = None
|
35
|
+
_UPLOADFILERESPONSE.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID'
|
36
|
+
_DOWNLOADFILEREQUEST.fields_by_name['file_id']._options = None
|
37
|
+
_DOWNLOADFILEREQUEST.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID'
|
38
|
+
_DELETEFILEREQUEST.fields_by_name['file_id']._options = None
|
39
|
+
_DELETEFILEREQUEST.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID'
|
40
|
+
_FILESTATUS._serialized_start=1349
|
41
|
+
_FILESTATUS._serialized_end=1459
|
42
|
+
_FILEINFO._serialized_start=149
|
43
|
+
_FILEINFO._serialized_end=405
|
44
|
+
_CREATEFILEINFOREQUEST._serialized_start=407
|
45
|
+
_CREATEFILEINFOREQUEST._serialized_end=450
|
46
|
+
_CREATEFILEINFORESPONSE._serialized_start=452
|
47
|
+
_CREATEFILEINFORESPONSE._serialized_end=549
|
48
|
+
_GETFILEINFOREQUEST._serialized_start=551
|
49
|
+
_GETFILEINFOREQUEST._serialized_end=625
|
50
|
+
_GETFILEINFORESPONSE._serialized_start=627
|
51
|
+
_GETFILEINFORESPONSE._serialized_end=721
|
52
|
+
_GETFILEINFOBYNAMEREQUEST._serialized_start=723
|
53
|
+
_GETFILEINFOBYNAMEREQUEST._serialized_end=769
|
54
|
+
_GETFILEINFOBYNAMERESPONSE._serialized_start=771
|
55
|
+
_GETFILEINFOBYNAMERESPONSE._serialized_end=871
|
56
|
+
_UPLOADFILEREQUEST._serialized_start=873
|
57
|
+
_UPLOADFILEREQUEST._serialized_end=998
|
58
|
+
_UPLOADFILERESPONSE._serialized_start=1000
|
59
|
+
_UPLOADFILERESPONSE._serialized_end=1105
|
60
|
+
_DOWNLOADFILEREQUEST._serialized_start=1107
|
61
|
+
_DOWNLOADFILEREQUEST._serialized_end=1182
|
62
|
+
_DOWNLOADFILERESPONSE._serialized_start=1184
|
63
|
+
_DOWNLOADFILERESPONSE._serialized_end=1228
|
64
|
+
_DELETEFILEREQUEST._serialized_start=1230
|
65
|
+
_DELETEFILEREQUEST._serialized_end=1325
|
66
|
+
_DELETEFILERESPONSE._serialized_start=1327
|
67
|
+
_DELETEFILERESPONSE._serialized_end=1347
|
68
|
+
_FILETRANSFERSERVICE._serialized_start=1462
|
69
|
+
_FILETRANSFERSERVICE._serialized_end=2369
|
70
|
+
# @@protoc_insertion_point(module_scope)
|