55
66from ... import errors
77from ...client import AuthenticatedClient , Client
8- from ...models .bleve_index_v2_config import BleveIndexV2Config
9- from ...models .embedding_index_config import EmbeddingIndexConfig
8+ from ...models .embeddings_index_config import EmbeddingsIndexConfig
109from ...models .error import Error
11- from ...models .graph_index_v0_config import GraphIndexV0Config
10+ from ...models .full_text_index_config import FullTextIndexConfig
11+ from ...models .graph_index_config import GraphIndexConfig
1212from ...types import Response
1313
1414
1515def _get_kwargs (
1616 table_name : str ,
1717 index_name : str ,
1818 * ,
19- body : Union ["BleveIndexV2Config " , "EmbeddingIndexConfig " , "GraphIndexV0Config " ],
19+ body : Union ["EmbeddingsIndexConfig " , "FullTextIndexConfig " , "GraphIndexConfig " ],
2020) -> dict [str , Any ]:
2121 headers : dict [str , Any ] = {}
2222
@@ -26,9 +26,9 @@ def _get_kwargs(
2626 }
2727
2828 _kwargs ["json" ]: dict [str , Any ]
29- if isinstance (body , BleveIndexV2Config ):
29+ if isinstance (body , FullTextIndexConfig ):
3030 _kwargs ["json" ] = body .to_dict ()
31- elif isinstance (body , EmbeddingIndexConfig ):
31+ elif isinstance (body , EmbeddingsIndexConfig ):
3232 _kwargs ["json" ] = body .to_dict ()
3333 else :
3434 _kwargs ["json" ] = body .to_dict ()
@@ -78,14 +78,14 @@ def sync_detailed(
7878 index_name : str ,
7979 * ,
8080 client : AuthenticatedClient ,
81- body : Union ["BleveIndexV2Config " , "EmbeddingIndexConfig " , "GraphIndexV0Config " ],
81+ body : Union ["EmbeddingsIndexConfig " , "FullTextIndexConfig " , "GraphIndexConfig " ],
8282) -> Response [Union [Any , Error ]]:
8383 """Add an index to a table
8484
8585 Args:
8686 table_name (str):
8787 index_name (str):
88- body (Union['BleveIndexV2Config ', 'EmbeddingIndexConfig ', 'GraphIndexV0Config ']):
88+ body (Union['EmbeddingsIndexConfig ', 'FullTextIndexConfig ', 'GraphIndexConfig ']):
8989 Configuration for an index
9090
9191 Raises:
@@ -114,14 +114,14 @@ def sync(
114114 index_name : str ,
115115 * ,
116116 client : AuthenticatedClient ,
117- body : Union ["BleveIndexV2Config " , "EmbeddingIndexConfig " , "GraphIndexV0Config " ],
117+ body : Union ["EmbeddingsIndexConfig " , "FullTextIndexConfig " , "GraphIndexConfig " ],
118118) -> Optional [Union [Any , Error ]]:
119119 """Add an index to a table
120120
121121 Args:
122122 table_name (str):
123123 index_name (str):
124- body (Union['BleveIndexV2Config ', 'EmbeddingIndexConfig ', 'GraphIndexV0Config ']):
124+ body (Union['EmbeddingsIndexConfig ', 'FullTextIndexConfig ', 'GraphIndexConfig ']):
125125 Configuration for an index
126126
127127 Raises:
@@ -145,14 +145,14 @@ async def asyncio_detailed(
145145 index_name : str ,
146146 * ,
147147 client : AuthenticatedClient ,
148- body : Union ["BleveIndexV2Config " , "EmbeddingIndexConfig " , "GraphIndexV0Config " ],
148+ body : Union ["EmbeddingsIndexConfig " , "FullTextIndexConfig " , "GraphIndexConfig " ],
149149) -> Response [Union [Any , Error ]]:
150150 """Add an index to a table
151151
152152 Args:
153153 table_name (str):
154154 index_name (str):
155- body (Union['BleveIndexV2Config ', 'EmbeddingIndexConfig ', 'GraphIndexV0Config ']):
155+ body (Union['EmbeddingsIndexConfig ', 'FullTextIndexConfig ', 'GraphIndexConfig ']):
156156 Configuration for an index
157157
158158 Raises:
@@ -179,14 +179,14 @@ async def asyncio(
179179 index_name : str ,
180180 * ,
181181 client : AuthenticatedClient ,
182- body : Union ["BleveIndexV2Config " , "EmbeddingIndexConfig " , "GraphIndexV0Config " ],
182+ body : Union ["EmbeddingsIndexConfig " , "FullTextIndexConfig " , "GraphIndexConfig " ],
183183) -> Optional [Union [Any , Error ]]:
184184 """Add an index to a table
185185
186186 Args:
187187 table_name (str):
188188 index_name (str):
189- body (Union['BleveIndexV2Config ', 'EmbeddingIndexConfig ', 'GraphIndexV0Config ']):
189+ body (Union['EmbeddingsIndexConfig ', 'FullTextIndexConfig ', 'GraphIndexConfig ']):
190190 Configuration for an index
191191
192192 Raises:
0 commit comments