From 866913736527e0d159e88ef94306d9d4e79419da Mon Sep 17 00:00:00 2001 From: saimedhi Date: Thu, 1 Feb 2024 23:15:25 +0000 Subject: [PATCH 1/2] Updated opensearch-py to reflect the latest OpenSearch API spec (2024-02-01) Signed-off-by: GitHub --- opensearchpy/_async/client/cluster.py | 5 +---- opensearchpy/_async/client/security.py | 2 +- opensearchpy/client/cluster.py | 5 +---- opensearchpy/client/security.py | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/opensearchpy/_async/client/cluster.py b/opensearchpy/_async/client/cluster.py index 70d93cf8..c47aef07 100644 --- a/opensearchpy/_async/client/cluster.py +++ b/opensearchpy/_async/client/cluster.py @@ -530,10 +530,7 @@ async def delete_decommission_awareness( """ return await self.transport.perform_request( - "DELETE", - "/_cluster/decommission/awareness/", - params=params, - headers=headers, + "DELETE", "/_cluster/decommission/awareness", params=params, headers=headers ) @query_params() diff --git a/opensearchpy/_async/client/security.py b/opensearchpy/_async/client/security.py index c5b9f2ca..6b8c2026 100644 --- a/opensearchpy/_async/client/security.py +++ b/opensearchpy/_async/client/security.py @@ -98,7 +98,7 @@ async def get_action_groups( """ return await self.transport.perform_request( "GET", - "/_plugins/_security/api/actiongroups/", + "/_plugins/_security/api/actiongroups", params=params, headers=headers, ) diff --git a/opensearchpy/client/cluster.py b/opensearchpy/client/cluster.py index fc49f266..6af86a91 100644 --- a/opensearchpy/client/cluster.py +++ b/opensearchpy/client/cluster.py @@ -530,10 +530,7 @@ def delete_decommission_awareness( """ return self.transport.perform_request( - "DELETE", - "/_cluster/decommission/awareness/", - params=params, - headers=headers, + "DELETE", "/_cluster/decommission/awareness", params=params, headers=headers ) @query_params() diff --git a/opensearchpy/client/security.py b/opensearchpy/client/security.py index d7b76a90..66a365fd 100644 --- a/opensearchpy/client/security.py +++ b/opensearchpy/client/security.py @@ -98,7 +98,7 @@ def get_action_groups( """ return self.transport.perform_request( "GET", - "/_plugins/_security/api/actiongroups/", + "/_plugins/_security/api/actiongroups", params=params, headers=headers, ) From ff496e12c6725d5f5c782ea54a5fa9390f6abec3 Mon Sep 17 00:00:00 2001 From: saimedhi Date: Thu, 1 Feb 2024 23:15:29 +0000 Subject: [PATCH 2/2] Update changelog Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97034dc8..83fbbbca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Fix KeyError when scroll return no hits ([#616](https://github.com/opensearch-project/opensearch-py/pull/616)) - Fix reuse of `OpenSearch` using `Urllib3HttpConnection` and `AsyncOpenSearch` after calling `close` ([#639](https://github.com/opensearch-project/opensearch-py/pull/639)) ### Automated API Update +- Updated opensearch-py to reflect the latest OpenSearch API spec ([#29](https://github.com/saimedhi/opensearch-py/pull/29)) - Your contribution here. ### Security ### Dependencies