@@ -327,6 +327,20 @@ def to_pb(self):
327
327
return self ._pb
328
328
329
329
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
+
330
344
class ReplicationPolicy (object ):
331
345
def __init__ (self ):
332
346
self ._pb = _apis .ydb_table .ReplicationPolicy ()
@@ -1857,6 +1871,7 @@ def alter_table(
1857
1871
alter_partitioning_settings = None ,
1858
1872
set_key_bloom_filter = None ,
1859
1873
set_read_replicas_settings = None ,
1874
+ rename_indexes = None ,
1860
1875
):
1861
1876
return self ._driver (
1862
1877
_session_impl .alter_table_request_factory (
@@ -1876,6 +1891,7 @@ def alter_table(
1876
1891
alter_partitioning_settings ,
1877
1892
set_key_bloom_filter ,
1878
1893
set_read_replicas_settings ,
1894
+ rename_indexes ,
1879
1895
),
1880
1896
_apis .TableService .Stub ,
1881
1897
_apis .TableService .AlterTable ,
@@ -2088,6 +2104,7 @@ def async_alter_table(
2088
2104
alter_partitioning_settings = None ,
2089
2105
set_key_bloom_filter = None ,
2090
2106
set_read_replicas_settings = None ,
2107
+ rename_indexes = None ,
2091
2108
):
2092
2109
return self ._driver .future (
2093
2110
_session_impl .alter_table_request_factory (
@@ -2107,6 +2124,7 @@ def async_alter_table(
2107
2124
alter_partitioning_settings ,
2108
2125
set_key_bloom_filter ,
2109
2126
set_read_replicas_settings ,
2127
+ rename_indexes ,
2110
2128
),
2111
2129
_apis .TableService .Stub ,
2112
2130
_apis .TableService .AlterTable ,
0 commit comments