Daniel (dB.) Doubrovkine and GitHub
bf9add4eed
Fix /cluster/stats in a backwards compatible way ( #851 )
...
* Ran nox -s generate.
Signed-off-by: dblock <[email protected] >
* Fix: backwards compatible parameter order in cluster stats.
Signed-off-by: dblock <[email protected] >
* Moved Updated APIs section to the correct set.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2024-11-25 14:54:03 -08:00
Jeppe Fihl-Pearson and GitHub
e26f3fc28c
Add override for code generator to change indices.put_alias argument order ( #804 )
...
* Add currently-failing test to validate the original argument order
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
* Add workaround for breaking API change inadvertently added in v2.7.0
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
* Generate new version of the client code with the correct argument order
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
---------
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
2024-08-22 08:33:55 -04:00
Daniel (dB.) Doubrovkine and GitHub
2d6ae74211
Updated dependencies, generated API. ( #793 )
...
* Updated dependencies.
Signed-off-by: dblock <[email protected] >
* Lock setuptools at 71.1.0.
Newer version seems to cause UserWarning: Unknown distribution option: 'test_suite'.
Signed-off-by: dblock <[email protected] >
* Updated opensearch-py APIs to reflect opensearch-api-specification@9d3bc34.
Signed-off-by: dblock <[email protected] >
* Do not test against flaky 2.0.
Signed-off-by: dblock <[email protected] >
* Reduce test matrix and add 2.16.
Signed-off-by: dblock <[email protected] >
* Fix missing spaces in generated descriptions.
Signed-off-by: dblock <[email protected] >
* Removed 2.2.1.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2024-08-14 15:25:01 -07:00
Raphael and GitHub
581cbbaf10
Fix spell typos and missing whitespace ( #789 )
2024-07-31 22:23:35 -04:00
Hugo van Kemenade and GitHub
6e3f1a1194
Remove redundant mock backport dependency and upgrade syntax for Python 3.8+ ( #785 )
...
* Upgrade syntax with pyupgrade --py38-plus
Signed-off-by: Hugo van Kemenade <[email protected] >
* Convert to f-strings with flynt
Signed-off-by: Hugo van Kemenade <[email protected] >
* Format with Black
Signed-off-by: Hugo van Kemenade <[email protected] >
* Remove redundant mock backport dependency
Signed-off-by: Hugo van Kemenade <[email protected] >
* isort imports
Signed-off-by: Hugo van Kemenade <[email protected] >
* Add changelog entry
Signed-off-by: Hugo van Kemenade <[email protected] >
---------
Signed-off-by: Hugo van Kemenade <[email protected] >
2024-07-20 16:19:20 -04:00
Daniel (dB.) Doubrovkine and GitHub
1ef788a55a
Skip elements with titles. ( #777 )
...
* Skip elements with titles.
Signed-off-by: dblock <[email protected] >
* Simplify and just skip by ref.
Signed-off-by: dblock <[email protected] >
* Re-generate API spec.
Signed-off-by: dblock <[email protected] >
* Do not skip alias tests.
Signed-off-by: dblock <[email protected] >
* Actually skip node_id_or_metric.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2024-07-18 13:24:38 -07:00
ea0a718754
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-07-15) ( #775 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-07-15 08:30:16 -04:00
04a2350ba0
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-07-12) ( #773 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-07-11 22:33:22 -07:00
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 Maryada and GitHub
9a67bbfd16
fixed generator ( #738 )
...
Signed-off-by: saimedhi <[email protected] >
2024-05-01 16:59:17 -04: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 Maryada and GitHub
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 Maryada and GitHub
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 Maryada and GitHub
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 Maryada and GitHub
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
Samuel Orji and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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.) Doubrovkine and GitHub
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 Maryada and GitHub
fe4b6d754c
added remote store client ( #552 )
...
Signed-off-by: saimedhi <[email protected] >
2023-10-26 10:59:07 -04:00
Sai Medhini Reddy Maryada and GitHub
1190079f51
Generate opensearch-py client from API specs ( #551 )
...
Signed-off-by: saimedhi <[email protected] >
2023-10-26 10:58:33 -04:00
Daniel (dB.) Doubrovkine and GitHub
59072a67b8
Remove PY2. ( #550 )
...
Signed-off-by: dblock <[email protected] >
2023-10-25 08:41:50 -04:00
Sai Medhini Reddy Maryada and GitHub
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 Maryada and GitHub
388fb9d983
Generate cat client from API specs ( #529 )
...
Signed-off-by: saimedhi <[email protected] >
2023-10-09 17:55:51 -04: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
Sai Medhini Reddy Maryada and GitHub
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 Maryada and GitHub
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 Maryada and GitHub
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 Maryada and GitHub
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 Maryada and GitHub
caeaa13250
Updated Security Client APIs ( #450 )
...
Signed-off-by: saimedhi <[email protected] >
2023-07-26 18:38:49 -04:00
florianvazelle and GitHub
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
florianvazelle and GitHub
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
florianvazelle and GitHub
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
Charles Greer and GitHub
fe3b5a8922
[ #387 ] Do not escape the "timeout" parameter. ( #394 )
...
* [#387 ] Do not escape the "timeout" parameter.
When the "timeout" parameter is escaped and turned into
a string, it does not pass validation checks.
This PR ensures that timeout is passed through as-is,
just like "request_timeout".
There's no explicit test for this parameter, but I included
it on some existing tests just to ensure that the code
is exercised. Without the fix in place, one of the tests as modified will not pass.
Signed-off-by: Charles Greer <[email protected] >
* Unit test for timeout parameter
Revert original test modifications.
Signed-off-by: Charles Greer <[email protected] >
* Extend test and linter
Signed-off-by: Charles Greer <[email protected] >
---------
Signed-off-by: Charles Greer <[email protected] >
2023-05-23 18:12:29 -04:00