Skip to content

Commit

Permalink
Updated opensearch-py to reflect the latest OpenSearch API spec (2024…
Browse files Browse the repository at this point in the history
…-12-02)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
saimedhi authored and github-actions[bot] committed Dec 2, 2024
1 parent 6f761ab commit 417434f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Added
- Added option to pass custom headers to 'AWSV4SignerAsyncAuth' ([863](https://github.com/opensearch-project/opensearch-py/pull/863))
### Updated APIs
- Updated opensearch-py APIs to reflect [opensearch-api-specification@b7e9744](https://github.com/opensearch-project/opensearch-api-specification/commit/b7e9744e2199258e4fcee7567948bccdb766e11b)
### Changed
### Deprecated
### Removed
Expand Down
7 changes: 6 additions & 1 deletion opensearchpy/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,7 @@ async def recovery(
)
async def upgrade(
self,
body: Any = None,
index: Any = None,
params: Any = None,
headers: Any = None,
Expand Down Expand Up @@ -1832,7 +1833,11 @@ async def upgrade(
operation has completed before returning. Default is false.
"""
return await self.transport.perform_request(
"POST", _make_path(index, "_upgrade"), params=params, headers=headers
"POST",
_make_path(index, "_upgrade"),
params=params,
headers=headers,
body=body,
)

@query_params(
Expand Down
7 changes: 6 additions & 1 deletion opensearchpy/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,7 @@ def recovery(
)
def upgrade(
self,
body: Any = None,
index: Any = None,
params: Any = None,
headers: Any = None,
Expand Down Expand Up @@ -1832,7 +1833,11 @@ def upgrade(
operation has completed before returning. Default is false.
"""
return self.transport.perform_request(
"POST", _make_path(index, "_upgrade"), params=params, headers=headers
"POST",
_make_path(index, "_upgrade"),
params=params,
headers=headers,
body=body,
)

@query_params(
Expand Down

0 comments on commit 417434f

Please sign in to comment.