@@ -401,6 +401,10 @@ class ServerInfoRequest(GRPCTransformable):
401
401
@dataclass
402
402
class ServerInfoResponse (GRPCTransformable ):
403
403
version : str = None
404
+ startedAt : int = None
405
+ numTransactions : int = None
406
+ numDatabases : int = None
407
+ databasesDiskSize : int = None
404
408
405
409
406
410
@dataclass
@@ -737,28 +741,74 @@ class DatabaseNullableSettings(GRPCTransformable):
737
741
syncFrequency : NullableMilliseconds = None
738
742
writeBufferSize : NullableUint32 = None
739
743
ahtSettings : AHTNullableSettings = None
744
+ maxActiveTransactions : NullableUint32 = None
745
+ mvccReadSetLimit : NullableUint32 = None
746
+ vLogCacheSize : NullableUint32 = None
747
+ truncationSettings : TruncationNullableSettings = None
748
+ embeddedValues : NullableBool = None
749
+ preallocFiles : NullableBool = None
740
750
741
751
def _getHumanDataClass (self ):
742
752
return grpcHumanizator (self , DatabaseSettingsV2 )
743
753
744
754
755
+ @dataclass
756
+ class TruncationNullableSettings (GRPCTransformable ):
757
+ retentionPeriod : NullableMilliseconds = None
758
+ truncationFrequency : NullableMilliseconds = None
759
+
760
+ def _getHumanDataClass (self ):
761
+ return grpcHumanizator (self , TruncationSettings )
762
+
763
+
745
764
@dataclass
746
765
class ReplicationSettings (GRPCTransformable ):
747
766
replica : Optional [bool ] = None
748
- masterDatabase : Optional [str ] = None
749
- masterAddress : Optional [str ] = None
750
- masterPort : Optional [int ] = None
751
- followerUsername : Optional [str ] = None
752
- followerPassword : Optional [str ] = None
767
+ primaryDatabase : Optional [str ] = None
768
+ primaryHost : Optional [str ] = None
769
+ primaryPort : Optional [int ] = None
770
+ primaryUsername : Optional [str ] = None
771
+ primaryPassword : Optional [str ] = None
772
+ syncReplication : Optional [bool ] = None
773
+ syncAcks : Optional [int ] = None
774
+ prefetchTxBufferSize : Optional [int ] = None
775
+ replicationCommitConcurrency : Optional [int ] = None
776
+ allowTxDiscarding : Optional [bool ] = None
777
+ skipIntegrityCheck : Optional [bool ] = None
778
+ waitForIndexing : Optional [bool ] = None
753
779
754
780
def _getGRPC (self ):
755
781
return schema .ReplicationNullableSettings (
756
782
replica = NullableBool (self .replica )._getGRPC (),
757
- masterDatabase = NullableString (self .masterDatabase )._getGRPC (),
758
- masterAddress = NullableString (self .masterAddress )._getGRPC (),
759
- masterPort = NullableUint32 (self .masterPort )._getGRPC (),
760
- followerUsername = NullableString (self .followerUsername )._getGRPC (),
761
- followerPassword = NullableString (self .followerPassword )._getGRPC ()
783
+ primaryDatabase = NullableString (self .primaryDatabase )._getGRPC (),
784
+ primaryHost = NullableString (self .primaryHost )._getGRPC (),
785
+ primaryPort = NullableUint32 (self .primaryPort )._getGRPC (),
786
+ primaryUsername = NullableString (self .primaryUsername )._getGRPC (),
787
+ primaryPassword = NullableString (self .primaryUsername )._getGRPC (),
788
+ syncReplication = NullableBool (self .syncReplication )._getGRPC (),
789
+ syncAcks = NullableUint32 (self .syncAcks )._getGRPC (),
790
+ prefetchTxBufferSize = NullableUint32 (
791
+ self .prefetchTxBufferSize )._getGRPC (),
792
+ replicationCommitConcurrency = NullableUint32 (
793
+ self .replicationCommitConcurrency )._getGRPC (),
794
+ allowTxDiscarding = NullableBool (self .allowTxDiscarding )._getGRPC (),
795
+ skipIntegrityCheck = NullableBool (
796
+ self .skipIntegrityCheck )._getGRPC (),
797
+ waitForIndexing = NullableBool (self .waitForIndexing )._getGRPC (),
798
+ )
799
+
800
+
801
+ @dataclass
802
+ class TruncationSettings (GRPCTransformable ):
803
+ retentionPeriod : Optional [int ]
804
+ truncationFrequency : Optional [int ]
805
+
806
+ def _getGRPC (self ):
807
+ return schema .TruncationNullableSettings (
808
+ retentionPeriod = NullableMilliseconds (
809
+ self .retentionPeriod )._getGRPC (),
810
+ truncationFrequency = NullableMilliseconds (
811
+ self .truncationFrequency )._getGRPC (),
762
812
)
763
813
764
814
@@ -777,6 +827,8 @@ class IndexSettings(GRPCTransformable):
777
827
commitLogMaxOpenedFiles : Optional [int ] = None
778
828
flushBufferSize : Optional [int ] = None
779
829
cleanupPercentage : Optional [float ] = None
830
+ maxBulkSize : Optional [int ] = None
831
+ bulkPreparationTimeout : Optional [int ] = None
780
832
781
833
def _getGRPC (self ):
782
834
return schema .IndexNullableSettings (
@@ -798,7 +850,10 @@ def _getGRPC(self):
798
850
commitLogMaxOpenedFiles = NullableUint32 (
799
851
self .commitLogMaxOpenedFiles )._getGRPC (),
800
852
flushBufferSize = NullableUint32 (self .flushBufferSize )._getGRPC (),
801
- cleanupPercentage = NullableFloat (self .cleanupPercentage )._getGRPC ()
853
+ cleanupPercentage = NullableFloat (self .cleanupPercentage )._getGRPC (),
854
+ maxBulkSize = NullableUint32 (self .maxBulkSize )._getGRPC (),
855
+ bulkPreparationTimeout = NullableMilliseconds (
856
+ self .bulkPreparationTimeout )._getGRPC (),
802
857
)
803
858
804
859
@@ -817,36 +872,48 @@ def _getGRPC(self):
817
872
@dataclass
818
873
class DatabaseSettingsV2 (GRPCTransformable ):
819
874
replicationSettings : ReplicationSettings = None
820
- fileSize : Optional [int ] = None
821
- maxKeyLen : Optional [int ] = None
822
- maxValueLen : Optional [int ] = None
823
- maxTxEntries : Optional [int ] = None
824
- excludeCommitTime : Optional [bool ] = None
875
+ fileSize : Optional [int ] = None
876
+ maxKeyLen : Optional [int ] = None
877
+ maxValueLen : Optional [int ] = None
878
+ maxTxEntries : Optional [int ] = None
879
+ excludeCommitTime : Optional [bool ] = None
825
880
maxConcurrency : Optional [int ] = None
826
881
maxIOConcurrency : Optional [int ] = None
827
882
txLogCacheSize : Optional [int ] = None
828
- vLogMaxOpenedFiles : Optional [int ] = None
829
- txLogMaxOpenedFiles : Optional [int ] = None
830
- commitLogMaxOpenedFiles : Optional [int ] = None
831
- indexSettings : IndexSettings = None
883
+ vLogMaxOpenedFiles : Optional [int ] = None
884
+ txLogMaxOpenedFiles : Optional [int ] = None
885
+ commitLogMaxOpenedFiles : Optional [int ] = None
886
+ indexSettings : IndexSettings = None
832
887
writeTxHeaderVersion : Optional [int ] = None
833
- autoload : Optional [bool ] = None
834
- readTxPoolSize : Optional [int ] = None
888
+ autoload : Optional [bool ] = None
889
+ readTxPoolSize : Optional [int ] = None
835
890
syncFrequency : NullableMilliseconds = None
836
891
writeBufferSize : Optional [int ] = None
837
892
ahtSettings : AHTSettings = None
893
+ maxActiveTransactions : Optional [int ] = None
894
+ mvccReadSetLimit : Optional [int ] = None
895
+ vLogCacheSize : Optional [int ] = None
896
+ truncationSettings : TruncationSettings = None
897
+ embeddedValues : Optional [bool ] = None
898
+ preallocFiles : Optional [bool ] = None
838
899
839
900
def _getGRPC (self ):
840
901
indexSettings = None
841
902
if self .indexSettings != None :
842
903
indexSettings = self .indexSettings ._getGRPC ()
904
+
843
905
replicationSettings = None
844
906
if self .replicationSettings != None :
845
907
replicationSettings = self .replicationSettings ._getGRPC ()
908
+
846
909
ahtSettings = None
847
910
if self .ahtSettings != None :
848
911
ahtSettings = self .ahtSettings ._getGRPC ()
849
912
913
+ truncSettings = None
914
+ if self .truncationSettings != None :
915
+ truncSettings = self .truncationSettings ._getGRPC ()
916
+
850
917
return schema .DatabaseNullableSettings (
851
918
replicationSettings = replicationSettings ,
852
919
fileSize = NullableUint32 (self .fileSize )._getGRPC (),
@@ -870,18 +937,32 @@ def _getGRPC(self):
870
937
readTxPoolSize = NullableUint32 (self .readTxPoolSize )._getGRPC (),
871
938
syncFrequency = NullableMilliseconds (self .syncFrequency )._getGRPC (),
872
939
writeBufferSize = NullableUint32 (self .writeBufferSize )._getGRPC (),
873
- ahtSettings = ahtSettings
940
+ ahtSettings = ahtSettings ,
941
+ maxActiveTransactions = NullableUint32 (
942
+ self .maxActiveTransactions )._getGRPC (),
943
+ mvccReadSetLimit = NullableUint32 (self .mvccReadSetLimit )._getGRPC (),
944
+ vLogCacheSize = NullableUint32 (self .vLogCacheSize )._getGRPC (),
945
+ truncationSettings = truncSettings ,
946
+ embeddedValues = NullableBool (self .embeddedValues )._getGRPC (),
947
+ preallocFiles = NullableBool (self .preallocFiles )._getGRPC (),
874
948
)
875
949
876
950
877
951
@dataclass
878
952
class ReplicationNullableSettings (GRPCTransformable ):
879
953
replica : NullableBool = None
880
- masterDatabase : NullableString = None
881
- masterAddress : NullableString = None
882
- masterPort : NullableUint32 = None
883
- followerUsername : NullableString = None
884
- followerPassword : NullableString = None
954
+ primaryDatabase : NullableString = None
955
+ primaryHost : NullableString = None
956
+ primaryPort : NullableUint32 = None
957
+ primaryUsername : NullableString = None
958
+ primaryPassword : NullableString = None
959
+ syncReplication : NullableBool = None
960
+ syncAcks : NullableUint32 = None
961
+ prefetchTxBufferSize : NullableUint32 = None ,
962
+ replicationCommitConcurrency : NullableUint32 = None ,
963
+ allowTxDiscarding : NullableBool = None ,
964
+ skipIntegrityCheck : NullableBool = None ,
965
+ waitForIndexing : NullableBool = None ,
885
966
886
967
def _getHumanDataClass (self ):
887
968
return grpcHumanizator (self , ReplicationSettings )
@@ -902,6 +983,8 @@ class IndexNullableSettings(GRPCTransformable):
902
983
commitLogMaxOpenedFiles : NullableUint32 = None
903
984
flushBufferSize : NullableUint32 = None
904
985
cleanupPercentage : NullableFloat = None
986
+ maxBulkSize : NullableUint32 = None
987
+ bulkPreparationTimeout : NullableMilliseconds = None
905
988
906
989
def _getHumanDataClass (self ):
907
990
return grpcHumanizator (self , IndexSettings )
@@ -1035,7 +1118,7 @@ class DatabaseListRequestV2(GRPCTransformable):
1035
1118
1036
1119
@dataclass
1037
1120
class DatabaseListResponseV2 (GRPCTransformable ):
1038
- databases : List [Union [DatabaseWithSettings , DatabaseWithSettingsV2 ]] = None
1121
+ databases : List [Union [DatabaseWithSettings , DatabaseInfo ]] = None
1039
1122
1040
1123
def _getHumanDataClass (self ):
1041
1124
return DatabaseListResponseV2 (databases = [toConvert ._getHumanDataClass () for toConvert in self .databases ])
@@ -1048,14 +1131,16 @@ class DatabaseWithSettings(GRPCTransformable):
1048
1131
loaded : bool = None
1049
1132
1050
1133
def _getHumanDataClass (self ):
1051
- return grpcHumanizator (self , DatabaseWithSettingsV2 )
1134
+ return grpcHumanizator (self , DatabaseInfo )
1052
1135
1053
1136
1054
1137
@dataclass
1055
- class DatabaseWithSettingsV2 (GRPCTransformable ):
1138
+ class DatabaseInfo (GRPCTransformable ):
1056
1139
name : str = None
1057
1140
settings : DatabaseSettingsV2 = None
1058
1141
loaded : bool = None
1142
+ diskSize : int = None
1143
+ numTransactions : int = None
1059
1144
1060
1145
1061
1146
@dataclass
0 commit comments