File tree Expand file tree Collapse file tree 3 files changed +31
-25
lines changed Expand file tree Collapse file tree 3 files changed +31
-25
lines changed Original file line number Diff line number Diff line change 12
12
ydb_topic_v1_pb2_grpc ,
13
13
)
14
14
15
- from ._grpc .v4 .draft import (
16
- ydb_dynamic_config_v1_pb2_grpc ,
17
- )
18
-
19
15
from ._grpc .v4 .protos import (
20
16
ydb_status_codes_pb2 ,
21
17
ydb_discovery_pb2 ,
26
22
ydb_common_pb2 ,
27
23
)
28
24
29
- from ._grpc .v4 .draft .protos import (
30
- ydb_dynamic_config_pb2 ,
31
- )
32
25
else :
33
26
from ._grpc .common import (
34
27
ydb_cms_v1_pb2_grpc ,
39
32
ydb_topic_v1_pb2_grpc ,
40
33
)
41
34
42
- from ._grpc .common .draft import (
43
- ydb_dynamic_config_v1_pb2_grpc ,
44
- )
45
-
46
35
from ._grpc .common .protos import (
47
36
ydb_status_codes_pb2 ,
48
37
ydb_discovery_pb2 ,
53
42
ydb_common_pb2 ,
54
43
)
55
44
56
- from ._grpc .common .draft .protos import (
57
- ydb_dynamic_config_pb2 ,
58
- )
59
-
60
45
61
46
StatusIds = ydb_status_codes_pb2 .StatusIds
62
47
FeatureFlag = ydb_common_pb2 .FeatureFlag
@@ -127,12 +112,3 @@ class TopicService(object):
127
112
DropTopic = "DropTopic"
128
113
StreamRead = "StreamRead"
129
114
StreamWrite = "StreamWrite"
130
-
131
-
132
- class DynamicConfigService (object ):
133
- Stub = ydb_dynamic_config_v1_pb2_grpc .DynamicConfigServiceStub
134
-
135
- ReplaceConfig = "ReplaceConfig"
136
- SetConfig = "SetConfig"
137
- GetConfig = "GetConfig"
138
- GetNodeLabels = "GetNodeLabels"
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ import typing
3
+
4
+ # Workaround for good IDE and universal for runtime
5
+ if typing .TYPE_CHECKING :
6
+ from .._grpc .v4 .draft import (
7
+ ydb_dynamic_config_v1_pb2_grpc ,
8
+ )
9
+
10
+ from .._grpc .v4 .draft .protos import (
11
+ ydb_dynamic_config_pb2 ,
12
+ )
13
+ else :
14
+ from .._grpc .common .draft import (
15
+ ydb_dynamic_config_v1_pb2_grpc ,
16
+ )
17
+
18
+ from .._grpc .common .draft .protos import (
19
+ ydb_dynamic_config_pb2 ,
20
+ )
21
+
22
+
23
+ class DynamicConfigService (object ):
24
+ Stub = ydb_dynamic_config_v1_pb2_grpc .DynamicConfigServiceStub
25
+
26
+ ReplaceConfig = "ReplaceConfig"
27
+ SetConfig = "SetConfig"
28
+ GetConfig = "GetConfig"
29
+ GetNodeLabels = "GetNodeLabels"
Original file line number Diff line number Diff line change 1
1
import abc
2
2
from abc import abstractmethod
3
- from .. import issues , operation , _apis
3
+ from . import _apis
4
+ from .. import issues , operation
4
5
5
6
6
7
class IDynamicConfigClient (abc .ABC ):
You can’t perform that action at this time.
0 commit comments