7575from .snapshot import SnapshotClient
7676from .sql import SqlClient
7777from .ssl import SslClient
78+ from .streams import StreamsClient
7879from .synonyms import SynonymsClient
7980from .tasks import TasksClient
8081from .text_structure import TextStructureClient
@@ -470,6 +471,7 @@ def __init__(
470471 self .shutdown = ShutdownClient (self )
471472 self .sql = SqlClient (self )
472473 self .ssl = SslClient (self )
474+ self .streams = StreamsClient (self )
473475 self .synonyms = SynonymsClient (self )
474476 self .text_structure = TextStructureClient (self )
475477 self .transform = TransformClient (self )
@@ -935,11 +937,7 @@ async def close_point_in_time(
935937 if not __body :
936938 if id is not None :
937939 __body ["id" ] = id
938- if not __body :
939- __body = None # type: ignore[assignment]
940- __headers = {"accept" : "application/json" }
941- if __body is not None :
942- __headers ["content-type" ] = "application/json"
940+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
943941 return await self .perform_request ( # type: ignore[return-value]
944942 "DELETE" ,
945943 __path ,
@@ -1012,8 +1010,8 @@ async def count(
10121010 This parameter can be used only when the `q` query string parameter is specified.
10131011 :param analyzer: The analyzer to use for the query string. This parameter can
10141012 be used only when the `q` query string parameter is specified.
1015- :param default_operator: The default operator for query string query: `AND ` or
1016- `OR `. This parameter can be used only when the `q` query string parameter
1013+ :param default_operator: The default operator for query string query: `and ` or
1014+ `or `. This parameter can be used only when the `q` query string parameter
10171015 is specified.
10181016 :param df: The field to use as a default when no field prefix is given in the
10191017 query string. This parameter can be used only when the `q` query string parameter
@@ -1134,7 +1132,7 @@ async def create(
11341132 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
11351133 version : t .Optional [int ] = None ,
11361134 version_type : t .Optional [
1137- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1135+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
11381136 ] = None ,
11391137 wait_for_active_shards : t .Optional [
11401138 t .Union [int , t .Union [str , t .Literal ["all" , "index-setting" ]]]
@@ -1313,7 +1311,7 @@ async def delete(
13131311 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
13141312 version : t .Optional [int ] = None ,
13151313 version_type : t .Optional [
1316- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1314+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
13171315 ] = None ,
13181316 wait_for_active_shards : t .Optional [
13191317 t .Union [int , t .Union [str , t .Literal ["all" , "index-setting" ]]]
@@ -1558,8 +1556,8 @@ async def delete_by_query(
15581556 used only when the `q` query string parameter is specified.
15591557 :param conflicts: What to do if delete by query hits version conflicts: `abort`
15601558 or `proceed`.
1561- :param default_operator: The default operator for query string query: `AND ` or
1562- `OR `. This parameter can be used only when the `q` query string parameter
1559+ :param default_operator: The default operator for query string query: `and ` or
1560+ `or `. This parameter can be used only when the `q` query string parameter
15631561 is specified.
15641562 :param df: The field to use as default where no field prefix is given in the
15651563 query string. This parameter can be used only when the `q` query string parameter
@@ -1853,7 +1851,7 @@ async def exists(
18531851 stored_fields : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
18541852 version : t .Optional [int ] = None ,
18551853 version_type : t .Optional [
1856- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1854+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
18571855 ] = None ,
18581856 ) -> HeadApiResponse :
18591857 """
@@ -1982,7 +1980,7 @@ async def exists_source(
19821980 source_includes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
19831981 version : t .Optional [int ] = None ,
19841982 version_type : t .Optional [
1985- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1983+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
19861984 ] = None ,
19871985 ) -> HeadApiResponse :
19881986 """
@@ -2111,8 +2109,8 @@ async def explain(
21112109 This parameter can be used only when the `q` query string parameter is specified.
21122110 :param analyzer: The analyzer to use for the query string. This parameter can
21132111 be used only when the `q` query string parameter is specified.
2114- :param default_operator: The default operator for query string query: `AND ` or
2115- `OR `. This parameter can be used only when the `q` query string parameter
2112+ :param default_operator: The default operator for query string query: `and ` or
2113+ `or `. This parameter can be used only when the `q` query string parameter
21162114 is specified.
21172115 :param df: The field to use as default where no field prefix is given in the
21182116 query string. This parameter can be used only when the `q` query string parameter
@@ -2354,7 +2352,7 @@ async def get(
23542352 stored_fields : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
23552353 version : t .Optional [int ] = None ,
23562354 version_type : t .Optional [
2357- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
2355+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
23582356 ] = None ,
23592357 ) -> ObjectApiResponse [t .Any ]:
23602358 """
@@ -2641,7 +2639,7 @@ async def get_source(
26412639 source_includes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
26422640 version : t .Optional [int ] = None ,
26432641 version_type : t .Optional [
2644- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
2642+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
26452643 ] = None ,
26462644 ) -> ObjectApiResponse [t .Any ]:
26472645 """
@@ -2821,7 +2819,7 @@ async def index(
28212819 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
28222820 version : t .Optional [int ] = None ,
28232821 version_type : t .Optional [
2824- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
2822+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
28252823 ] = None ,
28262824 wait_for_active_shards : t .Optional [
28272825 t .Union [int , t .Union [str , t .Literal ["all" , "index-setting" ]]]
@@ -3185,11 +3183,7 @@ async def knn_search(
31853183 __body ["_source" ] = source
31863184 if stored_fields is not None :
31873185 __body ["stored_fields" ] = stored_fields
3188- if not __body :
3189- __body = None # type: ignore[assignment]
3190- __headers = {"accept" : "application/json" }
3191- if __body is not None :
3192- __headers ["content-type" ] = "application/json"
3186+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
31933187 return await self .perform_request ( # type: ignore[return-value]
31943188 "POST" ,
31953189 __path ,
@@ -3614,7 +3608,7 @@ async def mtermvectors(
36143608 term_statistics : t .Optional [bool ] = None ,
36153609 version : t .Optional [int ] = None ,
36163610 version_type : t .Optional [
3617- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
3611+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
36183612 ] = None ,
36193613 body : t .Optional [t .Dict [str , t .Any ]] = None ,
36203614 ) -> ObjectApiResponse [t .Any ]:
@@ -4024,7 +4018,7 @@ async def rank_eval(
40244018 )
40254019
40264020 @_rewrite_parameters (
4027- body_fields = ("dest" , "source" , "conflicts" , "max_docs" , "script" , "size" ),
4021+ body_fields = ("dest" , "source" , "conflicts" , "max_docs" , "script" ),
40284022 )
40294023 async def reindex (
40304024 self ,
@@ -4042,7 +4036,6 @@ async def reindex(
40424036 require_alias : t .Optional [bool ] = None ,
40434037 script : t .Optional [t .Mapping [str , t .Any ]] = None ,
40444038 scroll : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
4045- size : t .Optional [int ] = None ,
40464039 slices : t .Optional [t .Union [int , t .Union [str , t .Literal ["auto" ]]]] = None ,
40474040 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
40484041 wait_for_active_shards : t .Optional [
@@ -4214,7 +4207,6 @@ async def reindex(
42144207 reindexing.
42154208 :param scroll: The period of time that a consistent view of the index should
42164209 be maintained for scrolled search.
4217- :param size:
42184210 :param slices: The number of slices this task should be divided into. It defaults
42194211 to one slice, which means the task isn't sliced into subtasks. Reindex supports
42204212 sliced scroll to parallelize the reindexing process. This parallelization
@@ -4279,8 +4271,6 @@ async def reindex(
42794271 __body ["max_docs" ] = max_docs
42804272 if script is not None :
42814273 __body ["script" ] = script
4282- if size is not None :
4283- __body ["size" ] = size
42844274 __headers = {"accept" : "application/json" , "content-type" : "application/json" }
42854275 return await self .perform_request ( # type: ignore[return-value]
42864276 "POST" ,
@@ -4407,11 +4397,7 @@ async def render_search_template(
44074397 __body ["params" ] = params
44084398 if source is not None :
44094399 __body ["source" ] = source
4410- if not __body :
4411- __body = None # type: ignore[assignment]
4412- __headers = {"accept" : "application/json" }
4413- if __body is not None :
4414- __headers ["content-type" ] = "application/json"
4400+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
44154401 return await self .perform_request ( # type: ignore[return-value]
44164402 "POST" ,
44174403 __path ,
@@ -4494,11 +4480,7 @@ async def scripts_painless_execute(
44944480 __body ["context_setup" ] = context_setup
44954481 if script is not None :
44964482 __body ["script" ] = script
4497- if not __body :
4498- __body = None # type: ignore[assignment]
4499- __headers = {"accept" : "application/json" }
4500- if __body is not None :
4501- __headers ["content-type" ] = "application/json"
4483+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
45024484 return await self .perform_request ( # type: ignore[return-value]
45034485 "POST" ,
45044486 __path ,
@@ -4774,8 +4756,8 @@ async def search(
47744756 node and the remote clusters are minimized when running cross-cluster search
47754757 (CCS) requests.
47764758 :param collapse: Collapses search results the values of the specified field.
4777- :param default_operator: The default operator for the query string query: `AND `
4778- or `OR `. This parameter can be used only when the `q` query string parameter
4759+ :param default_operator: The default operator for the query string query: `and `
4760+ or `or `. This parameter can be used only when the `q` query string parameter
47794761 is specified.
47804762 :param df: The field to use as a default when no field prefix is given in the
47814763 query string. This parameter can be used only when the `q` query string parameter
@@ -5977,11 +5959,7 @@ async def terms_enum(
59775959 __body ["string" ] = string
59785960 if timeout is not None :
59795961 __body ["timeout" ] = timeout
5980- if not __body :
5981- __body = None # type: ignore[assignment]
5982- __headers = {"accept" : "application/json" }
5983- if __body is not None :
5984- __headers ["content-type" ] = "application/json"
5962+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
59855963 return await self .perform_request ( # type: ignore[return-value]
59865964 "POST" ,
59875965 __path ,
@@ -6031,7 +6009,7 @@ async def termvectors(
60316009 term_statistics : t .Optional [bool ] = None ,
60326010 version : t .Optional [int ] = None ,
60336011 version_type : t .Optional [
6034- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
6012+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
60356013 ] = None ,
60366014 body : t .Optional [t .Dict [str , t .Any ]] = None ,
60376015 ) -> ObjectApiResponse [t .Any ]:
@@ -6497,8 +6475,8 @@ async def update_by_query(
64976475 be used only when the `q` query string parameter is specified.
64986476 :param conflicts: The preferred behavior when update by query hits version conflicts:
64996477 `abort` or `proceed`.
6500- :param default_operator: The default operator for query string query: `AND ` or
6501- `OR `. This parameter can be used only when the `q` query string parameter
6478+ :param default_operator: The default operator for query string query: `and ` or
6479+ `or `. This parameter can be used only when the `q` query string parameter
65026480 is specified.
65036481 :param df: The field to use as default where no field prefix is given in the
65046482 query string. This parameter can be used only when the `q` query string parameter
0 commit comments