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 1212 ydb_topic_v1_pb2_grpc ,
1313 )
1414
15- from ._grpc .v4 .draft import (
16- ydb_dynamic_config_v1_pb2_grpc ,
17- )
18-
1915 from ._grpc .v4 .protos import (
2016 ydb_status_codes_pb2 ,
2117 ydb_discovery_pb2 ,
2622 ydb_common_pb2 ,
2723 )
2824
29- from ._grpc .v4 .draft .protos import (
30- ydb_dynamic_config_pb2 ,
31- )
3225else :
3326 from ._grpc .common import (
3427 ydb_cms_v1_pb2_grpc ,
3932 ydb_topic_v1_pb2_grpc ,
4033 )
4134
42- from ._grpc .common .draft import (
43- ydb_dynamic_config_v1_pb2_grpc ,
44- )
45-
4635 from ._grpc .common .protos import (
4736 ydb_status_codes_pb2 ,
4837 ydb_discovery_pb2 ,
5342 ydb_common_pb2 ,
5443 )
5544
56- from ._grpc .common .draft .protos import (
57- ydb_dynamic_config_pb2 ,
58- )
59-
6045
6146StatusIds = ydb_status_codes_pb2 .StatusIds
6247FeatureFlag = ydb_common_pb2 .FeatureFlag
@@ -127,12 +112,3 @@ class TopicService(object):
127112 DropTopic = "DropTopic"
128113 StreamRead = "StreamRead"
129114 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 11import abc
22from abc import abstractmethod
3- from .. import issues , operation , _apis
3+ from . import _apis
4+ from .. import issues , operation
45
56
67class IDynamicConfigClient (abc .ABC ):
You can’t perform that action at this time.
0 commit comments