@@ -845,11 +845,7 @@ async def close_point_in_time(
845845 if not __body :
846846 if id is not None :
847847 __body ["id" ] = id
848- if not __body :
849- __body = None # type: ignore[assignment]
850- __headers = {"accept" : "application/json" }
851- if __body is not None :
852- __headers ["content-type" ] = "application/json"
848+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
853849 return await self .perform_request ( # type: ignore[return-value]
854850 "DELETE" ,
855851 __path ,
@@ -923,8 +919,8 @@ async def count(
923919 This parameter can be used only when the `q` query string parameter is specified.
924920 :param analyzer: The analyzer to use for the query string. This parameter can
925921 be used only when the `q` query string parameter is specified.
926- :param default_operator: The default operator for query string query: `AND ` or
927- `OR `. This parameter can be used only when the `q` query string parameter
922+ :param default_operator: The default operator for query string query: `and ` or
923+ `or `. This parameter can be used only when the `q` query string parameter
928924 is specified.
929925 :param df: The field to use as a default when no field prefix is given in the
930926 query string. This parameter can be used only when the `q` query string parameter
@@ -1051,7 +1047,7 @@ async def create(
10511047 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
10521048 version : t .Optional [int ] = None ,
10531049 version_type : t .Optional [
1054- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1050+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
10551051 ] = None ,
10561052 wait_for_active_shards : t .Optional [
10571053 t .Union [int , t .Union [str , t .Literal ["all" , "index-setting" ]]]
@@ -1230,7 +1226,7 @@ async def delete(
12301226 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
12311227 version : t .Optional [int ] = None ,
12321228 version_type : t .Optional [
1233- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1229+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
12341230 ] = None ,
12351231 wait_for_active_shards : t .Optional [
12361232 t .Union [int , t .Union [str , t .Literal ["all" , "index-setting" ]]]
@@ -1475,8 +1471,8 @@ async def delete_by_query(
14751471 used only when the `q` query string parameter is specified.
14761472 :param conflicts: What to do if delete by query hits version conflicts: `abort`
14771473 or `proceed`.
1478- :param default_operator: The default operator for query string query: `AND ` or
1479- `OR `. This parameter can be used only when the `q` query string parameter
1474+ :param default_operator: The default operator for query string query: `and ` or
1475+ `or `. This parameter can be used only when the `q` query string parameter
14801476 is specified.
14811477 :param df: The field to use as default where no field prefix is given in the
14821478 query string. This parameter can be used only when the `q` query string parameter
@@ -1770,7 +1766,7 @@ async def exists(
17701766 stored_fields : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
17711767 version : t .Optional [int ] = None ,
17721768 version_type : t .Optional [
1773- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1769+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
17741770 ] = None ,
17751771 ) -> HeadApiResponse :
17761772 """
@@ -1899,7 +1895,7 @@ async def exists_source(
18991895 source_includes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
19001896 version : t .Optional [int ] = None ,
19011897 version_type : t .Optional [
1902- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
1898+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
19031899 ] = None ,
19041900 ) -> HeadApiResponse :
19051901 """
@@ -2028,8 +2024,8 @@ async def explain(
20282024 This parameter can be used only when the `q` query string parameter is specified.
20292025 :param analyzer: The analyzer to use for the query string. This parameter can
20302026 be used only when the `q` query string parameter is specified.
2031- :param default_operator: The default operator for query string query: `AND ` or
2032- `OR `. This parameter can be used only when the `q` query string parameter
2027+ :param default_operator: The default operator for query string query: `and ` or
2028+ `or `. This parameter can be used only when the `q` query string parameter
20332029 is specified.
20342030 :param df: The field to use as default where no field prefix is given in the
20352031 query string. This parameter can be used only when the `q` query string parameter
@@ -2281,7 +2277,7 @@ async def get(
22812277 stored_fields : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
22822278 version : t .Optional [int ] = None ,
22832279 version_type : t .Optional [
2284- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
2280+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
22852281 ] = None ,
22862282 ) -> ObjectApiResponse [t .Any ]:
22872283 """
@@ -2571,7 +2567,7 @@ async def get_source(
25712567 source_includes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
25722568 version : t .Optional [int ] = None ,
25732569 version_type : t .Optional [
2574- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
2570+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
25752571 ] = None ,
25762572 ) -> ObjectApiResponse [t .Any ]:
25772573 """
@@ -2751,7 +2747,7 @@ async def index(
27512747 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
27522748 version : t .Optional [int ] = None ,
27532749 version_type : t .Optional [
2754- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
2750+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
27552751 ] = None ,
27562752 wait_for_active_shards : t .Optional [
27572753 t .Union [int , t .Union [str , t .Literal ["all" , "index-setting" ]]]
@@ -3438,7 +3434,7 @@ async def mtermvectors(
34383434 term_statistics : t .Optional [bool ] = None ,
34393435 version : t .Optional [int ] = None ,
34403436 version_type : t .Optional [
3441- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
3437+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
34423438 ] = None ,
34433439 body : t .Optional [t .Dict [str , t .Any ]] = None ,
34443440 ) -> ObjectApiResponse [t .Any ]:
@@ -3856,7 +3852,7 @@ async def rank_eval(
38563852 )
38573853
38583854 @_rewrite_parameters (
3859- body_fields = ("dest" , "source" , "conflicts" , "max_docs" , "script" , "size" ),
3855+ body_fields = ("dest" , "source" , "conflicts" , "max_docs" , "script" ),
38603856 )
38613857 async def reindex (
38623858 self ,
@@ -3874,7 +3870,6 @@ async def reindex(
38743870 require_alias : t .Optional [bool ] = None ,
38753871 script : t .Optional [t .Mapping [str , t .Any ]] = None ,
38763872 scroll : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
3877- size : t .Optional [int ] = None ,
38783873 slices : t .Optional [t .Union [int , t .Union [str , t .Literal ["auto" ]]]] = None ,
38793874 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
38803875 wait_for_active_shards : t .Optional [
@@ -3950,7 +3945,6 @@ async def reindex(
39503945 reindexing.
39513946 :param scroll: The period of time that a consistent view of the index should
39523947 be maintained for scrolled search.
3953- :param size:
39543948 :param slices: The number of slices this task should be divided into. It defaults
39553949 to one slice, which means the task isn't sliced into subtasks. Reindex supports
39563950 sliced scroll to parallelize the reindexing process. This parallelization
@@ -4015,8 +4009,6 @@ async def reindex(
40154009 __body ["max_docs" ] = max_docs
40164010 if script is not None :
40174011 __body ["script" ] = script
4018- if size is not None :
4019- __body ["size" ] = size
40204012 __headers = {"accept" : "application/json" , "content-type" : "application/json" }
40214013 return await self .perform_request ( # type: ignore[return-value]
40224014 "POST" ,
@@ -4143,11 +4135,7 @@ async def render_search_template(
41434135 __body ["params" ] = params
41444136 if source is not None :
41454137 __body ["source" ] = source
4146- if not __body :
4147- __body = None # type: ignore[assignment]
4148- __headers = {"accept" : "application/json" }
4149- if __body is not None :
4150- __headers ["content-type" ] = "application/json"
4138+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
41514139 return await self .perform_request ( # type: ignore[return-value]
41524140 "POST" ,
41534141 __path ,
@@ -4230,11 +4218,7 @@ async def scripts_painless_execute(
42304218 __body ["context_setup" ] = context_setup
42314219 if script is not None :
42324220 __body ["script" ] = script
4233- if not __body :
4234- __body = None # type: ignore[assignment]
4235- __headers = {"accept" : "application/json" }
4236- if __body is not None :
4237- __headers ["content-type" ] = "application/json"
4221+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
42384222 return await self .perform_request ( # type: ignore[return-value]
42394223 "POST" ,
42404224 __path ,
@@ -4512,8 +4496,8 @@ async def search(
45124496 node and the remote clusters are minimized when running cross-cluster search
45134497 (CCS) requests.
45144498 :param collapse: Collapses search results the values of the specified field.
4515- :param default_operator: The default operator for the query string query: `AND `
4516- or `OR `. This parameter can be used only when the `q` query string parameter
4499+ :param default_operator: The default operator for the query string query: `and `
4500+ or `or `. This parameter can be used only when the `q` query string parameter
45174501 is specified.
45184502 :param df: The field to use as a default when no field prefix is given in the
45194503 query string. This parameter can be used only when the `q` query string parameter
@@ -5691,11 +5675,7 @@ async def terms_enum(
56915675 __body ["string" ] = string
56925676 if timeout is not None :
56935677 __body ["timeout" ] = timeout
5694- if not __body :
5695- __body = None # type: ignore[assignment]
5696- __headers = {"accept" : "application/json" }
5697- if __body is not None :
5698- __headers ["content-type" ] = "application/json"
5678+ __headers = {"accept" : "application/json" , "content-type" : "application/json" }
56995679 return await self .perform_request ( # type: ignore[return-value]
57005680 "POST" ,
57015681 __path ,
@@ -5745,7 +5725,7 @@ async def termvectors(
57455725 term_statistics : t .Optional [bool ] = None ,
57465726 version : t .Optional [int ] = None ,
57475727 version_type : t .Optional [
5748- t .Union [str , t .Literal ["external" , "external_gte" , "force" , " internal" ]]
5728+ t .Union [str , t .Literal ["external" , "external_gte" , "internal" ]]
57495729 ] = None ,
57505730 body : t .Optional [t .Dict [str , t .Any ]] = None ,
57515731 ) -> ObjectApiResponse [t .Any ]:
@@ -6221,8 +6201,8 @@ async def update_by_query(
62216201 be used only when the `q` query string parameter is specified.
62226202 :param conflicts: The preferred behavior when update by query hits version conflicts:
62236203 `abort` or `proceed`.
6224- :param default_operator: The default operator for query string query: `AND ` or
6225- `OR `. This parameter can be used only when the `q` query string parameter
6204+ :param default_operator: The default operator for query string query: `and ` or
6205+ `or `. This parameter can be used only when the `q` query string parameter
62266206 is specified.
62276207 :param df: The field to use as default where no field prefix is given in the
62286208 query string. This parameter can be used only when the `q` query string parameter
0 commit comments