gnetclisdk 1.0.56__tar.gz → 1.0.58__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/PKG-INFO +1 -1
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk/client.py +24 -20
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk/proto/server_pb2.py +9 -19
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk/proto/server_pb2_grpc.py +32 -133
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk.egg-info/PKG-INFO +1 -1
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/MANIFEST.in +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/README.md +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk/auth.py +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk/exceptions.py +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk/interceptors.py +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk/proto/server_pb2.pyi +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk.egg-info/SOURCES.txt +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk.egg-info/dependency_links.txt +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk.egg-info/requires.txt +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/gnetclisdk.egg-info/top_level.txt +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/pyproject.toml +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/requirements.txt +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/setup.cfg +0 -0
- {gnetclisdk-1.0.56 → gnetclisdk-1.0.58}/setup.py +0 -0
@@ -7,7 +7,7 @@ from abc import ABC, abstractmethod
|
|
7
7
|
from contextlib import asynccontextmanager
|
8
8
|
from dataclasses import dataclass, field
|
9
9
|
from functools import partial
|
10
|
-
from typing import Any, AsyncIterator, List, Optional, Tuple, Dict
|
10
|
+
from typing import Any, AsyncIterator, List, Optional, Tuple, Dict, Callable
|
11
11
|
|
12
12
|
import grpc
|
13
13
|
from google.protobuf.message import Message
|
@@ -207,7 +207,7 @@ class Gnetcli:
|
|
207
207
|
channel=self._channel,
|
208
208
|
target_name_override=self._target_name_override,
|
209
209
|
user_agent=self._user_agent,
|
210
|
-
|
210
|
+
_grpc_channel_fn=self._grpc_channel_fn,
|
211
211
|
)
|
212
212
|
await sess.connect()
|
213
213
|
try:
|
@@ -286,6 +286,7 @@ class GnetcliSession(ABC):
|
|
286
286
|
insecure_grpc: bool = False,
|
287
287
|
channel: Optional[grpc.aio.Channel] = None,
|
288
288
|
credentials: Optional[Credentials] = None,
|
289
|
+
_grpc_channel_fn: Optional[Callable] = None,
|
289
290
|
):
|
290
291
|
self._hostname = hostname
|
291
292
|
self._credentials = credentials
|
@@ -300,25 +301,28 @@ class GnetcliSession(ABC):
|
|
300
301
|
("grpc.max_send_message_length", GRPC_MAX_MESSAGE_LENGTH),
|
301
302
|
("grpc.max_receive_message_length", GRPC_MAX_MESSAGE_LENGTH),
|
302
303
|
]
|
303
|
-
if
|
304
|
-
|
305
|
-
cert = get_cert(cert_file=cert_file)
|
306
|
-
channel_credentials = grpc.ssl_channel_credentials(root_certificates=cert)
|
307
|
-
authentication: ClientAuthentication
|
308
|
-
interceptors: [grpc.aio.ClientInterceptor] = list()
|
309
|
-
if not token:
|
310
|
-
pass
|
311
|
-
elif token.startswith("OAuth"):
|
312
|
-
authentication = OAuthClientAuthentication(token.split(" ")[1])
|
313
|
-
interceptors.append(get_auth_client_interceptors(authentication))
|
314
|
-
elif token.startswith("Basic"):
|
315
|
-
authentication = BasicClientAuthentication(token.split(" ")[1])
|
316
|
-
interceptors.append(get_auth_client_interceptors(authentication))
|
304
|
+
if _grpc_channel_fn:
|
305
|
+
grpc_channel_fn = _grpc_channel_fn
|
317
306
|
else:
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
307
|
+
if target_name_override:
|
308
|
+
options.append(("grpc.ssl_target_name_override", target_name_override))
|
309
|
+
cert = get_cert(cert_file=cert_file)
|
310
|
+
channel_credentials = grpc.ssl_channel_credentials(root_certificates=cert)
|
311
|
+
authentication: ClientAuthentication
|
312
|
+
interceptors: list[grpc.aio.ClientInterceptor] = list()
|
313
|
+
if not token:
|
314
|
+
pass
|
315
|
+
elif token.startswith("OAuth"):
|
316
|
+
authentication = OAuthClientAuthentication(token.split(" ")[1])
|
317
|
+
interceptors.append(get_auth_client_interceptors(authentication))
|
318
|
+
elif token.startswith("Basic"):
|
319
|
+
authentication = BasicClientAuthentication(token.split(" ")[1])
|
320
|
+
interceptors.append(get_auth_client_interceptors(authentication))
|
321
|
+
else:
|
322
|
+
raise Exception("unknown token type")
|
323
|
+
grpc_channel_fn = partial(grpc.aio.secure_channel, credentials=channel_credentials, interceptors=interceptors)
|
324
|
+
if insecure_grpc:
|
325
|
+
grpc_channel_fn = partial(grpc.aio.insecure_channel, interceptors=interceptors)
|
322
326
|
self._grpc_channel_fn = grpc_channel_fn
|
323
327
|
self._options = options
|
324
328
|
self._req_id: Optional[Any] = None
|
@@ -1,22 +1,12 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
4
3
|
# source: server.proto
|
5
|
-
# Protobuf Python Version:
|
4
|
+
# Protobuf Python Version: 4.25.1
|
6
5
|
"""Generated protocol buffer code."""
|
7
6
|
from google.protobuf import descriptor as _descriptor
|
8
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
10
8
|
from google.protobuf import symbol_database as _symbol_database
|
11
9
|
from google.protobuf.internal import builder as _builder
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
14
|
-
5,
|
15
|
-
27,
|
16
|
-
2,
|
17
|
-
'',
|
18
|
-
'server.proto'
|
19
|
-
)
|
20
10
|
# @@protoc_insertion_point(imports)
|
21
11
|
|
22
12
|
_sym_db = _symbol_database.Default()
|
@@ -31,20 +21,20 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cserver.proto\x
|
|
31
21
|
_globals = globals()
|
32
22
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
33
23
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'server_pb2', _globals)
|
34
|
-
if
|
35
|
-
_globals['DESCRIPTOR'].
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
25
|
+
_globals['DESCRIPTOR']._options = None
|
36
26
|
_globals['DESCRIPTOR']._serialized_options = b'Z5github.com/annetutil/gnetcli/pkg/server/proto;gnetcli'
|
37
|
-
_globals['_GNETCLI'].methods_by_name['SetupHostParams'].
|
27
|
+
_globals['_GNETCLI'].methods_by_name['SetupHostParams']._options = None
|
38
28
|
_globals['_GNETCLI'].methods_by_name['SetupHostParams']._serialized_options = b'\202\323\344\223\002\036\"\031/api/v1/setup_host_params:\001*'
|
39
|
-
_globals['_GNETCLI'].methods_by_name['Exec'].
|
29
|
+
_globals['_GNETCLI'].methods_by_name['Exec']._options = None
|
40
30
|
_globals['_GNETCLI'].methods_by_name['Exec']._serialized_options = b'\202\323\344\223\002\021\"\014/api/v1/exec:\001*'
|
41
|
-
_globals['_GNETCLI'].methods_by_name['AddDevice'].
|
31
|
+
_globals['_GNETCLI'].methods_by_name['AddDevice']._options = None
|
42
32
|
_globals['_GNETCLI'].methods_by_name['AddDevice']._serialized_options = b'\202\323\344\223\002\027\"\022/api/v1/add_device:\001*'
|
43
|
-
_globals['_GNETCLI'].methods_by_name['ExecNetconf'].
|
33
|
+
_globals['_GNETCLI'].methods_by_name['ExecNetconf']._options = None
|
44
34
|
_globals['_GNETCLI'].methods_by_name['ExecNetconf']._serialized_options = b'\202\323\344\223\002\031\"\024/api/v1/exec_netconf:\001*'
|
45
|
-
_globals['_GNETCLI'].methods_by_name['Download'].
|
35
|
+
_globals['_GNETCLI'].methods_by_name['Download']._options = None
|
46
36
|
_globals['_GNETCLI'].methods_by_name['Download']._serialized_options = b'\202\323\344\223\002\026\"\021/api/v1/downloads:\001*'
|
47
|
-
_globals['_GNETCLI'].methods_by_name['Upload'].
|
37
|
+
_globals['_GNETCLI'].methods_by_name['Upload']._options = None
|
48
38
|
_globals['_GNETCLI'].methods_by_name['Upload']._serialized_options = b'\202\323\344\223\002\023\"\016/api/v1/upload:\001*'
|
49
39
|
_globals['_TRACEOPERATION']._serialized_start=1311
|
50
40
|
_globals['_TRACEOPERATION']._serialized_end=1413
|
@@ -1,30 +1,10 @@
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
3
3
|
import grpc
|
4
|
-
import warnings
|
5
4
|
|
6
5
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
7
6
|
from . import server_pb2 as server__pb2
|
8
7
|
|
9
|
-
GRPC_GENERATED_VERSION = '1.66.1'
|
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 server_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
8
|
|
29
9
|
class GnetcliStub(object):
|
30
10
|
"""Missing associated documentation comment in .proto file."""
|
@@ -39,42 +19,42 @@ class GnetcliStub(object):
|
|
39
19
|
'/gnetcli.Gnetcli/SetupHostParams',
|
40
20
|
request_serializer=server__pb2.HostParams.SerializeToString,
|
41
21
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
42
|
-
|
22
|
+
)
|
43
23
|
self.Exec = channel.unary_unary(
|
44
24
|
'/gnetcli.Gnetcli/Exec',
|
45
25
|
request_serializer=server__pb2.CMD.SerializeToString,
|
46
26
|
response_deserializer=server__pb2.CMDResult.FromString,
|
47
|
-
|
27
|
+
)
|
48
28
|
self.ExecChat = channel.stream_stream(
|
49
29
|
'/gnetcli.Gnetcli/ExecChat',
|
50
30
|
request_serializer=server__pb2.CMD.SerializeToString,
|
51
31
|
response_deserializer=server__pb2.CMDResult.FromString,
|
52
|
-
|
32
|
+
)
|
53
33
|
self.AddDevice = channel.unary_unary(
|
54
34
|
'/gnetcli.Gnetcli/AddDevice',
|
55
35
|
request_serializer=server__pb2.Device.SerializeToString,
|
56
36
|
response_deserializer=server__pb2.DeviceResult.FromString,
|
57
|
-
|
37
|
+
)
|
58
38
|
self.ExecNetconf = channel.unary_unary(
|
59
39
|
'/gnetcli.Gnetcli/ExecNetconf',
|
60
40
|
request_serializer=server__pb2.CMDNetconf.SerializeToString,
|
61
41
|
response_deserializer=server__pb2.CMDResult.FromString,
|
62
|
-
|
42
|
+
)
|
63
43
|
self.ExecNetconfChat = channel.stream_stream(
|
64
44
|
'/gnetcli.Gnetcli/ExecNetconfChat',
|
65
45
|
request_serializer=server__pb2.CMDNetconf.SerializeToString,
|
66
46
|
response_deserializer=server__pb2.CMDResult.FromString,
|
67
|
-
|
47
|
+
)
|
68
48
|
self.Download = channel.unary_unary(
|
69
49
|
'/gnetcli.Gnetcli/Download',
|
70
50
|
request_serializer=server__pb2.FileDownloadRequest.SerializeToString,
|
71
51
|
response_deserializer=server__pb2.FilesResult.FromString,
|
72
|
-
|
52
|
+
)
|
73
53
|
self.Upload = channel.unary_unary(
|
74
54
|
'/gnetcli.Gnetcli/Upload',
|
75
55
|
request_serializer=server__pb2.FileUploadRequest.SerializeToString,
|
76
56
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
77
|
-
|
57
|
+
)
|
78
58
|
|
79
59
|
|
80
60
|
class GnetcliServicer(object):
|
@@ -175,7 +155,6 @@ def add_GnetcliServicer_to_server(servicer, server):
|
|
175
155
|
generic_handler = grpc.method_handlers_generic_handler(
|
176
156
|
'gnetcli.Gnetcli', rpc_method_handlers)
|
177
157
|
server.add_generic_rpc_handlers((generic_handler,))
|
178
|
-
server.add_registered_method_handlers('gnetcli.Gnetcli', rpc_method_handlers)
|
179
158
|
|
180
159
|
|
181
160
|
# This class is part of an EXPERIMENTAL API.
|
@@ -193,21 +172,11 @@ class Gnetcli(object):
|
|
193
172
|
wait_for_ready=None,
|
194
173
|
timeout=None,
|
195
174
|
metadata=None):
|
196
|
-
return grpc.experimental.unary_unary(
|
197
|
-
request,
|
198
|
-
target,
|
199
|
-
'/gnetcli.Gnetcli/SetupHostParams',
|
175
|
+
return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/SetupHostParams',
|
200
176
|
server__pb2.HostParams.SerializeToString,
|
201
177
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
202
|
-
options,
|
203
|
-
|
204
|
-
insecure,
|
205
|
-
call_credentials,
|
206
|
-
compression,
|
207
|
-
wait_for_ready,
|
208
|
-
timeout,
|
209
|
-
metadata,
|
210
|
-
_registered_method=True)
|
178
|
+
options, channel_credentials,
|
179
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
211
180
|
|
212
181
|
@staticmethod
|
213
182
|
def Exec(request,
|
@@ -220,21 +189,11 @@ class Gnetcli(object):
|
|
220
189
|
wait_for_ready=None,
|
221
190
|
timeout=None,
|
222
191
|
metadata=None):
|
223
|
-
return grpc.experimental.unary_unary(
|
224
|
-
request,
|
225
|
-
target,
|
226
|
-
'/gnetcli.Gnetcli/Exec',
|
192
|
+
return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/Exec',
|
227
193
|
server__pb2.CMD.SerializeToString,
|
228
194
|
server__pb2.CMDResult.FromString,
|
229
|
-
options,
|
230
|
-
|
231
|
-
insecure,
|
232
|
-
call_credentials,
|
233
|
-
compression,
|
234
|
-
wait_for_ready,
|
235
|
-
timeout,
|
236
|
-
metadata,
|
237
|
-
_registered_method=True)
|
195
|
+
options, channel_credentials,
|
196
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
238
197
|
|
239
198
|
@staticmethod
|
240
199
|
def ExecChat(request_iterator,
|
@@ -247,21 +206,11 @@ class Gnetcli(object):
|
|
247
206
|
wait_for_ready=None,
|
248
207
|
timeout=None,
|
249
208
|
metadata=None):
|
250
|
-
return grpc.experimental.stream_stream(
|
251
|
-
request_iterator,
|
252
|
-
target,
|
253
|
-
'/gnetcli.Gnetcli/ExecChat',
|
209
|
+
return grpc.experimental.stream_stream(request_iterator, target, '/gnetcli.Gnetcli/ExecChat',
|
254
210
|
server__pb2.CMD.SerializeToString,
|
255
211
|
server__pb2.CMDResult.FromString,
|
256
|
-
options,
|
257
|
-
|
258
|
-
insecure,
|
259
|
-
call_credentials,
|
260
|
-
compression,
|
261
|
-
wait_for_ready,
|
262
|
-
timeout,
|
263
|
-
metadata,
|
264
|
-
_registered_method=True)
|
212
|
+
options, channel_credentials,
|
213
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
265
214
|
|
266
215
|
@staticmethod
|
267
216
|
def AddDevice(request,
|
@@ -274,21 +223,11 @@ class Gnetcli(object):
|
|
274
223
|
wait_for_ready=None,
|
275
224
|
timeout=None,
|
276
225
|
metadata=None):
|
277
|
-
return grpc.experimental.unary_unary(
|
278
|
-
request,
|
279
|
-
target,
|
280
|
-
'/gnetcli.Gnetcli/AddDevice',
|
226
|
+
return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/AddDevice',
|
281
227
|
server__pb2.Device.SerializeToString,
|
282
228
|
server__pb2.DeviceResult.FromString,
|
283
|
-
options,
|
284
|
-
|
285
|
-
insecure,
|
286
|
-
call_credentials,
|
287
|
-
compression,
|
288
|
-
wait_for_ready,
|
289
|
-
timeout,
|
290
|
-
metadata,
|
291
|
-
_registered_method=True)
|
229
|
+
options, channel_credentials,
|
230
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
292
231
|
|
293
232
|
@staticmethod
|
294
233
|
def ExecNetconf(request,
|
@@ -301,21 +240,11 @@ class Gnetcli(object):
|
|
301
240
|
wait_for_ready=None,
|
302
241
|
timeout=None,
|
303
242
|
metadata=None):
|
304
|
-
return grpc.experimental.unary_unary(
|
305
|
-
request,
|
306
|
-
target,
|
307
|
-
'/gnetcli.Gnetcli/ExecNetconf',
|
243
|
+
return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/ExecNetconf',
|
308
244
|
server__pb2.CMDNetconf.SerializeToString,
|
309
245
|
server__pb2.CMDResult.FromString,
|
310
|
-
options,
|
311
|
-
|
312
|
-
insecure,
|
313
|
-
call_credentials,
|
314
|
-
compression,
|
315
|
-
wait_for_ready,
|
316
|
-
timeout,
|
317
|
-
metadata,
|
318
|
-
_registered_method=True)
|
246
|
+
options, channel_credentials,
|
247
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
319
248
|
|
320
249
|
@staticmethod
|
321
250
|
def ExecNetconfChat(request_iterator,
|
@@ -328,21 +257,11 @@ class Gnetcli(object):
|
|
328
257
|
wait_for_ready=None,
|
329
258
|
timeout=None,
|
330
259
|
metadata=None):
|
331
|
-
return grpc.experimental.stream_stream(
|
332
|
-
request_iterator,
|
333
|
-
target,
|
334
|
-
'/gnetcli.Gnetcli/ExecNetconfChat',
|
260
|
+
return grpc.experimental.stream_stream(request_iterator, target, '/gnetcli.Gnetcli/ExecNetconfChat',
|
335
261
|
server__pb2.CMDNetconf.SerializeToString,
|
336
262
|
server__pb2.CMDResult.FromString,
|
337
|
-
options,
|
338
|
-
|
339
|
-
insecure,
|
340
|
-
call_credentials,
|
341
|
-
compression,
|
342
|
-
wait_for_ready,
|
343
|
-
timeout,
|
344
|
-
metadata,
|
345
|
-
_registered_method=True)
|
263
|
+
options, channel_credentials,
|
264
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
346
265
|
|
347
266
|
@staticmethod
|
348
267
|
def Download(request,
|
@@ -355,21 +274,11 @@ class Gnetcli(object):
|
|
355
274
|
wait_for_ready=None,
|
356
275
|
timeout=None,
|
357
276
|
metadata=None):
|
358
|
-
return grpc.experimental.unary_unary(
|
359
|
-
request,
|
360
|
-
target,
|
361
|
-
'/gnetcli.Gnetcli/Download',
|
277
|
+
return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/Download',
|
362
278
|
server__pb2.FileDownloadRequest.SerializeToString,
|
363
279
|
server__pb2.FilesResult.FromString,
|
364
|
-
options,
|
365
|
-
|
366
|
-
insecure,
|
367
|
-
call_credentials,
|
368
|
-
compression,
|
369
|
-
wait_for_ready,
|
370
|
-
timeout,
|
371
|
-
metadata,
|
372
|
-
_registered_method=True)
|
280
|
+
options, channel_credentials,
|
281
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
373
282
|
|
374
283
|
@staticmethod
|
375
284
|
def Upload(request,
|
@@ -382,18 +291,8 @@ class Gnetcli(object):
|
|
382
291
|
wait_for_ready=None,
|
383
292
|
timeout=None,
|
384
293
|
metadata=None):
|
385
|
-
return grpc.experimental.unary_unary(
|
386
|
-
request,
|
387
|
-
target,
|
388
|
-
'/gnetcli.Gnetcli/Upload',
|
294
|
+
return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/Upload',
|
389
295
|
server__pb2.FileUploadRequest.SerializeToString,
|
390
296
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
391
|
-
options,
|
392
|
-
|
393
|
-
insecure,
|
394
|
-
call_credentials,
|
395
|
-
compression,
|
396
|
-
wait_for_ready,
|
397
|
-
timeout,
|
398
|
-
metadata,
|
399
|
-
_registered_method=True)
|
297
|
+
options, channel_credentials,
|
298
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|