@@ -1048,7 +1048,7 @@ def mtermvectors(self, index=None, doc_type=None, body=None, params=None):
10481048 return self .transport .perform_request ('GET' , _make_path (index ,
10491049 doc_type , '_mtermvectors' ), params = params , body = body )
10501050
1051- @query_params ('op_type' , 'version' , 'version_type' )
1051+ @query_params ()
10521052 def put_script (self , lang , id , body , params = None ):
10531053 """
10541054 Create a script in given language with specified ID.
@@ -1057,100 +1057,78 @@ def put_script(self, lang, id, body, params=None):
10571057 :arg lang: Script language
10581058 :arg id: Script ID
10591059 :arg body: The document
1060- :arg op_type: Explicit operation type, default 'index', valid choices
1061- are: 'index', 'create'
1062- :arg version: Explicit version number for concurrency control
1063- :arg version_type: Specific version type, valid choices are: 'internal',
1064- 'external', 'external_gte', 'force'
10651060 """
10661061 for param in (lang , id , body ):
10671062 if param in SKIP_IN_PATH :
10681063 raise ValueError ("Empty value passed for a required argument." )
10691064 return self .transport .perform_request ('PUT' , _make_path ('_scripts' ,
10701065 lang , id ), params = params , body = body )
10711066
1072- @query_params ('version' , 'version_type' )
1067+ @query_params ()
10731068 def get_script (self , lang , id , params = None ):
10741069 """
10751070 Retrieve a script from the API.
10761071 `<http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
10771072
10781073 :arg lang: Script language
10791074 :arg id: Script ID
1080- :arg version: Explicit version number for concurrency control
1081- :arg version_type: Specific version type, valid choices are: 'internal',
1082- 'external', 'external_gte', 'force'
10831075 """
10841076 for param in (lang , id ):
10851077 if param in SKIP_IN_PATH :
10861078 raise ValueError ("Empty value passed for a required argument." )
10871079 return self .transport .perform_request ('GET' , _make_path ('_scripts' ,
10881080 lang , id ), params = params )
10891081
1090- @query_params ('version' , 'version_type' )
1082+ @query_params ()
10911083 def delete_script (self , lang , id , params = None ):
10921084 """
10931085 Remove a stored script from elasticsearch.
10941086 `<http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html>`_
10951087
10961088 :arg lang: Script language
10971089 :arg id: Script ID
1098- :arg version: Explicit version number for concurrency control
1099- :arg version_type: Specific version type, valid choices are: 'internal',
1100- 'external', 'external_gte', 'force'
11011090 """
11021091 for param in (lang , id ):
11031092 if param in SKIP_IN_PATH :
11041093 raise ValueError ("Empty value passed for a required argument." )
11051094 return self .transport .perform_request ('DELETE' ,
11061095 _make_path ('_scripts' , lang , id ), params = params )
11071096
1108- @query_params ('op_type' , 'version' , 'version_type' )
1097+ @query_params ()
11091098 def put_template (self , id , body , params = None ):
11101099 """
11111100 Create a search template.
11121101 `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
11131102
11141103 :arg id: Template ID
11151104 :arg body: The document
1116- :arg op_type: Explicit operation type, default 'index', valid choices
1117- are: 'index', 'create'
1118- :arg version: Explicit version number for concurrency control
1119- :arg version_type: Specific version type, valid choices are: 'internal',
1120- 'external', 'external_gte', 'force'
11211105 """
11221106 for param in (id , body ):
11231107 if param in SKIP_IN_PATH :
11241108 raise ValueError ("Empty value passed for a required argument." )
11251109 return self .transport .perform_request ('PUT' , _make_path ('_search' ,
11261110 'template' , id ), params = params , body = body )
11271111
1128- @query_params ('version' , 'version_type' )
1112+ @query_params ()
11291113 def get_template (self , id , params = None ):
11301114 """
11311115 Retrieve a search template.
11321116 `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
11331117
11341118 :arg id: Template ID
1135- :arg version: Explicit version number for concurrency control
1136- :arg version_type: Specific version type, valid choices are: 'internal',
1137- 'external', 'external_gte', 'force'
11381119 """
11391120 if id in SKIP_IN_PATH :
11401121 raise ValueError ("Empty value passed for a required argument 'id'." )
11411122 return self .transport .perform_request ('GET' , _make_path ('_search' ,
11421123 'template' , id ), params = params )
11431124
1144- @query_params ('version' , 'version_type' )
1125+ @query_params ()
11451126 def delete_template (self , id , params = None ):
11461127 """
11471128 Delete a search template.
11481129 `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
11491130
11501131 :arg id: Template ID
1151- :arg version: Explicit version number for concurrency control
1152- :arg version_type: Specific version type, valid choices are: 'internal',
1153- 'external', 'external_gte', 'force'
11541132 """
11551133 if id in SKIP_IN_PATH :
11561134 raise ValueError ("Empty value passed for a required argument 'id'." )
0 commit comments