@@ -327,6 +327,20 @@ def to_pb(self):
327327 return self ._pb
328328
329329
330+ class RenameIndexItem :
331+ def __init__ (self , source_name : str , destination_name : str , replace_destination : bool = False ):
332+ self ._source_name = source_name
333+ self ._destination_name = destination_name
334+ self ._replace_destination = replace_destination
335+
336+ def to_pb (self ):
337+ return _apis .ydb_table .RenameIndexItem (
338+ source_name = self ._source_name ,
339+ destination_name = self ._destination_name ,
340+ replace_destination = self ._replace_destination ,
341+ )
342+
343+
330344class ReplicationPolicy (object ):
331345 def __init__ (self ):
332346 self ._pb = _apis .ydb_table .ReplicationPolicy ()
@@ -1857,6 +1871,7 @@ def alter_table(
18571871 alter_partitioning_settings = None ,
18581872 set_key_bloom_filter = None ,
18591873 set_read_replicas_settings = None ,
1874+ rename_indexes = None ,
18601875 ):
18611876 return self ._driver (
18621877 _session_impl .alter_table_request_factory (
@@ -1876,6 +1891,7 @@ def alter_table(
18761891 alter_partitioning_settings ,
18771892 set_key_bloom_filter ,
18781893 set_read_replicas_settings ,
1894+ rename_indexes ,
18791895 ),
18801896 _apis .TableService .Stub ,
18811897 _apis .TableService .AlterTable ,
@@ -2088,6 +2104,7 @@ def async_alter_table(
20882104 alter_partitioning_settings = None ,
20892105 set_key_bloom_filter = None ,
20902106 set_read_replicas_settings = None ,
2107+ rename_indexes = None ,
20912108 ):
20922109 return self ._driver .future (
20932110 _session_impl .alter_table_request_factory (
@@ -2107,6 +2124,7 @@ def async_alter_table(
21072124 alter_partitioning_settings ,
21082125 set_key_bloom_filter ,
21092126 set_read_replicas_settings ,
2127+ rename_indexes ,
21102128 ),
21112129 _apis .TableService .Stub ,
21122130 _apis .TableService .AlterTable ,
0 commit comments