Commit Graph
68 Commits
Author SHA1 Message Date
cef3cd5b1c Updated opensearch-py to reflect the latest OpenSearch API spec (2024-06-24) (#767)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-06-24 09:18:43 -07:00
d39280759b Updated opensearch-py to reflect the latest OpenSearch API spec (2024-06-20) (#766)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-06-19 22:10:00 -07:00
f7cac3033d Updated opensearch-py to reflect the latest OpenSearch API spec (2024-06-17) (#763)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-06-17 15:33:14 -07:00
ee21471c13 Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-22) (#749)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-05-22 08:30:08 -07:00
5b40a85f9a Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-21) (#747)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-05-20 20:53:47 -07:00
72173c3fb0 Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-15) (#742)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-05-15 09:55:45 -07:00
1bf403c0f2 Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-10) (#741)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-05-10 10:44:19 -07:00
Sai Medhini Reddy MaryadaandGitHub 9a67bbfd16 fixed generator (#738)
Signed-off-by: saimedhi <[email protected]>
2024-05-01 16:59:17 -04:00
303b6c6f64 Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-24) (#734)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-04-23 22:35:59 -07:00
26a7b12756 Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-23) (#732)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-04-23 00:02:15 -07:00
d0aee06e41 Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-20) (#727)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-04-22 08:52:16 -04:00
3082d92f7d Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-19) (#725)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-04-18 21:40:53 -07:00
Sai Medhini Reddy MaryadaandGitHub b47edf906e Code generated using native OpenAPI specification (#724)
* Code generated using native OpenAPI specification

Signed-off-by: saimedhi <[email protected]>

* Code generated using native OpenAPI specification

Signed-off-by: saimedhi <[email protected]>

* Code generated using native OpenAPI specification

Signed-off-by: saimedhi <[email protected]>

---------

Signed-off-by: saimedhi <[email protected]>
2024-04-17 16:22:14 -07:00
Sai Medhini Reddy MaryadaandGitHub ba715b9d3f Dropped support for python 3.6, 3.7 and added support for python 3.12 (#717)
Signed-off-by: saimedhi <[email protected]>
2024-04-06 11:18:47 -04:00
c770d88dc9 Updated opensearch-py to reflect the latest OpenSearch API spec (2024-03-22) (#702)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-03-22 16:40:18 -04:00
Sai Medhini Reddy MaryadaandGitHub 25db5d5c8a Modified generator to generate plugins (#700)
Signed-off-by: saimedhi <[email protected]>
2024-03-22 07:53:28 -04:00
8b91bb4ddb Updated opensearch-py to reflect the latest OpenSearch API spec (2024-02-07) (#671)
Signed-off-by: GitHub <[email protected]>
Co-authored-by: saimedhi <[email protected]>
2024-02-08 11:41:26 -05:00
Sai Medhini Reddy MaryadaandGitHub 900ea94ec8 Incorporated API generation into CI workflow and fixed 'generate' nox session (#660)
Signed-off-by: saimedhi <[email protected]>
2024-01-24 17:46:18 -05:00
Sai Medhini Reddy MaryadaandGitHub 2ab3a40307 Updated the get_policy API in the index_management plugin to allow the policy_id argument as optional (#633)
Signed-off-by: saimedhi <[email protected]>
2024-01-10 23:08:41 -08:00
odelmarcelleandGitHub 3eba72c320 Reusable async client (#639)
* set aiohttp.ClientSession to None after close()

Signed-off-by: odlmarce <[email protected]>

* add test

Signed-off-by: odlmarce <[email protected]>

* update changelog

Signed-off-by: odlmarce <[email protected]>

* update changelog + format
Signed-off-by: odlmarce <[email protected]>

* update changelog
Signed-off-by: odlmarce <[email protected]>

* add tests using `with` and synchronous client
Signed-off-by: odlmarce <[email protected]>

* fix `urllib3.exceptions.ClosedPoolError` breaking synchronous client after `close`
Signed-off-by: odlmarce <[email protected]>

* update changelog
Signed-off-by: odlmarce <[email protected]>

* separate tests
Signed-off-by: odlmarce <[email protected]>

* refactor pool factory as lambda
Signed-off-by: odlmarce <[email protected]>

---------

Signed-off-by: odlmarce <[email protected]>
2024-01-02 13:33:24 -05:00
DJ CarrilloandGitHub db61b5943b Added fix for key error because of missing 'hits' key. (#616)
Updated CHANGELOG.md.



nox formatting applied.



Added new unit test for actions scan function.



Added type hints & nox formatting.



Added fix to async scan function & added matching unit tests for async.

Signed-off-by: Djcarrillo6 <[email protected]>
2023-12-04 09:26:25 -05:00
Samuel OrjiandGitHub 6f26eb3e8e remove unnecessary utf-8 header in .py files (#615)
* remove unnecessary utf-8 header in .py files

Signed-off-by: samuel orji <[email protected]>

* review feedback: add link to changelog

Signed-off-by: samuel orji <[email protected]>

---------

Signed-off-by: samuel orji <[email protected]>
2023-11-24 16:19:50 -05:00
Daniel (dB.) DoubrovkineandGitHub 1801ada270 Added pylint, enforce naming. (#590)
* Added pylint.

Signed-off-by: dblock <[email protected]>

* Enforce pylint:invalid-name.

Signed-off-by: dblock <[email protected]>

* Updated the generated code header to prevent broken links.

Signed-off-by: dblock <[email protected]>

* Swapped order of messages.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-11-21 10:04:39 -08:00
Daniel (dB.) DoubrovkineandGitHub e68b9e762d Added client-level REST helpers. (#544)
* Added client-level REST helpers.

Signed-off-by: dblock <[email protected]>

* Move functions into an .http namespace.

Signed-off-by: dblock <[email protected]>

* Poetry update in samples.

Signed-off-by: dblock <[email protected]>

* Fix: typo.

Signed-off-by: dblock <[email protected]>

* Clarified what to use in which older versions.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-11-13 12:52:13 -08:00
Daniel (dB.) DoubrovkineandGitHub f02d6dee27 Avoid decoding request body unless it needs to be logged. (#571)
Signed-off-by: dblock <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
2023-11-12 11:42:45 -08:00
Daniel (dB.) DoubrovkineandGitHub f410e81d80 Fix: build and deploy docs. (#575)
* Fix: build and deploy docs.

Signed-off-by: dblock <[email protected]>

* Run nox -rs generate.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-11-11 14:28:43 -08:00
Daniel (dB.) DoubrovkineandGitHub d8dc5474b7 Expanded nox -rs docs to generate docs. (#568)
Signed-off-by: dblock <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
2023-11-09 23:21:35 -08:00
Daniel (dB.) DoubrovkineandGitHub 58b83d8c06 Added Windows CI. (#569)
Signed-off-by: dblock <[email protected]>
2023-11-09 17:41:37 -08:00
56606ed541 Set enable_cleanup_closed=True to drop TLS connections without a shutdown (#468)
* Set enable_cleanup_closed=True to drop TLS connections without a shutdown

AsyncOpenSearch seems to leak TLS connections due to a missing parameter in `aiohttp.TCPConnector`. This causes #172 and was also fixed "upstream" in this issue https://github.com/elastic/elasticsearch-py/issues/1910. 

Signed-off-by: Sandor Nemes <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Sandor Nemes <[email protected]>

---------

Signed-off-by: Sandor Nemes <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]>
2023-11-09 18:52:10 -05:00
Daniel (dB.) DoubrovkineandGitHub 56c96d7c4f Expanded type coverage to benchmarks, samples and tests. (#566)
* Renamed json samples to fix duplicate module name.

Signed-off-by: dblock <[email protected]>

* Enabled mypy on all source files.

Signed-off-by: dblock <[email protected]>

* Added missing types.

Signed-off-by: dblock <[email protected]>

* Added CHANGELOG.

Signed-off-by: dblock <[email protected]>

* Move type: ignore to fix untyped decorator makes function untyped.

Signed-off-by: dblock <[email protected]>

* Fix nox -rs lint-3.7.

Signed-off-by: dblock <[email protected]>

* Fixed incorrect import.

Signed-off-by: dblock <[email protected]>

* Fix broken test.

Signed-off-by: dblock <[email protected]>

* Fixed TestBulk::test_bulk_works_with_bytestring_body.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-11-09 10:51:20 -05:00
Daniel (dB.) DoubrovkineandGitHub dcb79cc322 Merge .pyi type stubs inline (#563)
* Merged types into .py code.

Signed-off-by: dblock <[email protected]>

* Fix: nox -rs generate.

Signed-off-by: dblock <[email protected]>

* Updated CHANGELOG.

Signed-off-by: dblock <[email protected]>

* Use lowest common python version for lint.

Signed-off-by: dblock <[email protected]>

* Fix: don't typeshed.

Signed-off-by: dblock <[email protected]>

* Removed unneeded comment.

Signed-off-by: dblock <[email protected]>

* Simplify OPENSEARCH_URL.

Signed-off-by: dblock <[email protected]>

* Fix: positional ignore_status used as chunk_size.

Signed-off-by: dblock <[email protected]>

* Fix: parse version string.

Signed-off-by: dblock <[email protected]>

* Remove future annotations for Python 3.6.

Signed-off-by: dblock <[email protected]>

* Fix: types in documentation.

Signed-off-by: dblock <[email protected]>

* Improve CHANGELOG text.

Signed-off-by: dblock <[email protected]>

* Re-added missing separator.

Signed-off-by: dblock <[email protected]>

* Remove duplicate licenses.

Signed-off-by: dblock <[email protected]>

* Get rid of Optional[Any].

Signed-off-by: dblock <[email protected]>

* Fix docs with AsyncOpenSearch.

Signed-off-by: dblock <[email protected]>

* Fix: undo comment.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-11-06 10:08:19 -08:00
Daniel (dB.) DoubrovkineandGitHub 0da60b2623 Added a utf-8 header to all .py files (#557)
Signed-off-by: dblock <[email protected]>
2023-10-26 13:34:34 -04:00
Daniel (dB.) DoubrovkineandGitHub 5c7fe9dbde Fix: don't hardcode client class name. (#555)
Signed-off-by: dblock <[email protected]>
2023-10-26 09:30:23 -07:00
Daniel (dB.) DoubrovkineandGitHub ebd50e0515 Override put_mapping definition to make index name optional. (#553)
Signed-off-by: dblock <[email protected]>
2023-10-26 11:31:13 -04:00
Sai Medhini Reddy MaryadaandGitHub fe4b6d754c added remote store client (#552)
Signed-off-by: saimedhi <[email protected]>
2023-10-26 10:59:07 -04:00
Sai Medhini Reddy MaryadaandGitHub 1190079f51 Generate opensearch-py client from API specs (#551)
Signed-off-by: saimedhi <[email protected]>
2023-10-26 10:58:33 -04:00
Sai Medhini Reddy MaryadaandGitHub ce835fb59d Generate cluster client from API specs (#530)
Signed-off-by: saimedhi <[email protected]>
2023-10-09 17:57:09 -04:00
Sai Medhini Reddy MaryadaandGitHub 388fb9d983 Generate cat client from API specs (#529)
Signed-off-by: saimedhi <[email protected]>
2023-10-09 17:55:51 -04:00
Daniel (dB.) DoubrovkineandGitHub 2bfc409177 Fix: typos. (#526)
* Fix: typo.

Signed-off-by: dblock <[email protected]>

* Fix: typo.

Signed-off-by: dblock <[email protected]>

* Fixed its.

Signed-off-by: dblock <[email protected]>

* Added Visual Code settings to .gitignore.

Signed-off-by: dblock <[email protected]>

* Added loop type for async client.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-10-09 10:45:18 -07:00
80b96812a7 Integrated generated 'nodes' client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#514)
Signed-off-by: saimedhi <[email protected]>
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]>
2023-10-03 15:00:49 -07:00
Bhavani RaviandGitHub 1a47e6fa1f fixes: #512 Wrong return type hint in async_scan (#520)
* fixes: #512 Wrong return type hint in async_scan

Signed-off-by: Bhavani Ravi <[email protected]>

* add: changelog

Signed-off-by: Bhavani Ravi <[email protected]>

---------

Signed-off-by: Bhavani Ravi <[email protected]>
2023-10-03 10:45:35 -04:00
Sai Medhini Reddy MaryadaandGitHub 9fe5f5ad62 Integrated generated dangling_indices client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#511)
Signed-off-by: saimedhi <[email protected]>
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
2023-10-03 10:40:51 -04:00
Sai Medhini Reddy MaryadaandGitHub 7d3c528dff Integrated generated ingest client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#513)
Signed-off-by: saimedhi <[email protected]>
2023-09-28 20:18:53 -07:00
Sai Medhini Reddy MaryadaandGitHub 2feccc22bb Integrated generated APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#508)
Signed-off-by: saimedhi <[email protected]>
2023-09-26 12:49:25 -04:00
Sai Medhini Reddy MaryadaandGitHub c6c7df5461 Updated APIs to match other clients and opensearch openapi spec (#502)
Signed-off-by: saimedhi <[email protected]>
2023-09-26 12:46:18 -04:00
Sai Medhini Reddy MaryadaandGitHub caeaa13250 Updated Security Client APIs (#450)
Signed-off-by: saimedhi <[email protected]>
2023-07-26 18:38:49 -04:00
florianvazelleandGitHub 5dc51d4b7f Move security api from plugins to clients (#442)
* fix(security): move security api from plugins to clients

Signed-off-by: florian <[email protected]>

* chore(CHANGELOG): update CHANGELOG for the PR#442

Signed-off-by: florian <[email protected]>

---------

Signed-off-by: florian <[email protected]>
2023-07-21 13:07:20 -04:00
Michael OliverandGitHub 4dba35deea Allow passing trust_env to aiohttp.ClientSession (#438)
Fixes #368

Signed-off-by: Michael Oliver <[email protected]>
2023-07-19 09:02:04 -04:00
florianvazelleandGitHub 2e8d5ce1a5 Index State Management support (#398)
* feat(plugins): add index management client plugin

Signed-off-by: florian <[email protected]>

* chore(CHANGELOG): added entry for ISM api support in changelog

Signed-off-by: florian <[email protected]>

* test(plugins): use assertEqual to compare call parameters

Signed-off-by: florian <[email protected]>

* test(plugins): edit policy to support older versions of opensearch

Signed-off-by: florian <[email protected]>

* test(plugins): ignore plugin tests when opensearch is unreleased

Signed-off-by: florian <[email protected]>

* test(plugins): move plugin tests into separate files

Signed-off-by: florian <[email protected]>

* test(plugins): fix import of OpenSearchTestCase

Signed-off-by: florian <[email protected]>

* chore(USER_GUIDE): add a index management plugin part

Signed-off-by: florian <[email protected]>

---------

Signed-off-by: florian <[email protected]>
2023-06-28 16:56:00 -04:00
florianvazelleandGitHub c60c259d96 Security plugin support (#399)
* feat(plugins): add security client plugin

Signed-off-by: florian <[email protected]>

* test(plugins): skip security plugin tests when disabled

Signed-off-by: florian <[email protected]>

* fix(security): remove non-ASCII character

Signed-off-by: florian <[email protected]>

* chore(CHANGELOG): added entry for security api support in changelog

Signed-off-by: florian <[email protected]>

* test(plugins): add asynchronous tests version

Signed-off-by: florian <[email protected]>

* test: remove some warnings

Signed-off-by: florian <[email protected]>

* chore(USER_GUIDE): add a security plugin part

Signed-off-by: florian <[email protected]>

* test(security): Split out security plugin tests in its own file

Signed-off-by: florian <[email protected]>

* chore: apply reviews

Signed-off-by: florian <[email protected]>

---------

Signed-off-by: florian <[email protected]>
2023-06-27 11:01:40 -04:00