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
…-07-16)

Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
dblock committed Jul 16, 2024
1 parent ea0a718 commit 1e31e44
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Fixed
- Fixed Search helper to ensure proper retention of the _collapse attribute in chained operations. ([#771](https://github.com/opensearch-project/opensearch-py/pull/771))
### Updated APIs
- Updated opensearch-py APIs to reflect [opensearch-api-specification@9c15bbf](https://github.com/opensearch-project/opensearch-api-specification/commit/9c15bbf1522b1604e2e36f16b53163413f5fe833)
- Updated opensearch-py APIs to reflect [opensearch-api-specification@0b033a9](https://github.com/opensearch-project/opensearch-api-specification/commit/0b033a92cac4cb20ec3fb51350c139afc753b089)
- Updated opensearch-py APIs to reflect [opensearch-api-specification@d5ca873](https://github.com/opensearch-project/opensearch-api-specification/commit/d5ca873d20ff54be16ec48e7bd629cda7c4a6332)
- Updated opensearch-py APIs to reflect [opensearch-api-specification@7452827](https://github.com/opensearch-project/opensearch-api-specification/commit/745282767026703ea27967d2705633c3e2661c97)
Expand Down
3 changes: 3 additions & 0 deletions opensearchpy/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ async def delete(

@query_params(
"allow_no_indices",
"cluster_manager_timeout",
"error_trace",
"expand_wildcards",
"filter_path",
Expand Down Expand Up @@ -619,6 +620,8 @@ async def exists(
if any wildcard expression, index alias, or `_all` value targets only
missing or closed indices.This behavior applies even if the request
targets other open indices. Default is false.
:arg cluster_manager_timeout: Operation timeout for connection
to cluster-manager node.
:arg error_trace: Whether to include the stack trace of returned
errors.
:arg expand_wildcards: Type of index that wildcard patterns can
Expand Down
4 changes: 4 additions & 0 deletions opensearchpy/_async/client/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ async def info(
self,
node_id: Any = None,
metric: Any = None,
node_id_or_metric: Any = None,
params: Any = None,
headers: Any = None,
) -> Any:
Expand All @@ -102,6 +103,9 @@ async def info(
limit returned information.
:arg metric: Limits the information returned to the specific
metrics. Supports a comma-separated list, such as http,ingest.
:arg node_id_or_metric: Limits the information returned to a
list of node IDs or specific metrics. Supports a comma-separated list,
such as node1,node2 or http,ingest.
:arg error_trace: Whether to include the stack trace of returned
errors.
:arg filter_path: Comma-separated list of filters used to reduce
Expand Down
3 changes: 3 additions & 0 deletions opensearchpy/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ def delete(

@query_params(
"allow_no_indices",
"cluster_manager_timeout",
"error_trace",
"expand_wildcards",
"filter_path",
Expand Down Expand Up @@ -619,6 +620,8 @@ def exists(
if any wildcard expression, index alias, or `_all` value targets only
missing or closed indices.This behavior applies even if the request
targets other open indices. Default is false.
:arg cluster_manager_timeout: Operation timeout for connection
to cluster-manager node.
:arg error_trace: Whether to include the stack trace of returned
errors.
:arg expand_wildcards: Type of index that wildcard patterns can
Expand Down
4 changes: 4 additions & 0 deletions opensearchpy/client/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def info(
self,
node_id: Any = None,
metric: Any = None,
node_id_or_metric: Any = None,
params: Any = None,
headers: Any = None,
) -> Any:
Expand All @@ -102,6 +103,9 @@ def info(
limit returned information.
:arg metric: Limits the information returned to the specific
metrics. Supports a comma-separated list, such as http,ingest.
:arg node_id_or_metric: Limits the information returned to a
list of node IDs or specific metrics. Supports a comma-separated list,
such as node1,node2 or http,ingest.
:arg error_trace: Whether to include the stack trace of returned
errors.
:arg filter_path: Comma-separated list of filters used to reduce
Expand Down

0 comments on commit 1e31e44

Please sign in to comment.