gnetclisdk 1.0.88__py3-none-any.whl → 1.0.90__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.
- gnetclisdk/client.py +2 -0
- gnetclisdk/proto/server_pb2.py +34 -34
- gnetclisdk/proto/server_pb2.pyi +4 -2
- {gnetclisdk-1.0.88.dist-info → gnetclisdk-1.0.90.dist-info}/METADATA +1 -1
- gnetclisdk-1.0.90.dist-info/RECORD +11 -0
- {gnetclisdk-1.0.88.dist-info → gnetclisdk-1.0.90.dist-info}/WHEEL +1 -1
- gnetclisdk-1.0.88.dist-info/RECORD +0 -11
- {gnetclisdk-1.0.88.dist-info → gnetclisdk-1.0.90.dist-info}/top_level.txt +0 -0
gnetclisdk/client.py
CHANGED
@@ -37,11 +37,13 @@ default_grpc_options: List[Tuple[str, Any]] = [
|
|
37
37
|
class QA:
|
38
38
|
question: str
|
39
39
|
answer: str
|
40
|
+
not_send_nl: bool = False
|
40
41
|
|
41
42
|
def make_pb(self) -> server_pb2.QA:
|
42
43
|
pb = server_pb2.QA()
|
43
44
|
pb.question = self.question
|
44
45
|
pb.answer = self.answer
|
46
|
+
pb.not_send_nl = self.not_send_nl
|
45
47
|
return pb
|
46
48
|
|
47
49
|
|
gnetclisdk/proto/server_pb2.py
CHANGED
@@ -16,7 +16,7 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
16
16
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
17
17
|
|
18
18
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cserver.proto\x12\x07gnetcli\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\"
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cserver.proto\x12\x07gnetcli\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\";\n\x02QA\x12\x10\n\x08question\x18\x01 \x01(\t\x12\x0e\n\x06\x61nswer\x18\x02 \x01(\t\x12\x13\n\x0bnot_send_nl\x18\x03 \x01(\x08\".\n\x0b\x43redentials\x12\r\n\x05login\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\xb4\x01\n\x03\x43MD\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0b\n\x03\x63md\x18\x02 \x01(\t\x12\r\n\x05trace\x18\x03 \x01(\x08\x12\x17\n\x02qa\x18\x04 \x03(\x0b\x32\x0b.gnetcli.QA\x12\x14\n\x0cread_timeout\x18\x05 \x01(\x01\x12\x13\n\x0b\x63md_timeout\x18\x06 \x01(\x01\x12\x15\n\rstring_result\x18\x08 \x01(\x08\x12(\n\x0bhost_params\x18\t \x01(\x0b\x32\x13.gnetcli.HostParams\"e\n\x06\x44\x65vice\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11prompt_expression\x18\x02 \x01(\t\x12\x18\n\x10\x65rror_expression\x18\x03 \x01(\t\x12\x18\n\x10pager_expression\x18\x04 \x01(\t\"`\n\nCMDNetconf\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0b\n\x03\x63md\x18\x02 \x01(\t\x12\x0c\n\x04json\x18\x03 \x01(\x08\x12\x14\n\x0cread_timeout\x18\x04 \x01(\x01\x12\x13\n\x0b\x63md_timeout\x18\x05 \x01(\x01\"H\n\x0c\x43MDTraceItem\x12*\n\toperation\x18\x01 \x01(\x0e\x32\x17.gnetcli.TraceOperation\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"o\n\nHostParams\x12\x0c\n\x04host\x18\x01 \x01(\t\x12)\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x14.gnetcli.Credentials\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12\x0e\n\x06\x64\x65vice\x18\x04 \x01(\t\x12\n\n\x02ip\x18\x05 \x01(\t\"\x81\x01\n\tCMDResult\x12\x0b\n\x03out\x18\x01 \x01(\x0c\x12\x0f\n\x07out_str\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\x0c\x12\x11\n\terror_str\x18\x04 \x01(\t\x12$\n\x05trace\x18\x05 \x03(\x0b\x32\x15.gnetcli.CMDTraceItem\x12\x0e\n\x06status\x18\x06 \x01(\x05\"G\n\x0c\x44\x65viceResult\x12(\n\x03res\x18\x01 \x01(\x0e\x32\x1b.gnetcli.DeviceResultStatus\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"l\n\x13\x46ileDownloadRequest\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\x12\x0e\n\x06\x64\x65vice\x18\x03 \x01(\t\x12(\n\x0bhost_params\x18\x05 \x01(\x0b\x32\x13.gnetcli.HostParams\"K\n\x08\x46ileData\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12#\n\x06status\x18\x03 \x01(\x0e\x32\x13.gnetcli.FileStatus\"}\n\x11\x46ileUploadRequest\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x04 \x01(\t\x12 \n\x05\x66iles\x18\x03 \x03(\x0b\x32\x11.gnetcli.FileData\x12(\n\x0bhost_params\x18\x06 \x01(\x0b\x32\x13.gnetcli.HostParams\"/\n\x0b\x46ilesResult\x12 \n\x05\x66iles\x18\x01 \x03(\x0b\x32\x11.gnetcli.FileData*f\n\x0eTraceOperation\x12\x14\n\x10Operation_notset\x10\x00\x12\x15\n\x11Operation_unknown\x10\x01\x12\x13\n\x0fOperation_write\x10\x02\x12\x12\n\x0eOperation_read\x10\x03*H\n\x12\x44\x65viceResultStatus\x12\x11\n\rDevice_notset\x10\x00\x12\r\n\tDevice_ok\x10\x01\x12\x10\n\x0c\x44\x65vice_error\x10\x02*}\n\nFileStatus\x12\x15\n\x11\x46ileStatus_notset\x10\x00\x12\x11\n\rFileStatus_ok\x10\x01\x12\x14\n\x10\x46ileStatus_error\x10\x02\x12\x18\n\x14\x46ileStatus_not_found\x10\x03\x12\x15\n\x11\x46ileStatus_is_dir\x10\x04\x32\x8c\x05\n\x07Gnetcli\x12\x64\n\x0fSetupHostParams\x12\x13.gnetcli.HostParams\x1a\x16.google.protobuf.Empty\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/api/v1/setup_host_params:\x01*\x12\x41\n\x04\x45xec\x12\x0c.gnetcli.CMD\x1a\x12.gnetcli.CMDResult\"\x17\x82\xd3\xe4\x93\x02\x11\"\x0c/api/v1/exec:\x01*\x12\x32\n\x08\x45xecChat\x12\x0c.gnetcli.CMD\x1a\x12.gnetcli.CMDResult\"\x00(\x01\x30\x01\x12R\n\tAddDevice\x12\x0f.gnetcli.Device\x1a\x15.gnetcli.DeviceResult\"\x1d\x82\xd3\xe4\x93\x02\x17\"\x12/api/v1/add_device:\x01*\x12W\n\x0b\x45xecNetconf\x12\x13.gnetcli.CMDNetconf\x1a\x12.gnetcli.CMDResult\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/exec_netconf:\x01*\x12@\n\x0f\x45xecNetconfChat\x12\x13.gnetcli.CMDNetconf\x1a\x12.gnetcli.CMDResult\"\x00(\x01\x30\x01\x12\\\n\x08\x44ownload\x12\x1c.gnetcli.FileDownloadRequest\x1a\x14.gnetcli.FilesResult\"\x1c\x82\xd3\xe4\x93\x02\x16\"\x11/api/v1/downloads:\x01*\x12W\n\x06Upload\x12\x1a.gnetcli.FileUploadRequest\x1a\x16.google.protobuf.Empty\"\x19\x82\xd3\xe4\x93\x02\x13\"\x0e/api/v1/upload:\x01*B7Z5github.com/annetutil/gnetcli/pkg/server/proto;gnetclib\x06proto3')
|
20
20
|
|
21
21
|
_globals = globals()
|
22
22
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -36,38 +36,38 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
36
36
|
_globals['_GNETCLI'].methods_by_name['Download']._serialized_options = b'\202\323\344\223\002\026\"\021/api/v1/downloads:\001*'
|
37
37
|
_globals['_GNETCLI'].methods_by_name['Upload']._options = None
|
38
38
|
_globals['_GNETCLI'].methods_by_name['Upload']._serialized_options = b'\202\323\344\223\002\023\"\016/api/v1/upload:\001*'
|
39
|
-
_globals['_TRACEOPERATION']._serialized_start=
|
40
|
-
_globals['_TRACEOPERATION']._serialized_end=
|
41
|
-
_globals['_DEVICERESULTSTATUS']._serialized_start=
|
42
|
-
_globals['_DEVICERESULTSTATUS']._serialized_end=
|
43
|
-
_globals['_FILESTATUS']._serialized_start=
|
44
|
-
_globals['_FILESTATUS']._serialized_end=
|
39
|
+
_globals['_TRACEOPERATION']._serialized_start=1332
|
40
|
+
_globals['_TRACEOPERATION']._serialized_end=1434
|
41
|
+
_globals['_DEVICERESULTSTATUS']._serialized_start=1436
|
42
|
+
_globals['_DEVICERESULTSTATUS']._serialized_end=1508
|
43
|
+
_globals['_FILESTATUS']._serialized_start=1510
|
44
|
+
_globals['_FILESTATUS']._serialized_end=1635
|
45
45
|
_globals['_QA']._serialized_start=84
|
46
|
-
_globals['_QA']._serialized_end=
|
47
|
-
_globals['_CREDENTIALS']._serialized_start=
|
48
|
-
_globals['_CREDENTIALS']._serialized_end=
|
49
|
-
_globals['_CMD']._serialized_start=
|
50
|
-
_globals['_CMD']._serialized_end=
|
51
|
-
_globals['_DEVICE']._serialized_start=
|
52
|
-
_globals['_DEVICE']._serialized_end=
|
53
|
-
_globals['_CMDNETCONF']._serialized_start=
|
54
|
-
_globals['_CMDNETCONF']._serialized_end=
|
55
|
-
_globals['_CMDTRACEITEM']._serialized_start=
|
56
|
-
_globals['_CMDTRACEITEM']._serialized_end=
|
57
|
-
_globals['_HOSTPARAMS']._serialized_start=
|
58
|
-
_globals['_HOSTPARAMS']._serialized_end=
|
59
|
-
_globals['_CMDRESULT']._serialized_start=
|
60
|
-
_globals['_CMDRESULT']._serialized_end=
|
61
|
-
_globals['_DEVICERESULT']._serialized_start=
|
62
|
-
_globals['_DEVICERESULT']._serialized_end=
|
63
|
-
_globals['_FILEDOWNLOADREQUEST']._serialized_start=
|
64
|
-
_globals['_FILEDOWNLOADREQUEST']._serialized_end=
|
65
|
-
_globals['_FILEDATA']._serialized_start=
|
66
|
-
_globals['_FILEDATA']._serialized_end=
|
67
|
-
_globals['_FILEUPLOADREQUEST']._serialized_start=
|
68
|
-
_globals['_FILEUPLOADREQUEST']._serialized_end=
|
69
|
-
_globals['_FILESRESULT']._serialized_start=
|
70
|
-
_globals['_FILESRESULT']._serialized_end=
|
71
|
-
_globals['_GNETCLI']._serialized_start=
|
72
|
-
_globals['_GNETCLI']._serialized_end=
|
46
|
+
_globals['_QA']._serialized_end=143
|
47
|
+
_globals['_CREDENTIALS']._serialized_start=145
|
48
|
+
_globals['_CREDENTIALS']._serialized_end=191
|
49
|
+
_globals['_CMD']._serialized_start=194
|
50
|
+
_globals['_CMD']._serialized_end=374
|
51
|
+
_globals['_DEVICE']._serialized_start=376
|
52
|
+
_globals['_DEVICE']._serialized_end=477
|
53
|
+
_globals['_CMDNETCONF']._serialized_start=479
|
54
|
+
_globals['_CMDNETCONF']._serialized_end=575
|
55
|
+
_globals['_CMDTRACEITEM']._serialized_start=577
|
56
|
+
_globals['_CMDTRACEITEM']._serialized_end=649
|
57
|
+
_globals['_HOSTPARAMS']._serialized_start=651
|
58
|
+
_globals['_HOSTPARAMS']._serialized_end=762
|
59
|
+
_globals['_CMDRESULT']._serialized_start=765
|
60
|
+
_globals['_CMDRESULT']._serialized_end=894
|
61
|
+
_globals['_DEVICERESULT']._serialized_start=896
|
62
|
+
_globals['_DEVICERESULT']._serialized_end=967
|
63
|
+
_globals['_FILEDOWNLOADREQUEST']._serialized_start=969
|
64
|
+
_globals['_FILEDOWNLOADREQUEST']._serialized_end=1077
|
65
|
+
_globals['_FILEDATA']._serialized_start=1079
|
66
|
+
_globals['_FILEDATA']._serialized_end=1154
|
67
|
+
_globals['_FILEUPLOADREQUEST']._serialized_start=1156
|
68
|
+
_globals['_FILEUPLOADREQUEST']._serialized_end=1281
|
69
|
+
_globals['_FILESRESULT']._serialized_start=1283
|
70
|
+
_globals['_FILESRESULT']._serialized_end=1330
|
71
|
+
_globals['_GNETCLI']._serialized_start=1638
|
72
|
+
_globals['_GNETCLI']._serialized_end=2290
|
73
73
|
# @@protoc_insertion_point(module_scope)
|
gnetclisdk/proto/server_pb2.pyi
CHANGED
@@ -42,12 +42,14 @@ FileStatus_not_found: FileStatus
|
|
42
42
|
FileStatus_is_dir: FileStatus
|
43
43
|
|
44
44
|
class QA(_message.Message):
|
45
|
-
__slots__ = ("question", "answer")
|
45
|
+
__slots__ = ("question", "answer", "not_send_nl")
|
46
46
|
QUESTION_FIELD_NUMBER: _ClassVar[int]
|
47
47
|
ANSWER_FIELD_NUMBER: _ClassVar[int]
|
48
|
+
NOT_SEND_NL_FIELD_NUMBER: _ClassVar[int]
|
48
49
|
question: str
|
49
50
|
answer: str
|
50
|
-
|
51
|
+
not_send_nl: bool
|
52
|
+
def __init__(self, question: _Optional[str] = ..., answer: _Optional[str] = ..., not_send_nl: bool = ...) -> None: ...
|
51
53
|
|
52
54
|
class Credentials(_message.Message):
|
53
55
|
__slots__ = ("login", "password")
|
@@ -0,0 +1,11 @@
|
|
1
|
+
gnetclisdk/auth.py,sha256=GwM7H7Ecb-gwqUTkQorifNB_mtnZfgeS46gOW2Vx1U4,1246
|
2
|
+
gnetclisdk/client.py,sha256=BGLamlnThZkx1NdojblX_iTTRtmhyIcuGpFUe_2bo-4,19716
|
3
|
+
gnetclisdk/exceptions.py,sha256=FVaj3X5163yPFsglfsw3MaZ9r3OE_Cih9N7EL1NTGgo,3791
|
4
|
+
gnetclisdk/interceptors.py,sha256=apj3l4lnR2ZcsA49odptrBC0kTDmP6Mp0EzYkeEJz9Y,7010
|
5
|
+
gnetclisdk/proto/server_pb2.py,sha256=v_A3rRjuWKa7rPOrsAPOl_oLmfD4sqT5ELpAyM3cUI0,8126
|
6
|
+
gnetclisdk/proto/server_pb2.pyi,sha256=66Oq_YbkGgEQt9ea-P64H58hiUZoMhqptlMQdl2IAaw,8402
|
7
|
+
gnetclisdk/proto/server_pb2_grpc.py,sha256=H_CmevWcjvGTvp4TmzEV-TJRPq2SsQ6UgoCDc-hosyo,12805
|
8
|
+
gnetclisdk-1.0.90.dist-info/METADATA,sha256=PeKId2xuYE6kuB9OuNdRLEu6r4h5cU5mqwZIX_z5wus,1793
|
9
|
+
gnetclisdk-1.0.90.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
10
|
+
gnetclisdk-1.0.90.dist-info/top_level.txt,sha256=MNjS8LEt6d2rZ-dUbV2cnqkuTMu3EqEL2eiSvUZuUlA,11
|
11
|
+
gnetclisdk-1.0.90.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
gnetclisdk/auth.py,sha256=GwM7H7Ecb-gwqUTkQorifNB_mtnZfgeS46gOW2Vx1U4,1246
|
2
|
-
gnetclisdk/client.py,sha256=RPNM0GGInf1rc1EzZi41ZwYLBakTxUKTnxGZhjHkSjg,19644
|
3
|
-
gnetclisdk/exceptions.py,sha256=FVaj3X5163yPFsglfsw3MaZ9r3OE_Cih9N7EL1NTGgo,3791
|
4
|
-
gnetclisdk/interceptors.py,sha256=apj3l4lnR2ZcsA49odptrBC0kTDmP6Mp0EzYkeEJz9Y,7010
|
5
|
-
gnetclisdk/proto/server_pb2.py,sha256=OQsW6Oh38zf-h1ctcNyeOyxjl5wzWm_D9SRT2Usx5q4,8083
|
6
|
-
gnetclisdk/proto/server_pb2.pyi,sha256=th-HnFVkR1ZEY-XmFmk8VMfDj_4uFAoSAXH61mSlVec,8295
|
7
|
-
gnetclisdk/proto/server_pb2_grpc.py,sha256=H_CmevWcjvGTvp4TmzEV-TJRPq2SsQ6UgoCDc-hosyo,12805
|
8
|
-
gnetclisdk-1.0.88.dist-info/METADATA,sha256=ymrZTW93UvTISK4bPiCvW9BRFmOh4o5-1EsGg4K-WhA,1793
|
9
|
-
gnetclisdk-1.0.88.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
10
|
-
gnetclisdk-1.0.88.dist-info/top_level.txt,sha256=MNjS8LEt6d2rZ-dUbV2cnqkuTMu3EqEL2eiSvUZuUlA,11
|
11
|
-
gnetclisdk-1.0.88.dist-info/RECORD,,
|
File without changes
|