@@ -838,6 +838,7 @@ async def upsert(
838838 shard_key_selector : types .ShardKeySelector | None = None ,
839839 update_filter : types .Filter | None = None ,
840840 update_mode : types .UpdateMode | None = None ,
841+ timeout : int | None = None ,
841842 ** kwargs : Any ,
842843 ) -> types .UpdateResult :
843844 """
@@ -865,6 +866,9 @@ async def upsert(
865866
866867 update_filter: If specified, only points that match this filter will be updated, others will be inserted
867868 update_mode: Allows to alter default upsert behavior, instead of inserting a point if it does not exist, or updating it if it does, can be set to insert-only or update-only strategies.
869+ timeout:
870+ Wait for operation commit timeout in seconds.
871+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
868872
869873 Returns:
870874 Operation Result(UpdateResult)
@@ -904,6 +908,7 @@ async def upsert(
904908 shard_key_selector = shard_key_selector ,
905909 update_filter = update_filter ,
906910 update_mode = update_mode ,
911+ timeout = timeout ,
907912 ** kwargs ,
908913 )
909914
@@ -915,6 +920,7 @@ async def update_vectors(
915920 ordering : types .WriteOrdering | None = None ,
916921 shard_key_selector : types .ShardKeySelector | None = None ,
917922 update_filter : types .Filter | None = None ,
923+ timeout : int | None = None ,
918924 ** kwargs : Any ,
919925 ) -> types .UpdateResult :
920926 """Update specified vectors in the collection. Keeps payload and unspecified vectors unchanged.
@@ -946,6 +952,10 @@ async def update_vectors(
946952 update_filter:
947953 If specified, only points that match this filter will be updated
948954
955+ timeout:
956+ Wait for operation commit timeout in seconds.
957+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
958+
949959 Returns:
950960 Operation Result(UpdateResult)
951961 """
@@ -963,6 +973,7 @@ async def update_vectors(
963973 ordering = ordering ,
964974 shard_key_selector = shard_key_selector ,
965975 update_filter = update_filter ,
976+ timeout = timeout ,
966977 )
967978
968979 async def delete_vectors (
@@ -973,6 +984,7 @@ async def delete_vectors(
973984 wait : bool = True ,
974985 ordering : types .WriteOrdering | None = None ,
975986 shard_key_selector : types .ShardKeySelector | None = None ,
987+ timeout : int | None = None ,
976988 ** kwargs : Any ,
977989 ) -> types .UpdateResult :
978990 """Delete specified vector from the collection. Does not affect payload.
@@ -1001,6 +1013,10 @@ async def delete_vectors(
10011013 If multiple shard_keys are provided, the update will be written to each of them.
10021014 Only works for collections with `custom` sharding method.
10031015
1016+ timeout:
1017+ Wait for operation commit timeout in seconds.
1018+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1019+
10041020 Returns:
10051021 Operation result
10061022 """
@@ -1012,6 +1028,7 @@ async def delete_vectors(
10121028 wait = wait ,
10131029 ordering = ordering ,
10141030 shard_key_selector = shard_key_selector ,
1031+ timeout = timeout ,
10151032 )
10161033
10171034 async def retrieve (
@@ -1078,6 +1095,7 @@ async def delete(
10781095 wait : bool = True ,
10791096 ordering : types .WriteOrdering | None = None ,
10801097 shard_key_selector : types .ShardKeySelector | None = None ,
1098+ timeout : int | None = None ,
10811099 ** kwargs : Any ,
10821100 ) -> types .UpdateResult :
10831101 """Deletes selected points from collection
@@ -1104,6 +1122,10 @@ async def delete(
11041122 If multiple shard_keys are provided, the update will be written to each of them.
11051123 Only works for collections with `custom` sharding method.
11061124
1125+ timeout:
1126+ Wait for operation commit timeout in seconds.
1127+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1128+
11071129 Returns:
11081130 Operation result
11091131 """
@@ -1114,6 +1136,7 @@ async def delete(
11141136 wait = wait ,
11151137 ordering = ordering ,
11161138 shard_key_selector = shard_key_selector ,
1139+ timeout = timeout ,
11171140 ** kwargs ,
11181141 )
11191142
@@ -1126,6 +1149,7 @@ async def set_payload(
11261149 wait : bool = True ,
11271150 ordering : types .WriteOrdering | None = None ,
11281151 shard_key_selector : types .ShardKeySelector | None = None ,
1152+ timeout : int | None = None ,
11291153 ** kwargs : Any ,
11301154 ) -> types .UpdateResult :
11311155 """
@@ -1196,6 +1220,10 @@ async def set_payload(
11961220 }
11971221 )
11981222
1223+ timeout:
1224+ Wait for operation commit timeout in seconds.
1225+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1226+
11991227 Returns:
12001228 Operation result.
12011229 """
@@ -1208,6 +1236,7 @@ async def set_payload(
12081236 ordering = ordering ,
12091237 shard_key_selector = shard_key_selector ,
12101238 key = key ,
1239+ timeout = timeout ,
12111240 ** kwargs ,
12121241 )
12131242
@@ -1219,6 +1248,7 @@ async def overwrite_payload(
12191248 wait : bool = True ,
12201249 ordering : types .WriteOrdering | None = None ,
12211250 shard_key_selector : types .ShardKeySelector | None = None ,
1251+ timeout : int | None = None ,
12221252 ** kwargs : Any ,
12231253 ) -> types .UpdateResult :
12241254 """Overwrites payload of the specified points
@@ -1263,6 +1293,10 @@ async def overwrite_payload(
12631293 If multiple shard_keys are provided, the update will be written to each of them.
12641294 Only works for collections with `custom` sharding method.
12651295
1296+ timeout:
1297+ Wait for operation commit timeout in seconds.
1298+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1299+
12661300 Returns:
12671301 Operation result
12681302 """
@@ -1274,6 +1308,7 @@ async def overwrite_payload(
12741308 wait = wait ,
12751309 ordering = ordering ,
12761310 shard_key_selector = shard_key_selector ,
1311+ timeout = timeout ,
12771312 ** kwargs ,
12781313 )
12791314
@@ -1285,6 +1320,7 @@ async def delete_payload(
12851320 wait : bool = True ,
12861321 ordering : types .WriteOrdering | None = None ,
12871322 shard_key_selector : types .ShardKeySelector | None = None ,
1323+ timeout : int | None = None ,
12881324 ** kwargs : Any ,
12891325 ) -> types .UpdateResult :
12901326 """Remove values from point's payload
@@ -1311,6 +1347,10 @@ async def delete_payload(
13111347 If multiple shard_keys are provided, the update will be written to each of them.
13121348 Only works for collections with `custom` sharding method.
13131349
1350+ timeout:
1351+ Wait for operation commit timeout in seconds.
1352+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1353+
13141354 Returns:
13151355 Operation result
13161356 """
@@ -1322,6 +1362,7 @@ async def delete_payload(
13221362 wait = wait ,
13231363 ordering = ordering ,
13241364 shard_key_selector = shard_key_selector ,
1365+ timeout = timeout ,
13251366 ** kwargs ,
13261367 )
13271368
@@ -1332,6 +1373,7 @@ async def clear_payload(
13321373 wait : bool = True ,
13331374 ordering : types .WriteOrdering | None = None ,
13341375 shard_key_selector : types .ShardKeySelector | None = None ,
1376+ timeout : int | None = None ,
13351377 ** kwargs : Any ,
13361378 ) -> types .UpdateResult :
13371379 """Delete all payload for selected points
@@ -1355,6 +1397,10 @@ async def clear_payload(
13551397 If multiple shard_keys are provided, the update will be written to each of them.
13561398 Only works for collections with `custom` sharding method.
13571399
1400+ timeout:
1401+ Wait for operation commit timeout in seconds.
1402+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1403+
13581404 Returns:
13591405 Operation result
13601406 """
@@ -1365,6 +1411,7 @@ async def clear_payload(
13651411 wait = wait ,
13661412 ordering = ordering ,
13671413 shard_key_selector = shard_key_selector ,
1414+ timeout = timeout ,
13681415 ** kwargs ,
13691416 )
13701417
@@ -1374,6 +1421,7 @@ async def batch_update_points(
13741421 update_operations : Sequence [types .UpdateOperation ],
13751422 wait : bool = True ,
13761423 ordering : types .WriteOrdering | None = None ,
1424+ timeout : int | None = None ,
13771425 ** kwargs : Any ,
13781426 ) -> list [types .UpdateResult ]:
13791427 """Batch update points in the collection.
@@ -1390,6 +1438,10 @@ async def batch_update_points(
13901438 - `medium` - write operations go through dynamically selected leader, may be inconsistent for a short period of time in case of leader change
13911439 - `strong` - Write operations go through the permanent leader, consistent, but may be unavailable if leader is down
13921440
1441+ timeout:
1442+ Wait for operation commit timeout in seconds.
1443+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1444+
13931445 Returns:
13941446 Operation results
13951447 """
@@ -1405,6 +1457,7 @@ async def batch_update_points(
14051457 update_operations = update_operations ,
14061458 wait = wait ,
14071459 ordering = ordering ,
1460+ timeout = timeout ,
14081461 ** kwargs ,
14091462 )
14101463
@@ -1895,6 +1948,7 @@ async def create_payload_index(
18951948 field_type : types .PayloadSchemaType | None = None ,
18961949 wait : bool = True ,
18971950 ordering : types .WriteOrdering | None = None ,
1951+ timeout : int | None = None ,
18981952 ** kwargs : Any ,
18991953 ) -> types .UpdateResult :
19001954 """Creates index for a given payload field.
@@ -1915,6 +1969,10 @@ async def create_payload_index(
19151969 - `medium` - write operations go through dynamically selected leader, may be inconsistent for a short period of time in case of leader change
19161970 - `strong` - Write operations go through the permanent leader, consistent, but may be unavailable if leader is down
19171971
1972+ timeout:
1973+ Wait for operation commit timeout in seconds.
1974+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
1975+
19181976 Returns:
19191977 Operation Result
19201978 """
@@ -1926,6 +1984,7 @@ async def create_payload_index(
19261984 field_type = field_type ,
19271985 wait = wait ,
19281986 ordering = ordering ,
1987+ timeout = timeout ,
19291988 ** kwargs ,
19301989 )
19311990
@@ -1935,6 +1994,7 @@ async def delete_payload_index(
19351994 field_name : str ,
19361995 wait : bool = True ,
19371996 ordering : types .WriteOrdering | None = None ,
1997+ timeout : int | None = None ,
19381998 ** kwargs : Any ,
19391999 ) -> types .UpdateResult :
19402000 """Removes index for a given payload field.
@@ -1952,6 +2012,10 @@ async def delete_payload_index(
19522012 - `medium` - write operations go through dynamically selected leader, may be inconsistent for a short period of time in case of leader change
19532013 - `strong` - Write operations go through the permanent leader, consistent, but may be unavailable if leader is down
19542014
2015+ timeout:
2016+ Wait for operation commit timeout in seconds.
2017+ If timeout is reached, server will return `WAIT_TIMEOUT` status, meaning that operation was accepted but not yet applied
2018+
19552019 Returns:
19562020 Operation Result
19572021 """
@@ -1961,6 +2025,7 @@ async def delete_payload_index(
19612025 field_name = field_name ,
19622026 wait = wait ,
19632027 ordering = ordering ,
2028+ timeout = timeout ,
19642029 ** kwargs ,
19652030 )
19662031
0 commit comments